frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

LLM functions in TypeScript: a composable pattern for prompt/LLM/parse/execute

https://medium.com/llm-exe
5•llm-exe•1y ago

Comments

llm-exe•1y ago
A few weeks ago I posted about llm-exe, a TypeScript library for structuring LLM calls with reusable components.

I just put together a Medium series that digs deeper into how it works. It breaks down the idea of an LLM function - an executor that wraps a prompt, a model, and a parser. Each part does one thing well, and together they give you a clean, well-typed, testable, and composable way to work with LLMs.

The posts walk through each layer: prompt, parser, LLM, executor. If you're building LLM features in production with TypeScript, I think you’ll find the structure helpful. I am interested in any feedback.

Medium series: https://medium.com/llm-exe

mrbashtech•1y ago
Great work! folks at llm-exe; As a TypeScript developer working with LLMs, llm-exe has been a game-changer for me. It abstracts away the boilerplate of prompt formatting, model integration, and response parsing, allowing me to focus on building features.

The modular design—separating prompts, parsers, and executors—makes my codebase cleaner and more maintainable. Plus, the ability to switch between different LLM providers with minimal code changes is incredibly convenient.

Run frontier models on gaming GPUs

https://twitter.com/andy_shuoyang/status/2090856982383300898
1•eob•2m ago•0 comments

Guitar Tuner (2015)

https://aerotwist.com/blog/guitar-tuner/
1•kaycebasques•2m ago•0 comments

[BOOK REVIEW] The Escape Artist

https://www.astralcodexten.com/p/your-book-review-the-escape-artist
1•barry-cotter•3m ago•0 comments

How fast is C++26's std:hive?

https://lemire.me/blog/2026/08/02/how-fast-is-c26s-stdhive/
2•signa11•7m ago•0 comments

Próspera- libertarian utopia on Caribbean island off the coast of Honduras

https://www.abc.net.au/news/2026-08-22/honduras-prospera-libertarian-utopia-caribbean-roatan/1070...
1•defrost•8m ago•0 comments

Single file apps with Gleam and Bun

https://alistair.sh/gleam-bun-apps
1•alistaiir•12m ago•0 comments

Ask HN: How to Claude Like Anthropic

1•haint_•22m ago•1 comments

A Stronger Goldbach Conjecture

https://ewlevitt.com/goldbach
2•ggossel•27m ago•0 comments

Syntax

https://www.doc.cc/syntax
2•pentagrama•37m ago•0 comments

S&P 500 CEO median pay hits $17.3M, widening CEO-worker ratio to 312-to-1

https://finance.yahoo.com/markets/stocks/articles/p-500-ceo-median-pay-234900518.html
2•newsomix9xl•38m ago•0 comments

Early Humans Likely Ate Carbs and Sugary Foods

https://www.history.com/articles/early-human-ancestors-diet-sugar-carbs
3•gmays•39m ago•0 comments

Show HN: I let an subagent workflow refactor my codebase for three days

https://github.com/ringlochid/oh-my-subagents
3•ringlochid•43m ago•2 comments

New human genome has almost no gaps

https://cen.acs.org/biological-chemistry/genomics/single-complete-diploid-human-genome/104/web/20...
2•gmays•45m ago•0 comments

Robots running into walls go viral ahead of 2026 World Humanoid Robot Games

https://mashable.com/tech/world-humanoid-robot-games-2026-running-fall-accident
1•newsomix9xl•46m ago•0 comments

Tesla's Solar Roof is Dead – Here's what went wrong

https://techcrunch.com/2026/08/21/teslas-solar-roof-is-dead-heres-what-went-wrong/
1•freediddy•49m ago•1 comments

'Betrayal': Ranchers lash out at Donald Trump's plan to cut tax on beef imports

https://www.ft.com/content/7aabb591-ca73-4d87-96ad-dac9a210e1d0
4•petethomas•51m ago•2 comments

China's robots rock, box and mix drinks. Can they outperform humans?

https://www.ft.com/content/e16ded89-b618-4952-a0ab-96ef11d06582
1•newsomix9xl•57m ago•0 comments

Anthropic Could Aim to Raise $100B in Blockbuster IPO

https://www.nytimes.com/2026/08/21/technology/anthropic-ipo-100-billion.html
1•mfiguiere•1h ago•0 comments

Show HN: Anjadhe – privacy first AI assistant, no account, no server DB

https://www.anjadhe.com/demo
1•ram-bv•1h ago•1 comments

Execution Is the Moat

https://aspiringforintelligence.substack.com/p/execution-is-the-moat
3•navjeetgill307•1h ago•0 comments

Show HN: ServerKit - Self-hosted control panel for apps, Docker, and databases

https://github.com/jhd3197/ServerKit
2•jhd3197•1h ago•0 comments

The Lexus LS 400 Happened When the Government Tried to Protect Detroit [video]

https://www.youtube.com/watch?v=i15Ii4yetLM
3•xeonmc•1h ago•0 comments

Show HN: Heimdall – Trust-verified knowledge layer for AI coding agents

https://github.com/ArihantDeva/heimdall
2•arihantdeva•1h ago•0 comments

Rocket Lab Announces Flatellite: A New Satellite Designed for Mass Manufacture

https://rocketlabcorp.com/updates/rocket-lab-announces-flatellite-a-new-satellite-designed-for-ma...
2•walrus01•1h ago•0 comments

A checklist is a letter to the untuned self

https://pilgrima.ge/p/the-untuned-self
2•momentmaker•1h ago•0 comments

Jason Arday Did a Lot of Harm

https://etanaedelman.substack.com/p/jason-arday-actually-did-a-lot-of
4•barry-cotter•1h ago•1 comments

Obsession with AI

https://unmeshed.io/blog/using-ai-wisely-starts-before-the-first-prompt
1•jusonchan81•1h ago•0 comments

Stalking the Wily Hacker: 40 years later – Cliff Stoll [video]

https://www.youtube.com/watch?v=656058JxTM0
4•zoenolan•1h ago•1 comments

I'd Rather Risk Cancer Than See AI Move This Fast

https://www.theatlantic.com/technology/2026/06/ai-cancer-progress/687654/
2•jdkee•1h ago•2 comments

Ask HN: What types of alternative communities have you seen work or not and why?

1•tmnvix•1h ago•1 comments