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.

Microsoft doesn't know what to do about the memory pricing crisis theyre causing

https://www.pcgamer.com/software/platforms/microsoft-doesnt-know-what-to-do-about-the-memory-pric...
1•evo_9•2m ago•0 comments

China's Xiaomi MiMo Is Now 15X Faster Than ChatGPT and Claude

https://decrypt.co/370449/xiaomi-mimo-ultraspeed-ai-model-faster-chatgpt-claude
1•gmays•4m ago•0 comments

Show HN: Garden Letters – Floral Letter Design and Music

https://gardenletters.net
1•QingWu•9m ago•0 comments

Z-Library Lets People Run White-Label, Login-Only Pirate Mirrors

https://torrentfreak.com/z-library-lets-people-run-white-label-login-only-pirate-mirrors/
1•Cider9986•12m ago•0 comments

Anthropic Walks Back Policy That Could Have 'Sabotaged' Researchers Using Claude

https://www.wired.com/story/anthropic-responds-to-backlash-on-claudes-secret-sabotage-on-ai-resea...
3•ericflo•15m ago•1 comments

Tell HN: Anthropic's Fable model is too expensive

4•hyhmrright•17m ago•1 comments

What the Heck Happened to Mountain Bike YouTube? [video]

https://www.youtube.com/watch?v=_oQ4XY4P1n8
1•operatingthetan•17m ago•1 comments

Have a Thorny Medical Question? Your Doctor May Be Using A.I. For That

https://www.nytimes.com/2026/06/08/business/ai-medicine-doctors.html
1•lxm•19m ago•0 comments

Aram Harrow, quantum researcher: 'These computers won't take 10 years'

https://english.elpais.com/technology/2026-06-05/aram-harrow-quantum-researcher-these-computers-w...
2•olvy0•24m ago•0 comments

Canada introduces legislation to ban social media U16, regulate AI chatbots

https://finance.yahoo.com/news/canada-introduces-legislation-ban-social-205633582.html
1•1vuio0pswjnm7•25m ago•0 comments

Show HN: DocStreamAI – Automatic invoice/receipt collection for Quickbooks/Xero

https://docstreamai.com/
1•alexjimenez99•27m ago•0 comments

They Spent Years on a Math Problem. Then They Were Scooped by A.I

https://www.nytimes.com/2026/06/08/science/ai-scoop-young-mathematicians.html
1•lxm•28m ago•0 comments

The backlash against AI, in 4 charts

https://www.fastcompany.com/91553925/the-backlash-against-ai-in-4-charts
2•1vuio0pswjnm7•29m ago•0 comments

I made an agent skill for making HTML slides with consultant style

1•Hansun•30m ago•0 comments

200x kv Cache Compression

https://twitter.com/oneill_c/status/2064724063478767804
1•nico•32m ago•0 comments

Count Steps with 99.5% Accuracy

https://www.bambistep.com
1•stokaty•33m ago•0 comments

ComHub 64 USB Hub Review

https://lyonsden.net/comhub-review/
1•jandeboevrie•33m ago•0 comments

A Crime Doesn't Make a Child an Adult

https://www.theatlantic.com/ideas/2026/06/kids-adult-time-counterproductive/687449/
8•paulpauper•33m ago•2 comments

Gaslighting Openness

https://lucumr.pocoo.org/2026/6/10/gaslighting/
1•lumpa•34m ago•0 comments

Biotech Paper Game

https://www.overcomingbias.com/p/biotech-paper-game
1•paulpauper•34m ago•0 comments

If LLMs are all persona, whose persona are they?

https://persona.earthpilot.ai
1•paulpauper•36m ago•0 comments

Where in the world, and when, does this human artifact belong?

https://anthropeum.com/
1•js2•37m ago•0 comments

Show HN: I built a Red Flag Warning zone-check tool for the East Bay in 48h

https://redflag-check.info
3•vedant28t•43m ago•1 comments

SpaceX IPO demand is approaching four times oversubscribed, source says

https://www.reuters.com/world/spacex-ipo-demand-is-approaching-four-times-oversubscribed-source-s...
2•SilverElfin•43m ago•1 comments

Type the scene. Seedance 2.0 Mini films it

https://seedance2mini.ai/
2•xbaicai•43m ago•1 comments

Fidelity Bets People Want Their 401(k)s to Look More Like Pensions

https://www.wsj.com/personal-finance/retirement/fidelity-bets-people-want-their-401-k-s-to-look-m...
3•petethomas•44m ago•0 comments

Alleged Fable sabotage of an ML project

https://xcancel.com/adamislucky/status/2064731321360912433
2•gslepak•46m ago•0 comments

Explorable Explanations

https://worrydream.com/ExplorableExplanations/
1•soupspaces•48m ago•0 comments

What remains scarce after AGI?

https://www.dwarkesh.com/p/alex-imas-phil-trammell
2•gmays•49m ago•0 comments

Moomin (1990)

https://archive.org/details/moomin-1990
1•petethomas•50m ago•0 comments