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.

Alan Greenspan, RIP

https://www.nytimes.com/2026/06/22/us/alan-greenspan-dead.html
1•A_D_E_P_T•54s ago•0 comments

The Lego Natural History Museum, and the Question of Scale

https://svpow.com/2026/05/05/the-lego-natural-history-museum-and-the-question-of-scale/
1•surprisetalk•1m ago•0 comments

Want a Better Credit Score? Don't Fall for This Common Scam

https://brothke.medium.com/want-a-better-credit-score-dont-fall-for-this-common-scam-eec6b6f968a3
1•benrothke•1m ago•0 comments

Show HN: CalendarPipe – programmable calendar sync via OAuth or email invites

https://www.calendarpipe.com
1•jukben•3m ago•0 comments

Quantum mechanics theory may work without imaginary numbers, analysis suggests

https://phys.org/news/2026-06-quantum-mechanics-theory-imaginary-analysis.html
1•pseudolus•3m ago•0 comments

Shiproof: Catch App Store rejections before you submit (free GitHub Action

https://github.com/BhaveshThapar/Shiproof
2•bthapar•3m ago•0 comments

The Leg That Feels the Ground Through Its Gears – Mobility and Field Robotics

https://atomsfrontier.substack.com/p/the-leg-that-feels-the-ground-through
1•jpatel3•4m ago•0 comments

The World Is Waiting for the Next Adam Smith

https://cacm.acm.org/blogcacm/the-world-is-waiting-for-the-next-adam-smith/
4•pseudolus•5m ago•0 comments

WordPress Debug.log Can Eat the Whole Disk

https://wpmultitool.com/blog/wordpress-debug-log-too-large/
2•taubek•6m ago•0 comments

Datastar: It's Pretty Good – With David Nolen [video]

https://www.youtube.com/watch?v=2ECucq-mTGg
1•andersmurphy•6m ago•0 comments

Benchmarking low latency, high concurrency analytics engines

https://medium.com/@dans_floor/red-vs-blue-vs-yellow-benchmarking-low-latency-high-concurrency-an...
2•karlmush•8m ago•0 comments

Microsoft considers DeepSeek as OpenAI costs mount

https://www.digitimes.com/news/a20260621PD202/microsoft-deepseek-openai-cost-copilot.html
4•dstala•10m ago•0 comments

GLM-5.2: Another open-source Chinese AI model has Silicon Valley's attention

https://www.businessinsider.com/what-is-glm-5-2-chinese-ai-coding-model-2026-6
1•dstala•11m ago•0 comments

Show HN: Core Rankings for DBLP Profiles

https://pubtier.com/
1•otrack•11m ago•0 comments

A Marinharia dos Descobrimentos: technology, method, and a hunger to know

https://emot.substack.com/p/a-marinharia-dos-descobrimentos-technology
1•emot•12m ago•0 comments

Why round-robin load balancing causes incidents (and 9 alternatives)

https://www.azion.com/en/blog/ai-load-balancing-beyond-round-robin/
1•pedrohgomes1001•13m ago•0 comments

Medical provider might be recording your mental health care visits

https://themarkup.org/privacy/2026/06/16/your-medical-provider-might-be-recording-your-mental-hea...
1•speckx•14m ago•0 comments

Ex-OpenAI researcher returns to India to build super-intelligence

https://www.indiatoday.in/technology/news/story/ex-openai-researcher-returns-to-india-to-build-su...
2•dstala•14m ago•0 comments

Watch the US Treasury yield curve invert before each recession

https://eco3min.fr/en/us-treasury-yield-curve-through-time/
3•latentframe•15m ago•1 comments

The Escape of Europe's Smartest Criminal [video]

https://www.youtube.com/watch?v=P0BUbWXvySE
1•surprisetalk•15m ago•0 comments

The Secret Life of Computers

https://thechipletter.substack.com/p/the-secret-life-of-computers
1•signa11•18m ago•0 comments

Is AI More Expensive Than the Employees It's Replacing?

https://www.profgmedia.com/p/is-ai-more-expensive-than-the-employees
3•gmays•19m ago•0 comments

iOS 27 Adds Mac-Like Recovery Mode for iPhone and iPad

https://www.macrumors.com/2026/06/22/ios-27-adds-mac-like-recovery-mode/
1•tosh•20m ago•0 comments

The Hitchhiker's Guide to the Galaxy – The Game – 30th Anniversary Edition

https://www.bbc.co.uk/programmes/articles/1g84m0sXpnNCv84GpN2PLZG/the-game-30th-anniversary-edition
2•robin_reala•23m ago•0 comments

You don't need ten agents. You need two tracks

https://tidewave.ai/blog/two-tracks
1•hugobarauna•23m ago•0 comments

Skillsoft Selling Global Knowledge Business to Enduring Ventures

https://www.businesswire.com/news/home/20260520936193/en/Skillsoft-Announces-Sale-of-Global-Knowl...
2•root-parent•26m ago•0 comments

GLM-5.2 Is the New Best Open Model

https://thezvi.substack.com/p/glm-52-is-the-new-best-open-model
2•7777777phil•28m ago•0 comments

Show HN: Next Move Theory gives you an algorithm for every product decision

https://nextmovetheory.com
4•zamesin•28m ago•0 comments

Google I/O 2026 Mobile Playbook: AI Studio, Android CLI, and Antigravity

https://geekyants.com/blog/google-io-2026-mobile-playbook-ai-studio-android-cli-and-antigravity-f...
1•shymasen•29m ago•0 comments

Show HN: ScreenCam – create polished product demos on Mac

https://thescreen.cam/
3•catsjuice•30m ago•0 comments