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.

How to Hide from Killer Drones

https://www.economist.com/science-and-technology/2026/07/08/how-to-hide-from-killer-drones
1•nmstoker•1m ago•0 comments

Ex-Epoch Times CFO pleads guilty in $67M multinational money laundering scheme

https://apnews.com/article/epoch-times-cfo-indictment-money-laundering-a015b35aaeae44284f0026dc10...
4•petethomas•2m ago•1 comments

People Who Will Thrive in the AI Age

https://www.theatlantic.com/ideas/2026/06/ai-open-ai-anthropic/687689/
1•davidklemke•3m ago•0 comments

New York Times says OpenAI hid evidence in ChatGPT copyright trial

https://techcrunch.com/2026/07/09/new-york-times-says-openai-hid-evidence-in-chatgpt-copyright-tr...
3•sbulaev•3m ago•0 comments

And Then the Billionaire Paid Off $550M of Our Debts for $5.5M

https://idiallo.com/blog/billionaire-paid-off-550-million-dollars-of-our-debts
1•firefoxd•4m ago•0 comments

Victor Marx wins Colorado's three-way Republican primary for governor

https://coloradosun.com/2026/07/09/victor-marx-wins-colorados-republican-primary-governor/
1•mooreds•4m ago•0 comments

GeForce Trading Cards: Series 1 Celebrates the Generations of GeForce

https://www.nvidia.com/en-us/geforce/news/geforce-trading-cards-series-1-summer-of-rtx-giveaways/
1•Jhsto•5m ago•0 comments

Show HN: Use Any Agent as an Orchestrator

https://github.com/backnotprop/orchestrator
1•ramoz•5m ago•0 comments

Seekable OCI: Lazy-Loading Container Images via Range-Request Indexing

https://arxiv.org/abs/2607.06868
1•Jimmc414•5m ago•0 comments

Academia and the "AI Brain Drain"

https://www.schneier.com/blog/archives/2026/03/academia-and-the-ai-brain-drain.html
1•JumpCrisscross•7m ago•0 comments

The weirdest things that mess up wi-fi – and how to improve your signal

https://www.bbc.com/future/article/20260708-the-weirdest-things-that-mess-up-your-wifi
3•billybuckwheat•7m ago•0 comments

Nobel-Winning U.S. Chemist Will Move to China to Lead A.I. Institute

https://www.nytimes.com/2026/07/09/science/nobel-winning-us-chemist-will-move-to-china-to-lead-ai...
2•metanoia_•7m ago•0 comments

Coding Glasses for AI Agents – Even G2 Terminal Mode

https://www.evenrealities.com/terminal
1•h14h•8m ago•1 comments

What It's Like to Suddenly Start Completely Believing in God [2022]

https://lydialaurenson.substack.com/p/what-its-like-to-suddenly-start-completely-believing-in-god
1•bookofjoe•9m ago•0 comments

Memory Scarcity, Open Models, and the Restructuring of the AI Industry

https://arxiv.org/abs/2607.07207
1•Jimmc414•10m ago•0 comments

Weapon Systems Annual Assessment

https://www.gao.gov/products/gao-26-108457
2•Jimmc414•10m ago•0 comments

World-First 'Super Alloy' Could Transform the Way Metals Are Made

https://www.sciencealert.com/world-first-super-alloy-could-transform-the-way-metals-are-made
2•tejohnso•11m ago•0 comments

California universities stockpiling AR-15s, grenades and submachine guns

https://www.theguardian.com/us-news/2026/jul/09/california-universities-military-equipment
6•sizzle•12m ago•2 comments

Fable Ban and Reversal Exposed We Cant Measure AI Cyber Risk in Real World

https://orionpolicy.org/washingtons-ai-ban-and-reversal-exposed-the-bigger-problem-it-cant-measur...
1•delschlangen•13m ago•0 comments

Lessons from CISA's Cyber Incident

https://www.cisa.gov/news-events/news/lessons-cisas-cyber-incident
2•guedou•13m ago•0 comments

Why American ambulance rides are so expensive

https://davidoks.blog/p/why-american-ambulance-rides-are
4•jyunwai•16m ago•1 comments

Patreon Blocks Crawlers from Stealing Creators' Work for AI Training

https://www.404media.co/patreon-cloudflare-partnership-ai-crawlers/
3•cdrnsf•17m ago•0 comments

An off switch for dual-use knowledge in AI models

https://www.anthropic.com/research/off-switch-dual-use
3•DeveloperErrata•17m ago•1 comments

Ask HN: Why so few consumer AI companies?

1•JimsonYang•19m ago•0 comments

Head to head: Muse Spark 1.1 vs. GLM 5.2

https://runtimewire.com/article/head-to-head-muse-spark-1-1-vs-glm-5-2
1•ryanmerket•20m ago•0 comments

Event Sourcing (2005)

https://martinfowler.com/eaaDev/EventSourcing.html
1•downbad_•20m ago•0 comments

Allstate accuses Broadcom of auditing it because it quit VMware

https://arstechnica.com/information-technology/2026/07/allstate-accuses-broadcom-of-auditing-it-b...
4•jnord•21m ago•0 comments

Australian Police seize control of network of encrypted phones

https://www.smh.com.au/national/nsw/murder-phones-cracked-police-seize-control-of-alleged-gangste...
5•milderworkacc•21m ago•0 comments

Show HN: O3k – a lightweight OpenStack-compatible API for labs and tests

https://o3k.io
2•killer32•22m ago•0 comments

Show HN: Ilya's 30 papers, explained in audio

https://listendock.com/30-papers
2•janpmz•22m ago•0 comments