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.

The Defense-Tech Bubble Is Headed for Consolidation

https://fox-and-lion.vercel.app/analysis/the-defense-tech-bubble-is-headed-for-consolidation
1•bdjsmsm•2m ago•0 comments

SQLite plans can drastically differ with CTE and temp table

https://askrecall.dev/blog/44-minute-ci-job/
1•vira28•4m ago•0 comments

SQLite for Everything

https://joecode.com/2026-08-19-sqlite3/
1•mpweiher•4m ago•0 comments

Survival Guide for a Censored Internet

https://akitaonrails.com/en/2026/08/19/survival-guide-for-a-censored-internet/
1•g0xA52A2A•8m ago•0 comments

Compilation of Elon Musk promising self driving Tesla 'next year' for 10 years

https://www.reddit.com/r/EnoughMuskSpam/s/ROk3lHIdqQ
1•fsuts•8m ago•0 comments

Inadvertent Context Leakage in Language Models

https://arxiv.org/abs/2608.19857
1•sbulaev•9m ago•0 comments

Voluntary attention regulates acute immune responses in humans

https://www.nature.com/articles/s41562-026-02541-1
1•morsch•12m ago•0 comments

America Inc has a tight grip on allied governments

https://www.economist.com/business/2026/08/16/america-inc-has-a-tight-grip-on-allied-governments
1•edward•13m ago•0 comments

Bitcoin's short squeeze traced to a Treasury bond buyback decision

https://davidebtc186.substack.com/p/bitcoin-just-had-its-biggest-squeeze
1•shadowbip•18m ago•0 comments

Only one type of lawyer will survive the AI wipeout

https://www.afr.com/work-and-careers/workplace/judges-may-be-the-only-survivors-of-law-s-ai-carna...
2•asdefghyk•20m ago•1 comments

Writing with AI Is Stupid

https://lambdaland.org/posts/2026-08-07-ai-writing-stupid/
2•frizlab•25m ago•1 comments

Better Batteries

https://matklad.github.io/2026/08/20/better-batteries.html
1•olexsmir•27m ago•0 comments

MOQ Video Streaming for Robots, Drones, and Embedded Devices

https://www.red5.net/blog/moq-video-streaming-for-robots-drones-and-embedded-devices/
1•mondainx•38m ago•0 comments

Claude Opus 4.6 returned nothing 900/900 times. Should agents retry?

https://zenodo.org/records/21696066
5•aiagenttester•43m ago•1 comments

Why to Start a Startup in a Bad Economy (2008)

https://paulgraham.com/badeconomy.html
1•tosh•43m ago•0 comments

Stop Clutching Your FPV Drones

https://foxandlion.pub/analysis/stop-clutching-your-fpv-drones
4•ewfeber•46m ago•0 comments

El Niño set to be 'strongest in living memory', says Met Office

https://www.bbc.co.uk/weather/articles/c3ekg93vjz9o
2•iamben•46m ago•0 comments

ISO 24495-1:2023 Plain language

https://www.iso.org/standard/78907.html
2•Bluestein•47m ago•0 comments

Show HN: Meg – I processed 259M nodes on my laptop using 6.91MB RAM

https://github.com/blueray313164-a11y/Quantum-Drive-Solver
1•blueray313164•50m ago•0 comments

See Through Walls with WiFi

https://github.com/ruvnet/RuView
1•chunkyslink•52m ago•1 comments

The Lost Treasure of Sid Meier's Pirates

https://remapradio.com/articles/the-lost-treasure-of-sid-meiers-pirates/
21•spankibalt•53m ago•3 comments

Going Freestanding

https://antonz.org/going-freestanding/
3•ingve•57m ago•0 comments

Small Models Can Introspect, Too (2025)

https://vgel.me/posts/qwen-introspection/
2•networked•58m ago•0 comments

Reducing C++ template bloat by factoring out the type-dependent portions

https://devblogs.microsoft.com/oldnewthing/20260820-00/?p=112629
1•ingve•59m ago•0 comments

Where to Draw the Line Which decisions should not be handed over to LLMs?

https://queue.acm.org/detail.cfm?id=3834784
1•tmanolatos•1h ago•2 comments

Domain-Driven Design matters more when AI writes your code

https://threedots.tech/post/ddd-and-ai-coding/
1•BerislavLopac•1h ago•0 comments

The LLM rewrote the email after I approved it

https://www.crusbro.com/en/product-architecture.html
2•crusbro•1h ago•0 comments

Updating a side project with AI in 275 commits

https://benhoyt.com/writings/updating-gifty-with-ai/
1•ingve•1h ago•1 comments

Show HN: Plainspeak, make AI agents write like a human

https://sufiyan.cc/plainspeak
1•codersufiyan•1h ago•0 comments

Show HN: I built a TV like website for Indian nostalgic shows

https://www.dabbatv.xyz/
2•codepeddler•1h ago•2 comments