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.

Show HN: Practicing foreign language generating conversation on topic [video]

https://www.youtube.com/watch?v=6oFjLfrbegg
1•julienreszka•57s ago•0 comments

We gave our agent the exact metric definition. It still wrote the wrong SQL

https://clarilayer.com/blog/what-anthropic-and-openai-didnt-say-about-context-for-data-agents
1•kylehui818•3m ago•1 comments

Vibe Coding is the new Internet Dating

https://joecmarshall.com/posts/vibecoding-is-the-new-internet-dating/
1•CoreSet•5m ago•0 comments

Twelve Factor App Method (2011)

https://12factor.net/
1•zuzuen_1•5m ago•0 comments

Recovoly – AI-powered ink bleed removal for scanned documents

https://recovoly.com
1•thisarajay•6m ago•0 comments

Overtone

https://github.com/overtone/overtone
1•tosh•10m ago•0 comments

How HN: Launchmap – from idea to first paying customer

https://launchmap.madethis.app
1•lucawalthert•13m ago•1 comments

I rebuilt the same SaaS plumbing four times. So I built the thing I wish existed

https://www.indiehackers.com/post/i-rebuilt-the-same-saas-plumbing-four-times-so-i-built-the-thin...
2•DharmendraJago•16m ago•0 comments

Finitemax

https://www.instagram.com/finitemax
1•Faizaan_vx•17m ago•0 comments

Fable 5 is available in Zed

https://github.com/zed-industries/zed/pull/58957
1•flaburgan•18m ago•2 comments

Claude Fable 5 Ultracode + AI medical diagnosis

https://github.com/joelparkerhenderson/ai-medical-diagnosis-examples/blob/main/doctor-perspective...
1•jph•19m ago•0 comments

Moon Mnf: magic wands,idiots, first principal

https://www.lmcpress.com/
1•AITripleAce•20m ago•0 comments

Rejected Emoji Proposals

https://charlottebuff.com/unicode/misc/rejected-emoji-proposals/
1•cheeaun•25m ago•0 comments

Firefox for Android: Play Integrity Check Challenges Custom ROM Users

https://serverhost.com/blog/firefox-for-android-play-integrity-check-challenges-custom-rom-users/
3•shaunpud•27m ago•0 comments

Australian SaaS Platforms Can Verify Business Users with ABN Data

https://fastbusinessapi.com/article/how-australian-saas-platforms-can-verify-business-users-with-...
2•ApiFB-Dev•28m ago•0 comments

Principles for Agent-Native CLIs

https://trevinsays.com/p/10-principles-for-agent-native-clis
1•saikatsg•30m ago•0 comments

From the Transistor to the Web Browser

https://github.com/geohot/fromthetransistor
2•pythops•32m ago•0 comments

David Sinclair plans to test whole-body rejuvenation drugs in the xPrize compet

https://www.technologyreview.com/2026/06/09/1138545/david-sinclair-plans-to-test-whole-body-rejuv...
1•joozio•37m ago•0 comments

Compute-to-Surplus: Why AI Progress Doesn't Matter Until It Changes Economics

https://signal-memo.com/memo-the-compute-to-surplus-pipeline-is-a-product-spec-heres-how-to-ship-...
1•alex-ivan•38m ago•0 comments

Show HN: What Sound Looks Like [video]

https://www.youtube.com/watch?v=XvkDwInPYJw
1•FionaZhu•38m ago•0 comments

Lawyers Barred for A.I.-Generated Citations to Fake Cases

https://www.nytimes.com/2026/06/09/us/ai-lawyers-sanctioned-mississippi.html
2•iancmceachern•41m ago•1 comments

Don't Be Stupid: Grasp Solid

https://www.npopov.com/2011/12/27/Dont-be-STUPID-GRASP-SOLID.html
1•prakashqwerty•41m ago•0 comments

Show HN: Leash, a low-dopamine mobile browser replacement

https://leash.ax
3•hemmert•41m ago•4 comments

CIA officer arrested with gold bars accused of making up top secret program

https://www.nbcnews.com/politics/national-security/cia-officer-arrested-gold-bars-accused-making-...
4•u1hcw9nx•48m ago•0 comments

Self-Prompt

https://selfprompt.dev/posts/2026-06-08-self-prompt
1•pro_methe5•49m ago•0 comments

The Revenge of the Publicists: How Comms Execs Stormed the C-Suite

https://www.wsj.com/cmo-today/the-revenge-of-the-publicists-how-comms-execs-stormed-the-c-suite-2...
1•doener•50m ago•0 comments

USB Devices – OrbStack Docs

https://docs.orbstack.dev/features/usb
2•watermelon0•50m ago•0 comments

CrossOver 26.2.0

https://www.codeweavers.com/support/forums/announce
2•doener•1h ago•0 comments

What I Got Right and Wrong Building a Solo Project Around Real Life

https://medium.com/@ivan_49508/what-i-got-right-and-wrong-building-a-solo-project-around-real-lif...
3•enjoyminded•1h ago•0 comments

Ask HN: What is the best way to learn game logic programming for beginners?

1•huzaifasinan•1h ago•0 comments