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.

Brief Observations on Life

http://unfuck.i.ng/art/science/life/
1•singingfish•30s ago•1 comments

Flux 3 X Mimic: The Next Generation of Video-Action Models

https://bfl.ai/blog/flux-3-mimic
1•kensai•2m ago•0 comments

Maplike: Rust traits for operations on containers (HashMap, BTreeMap, Vec, etc.)

https://github.com/mikwielgus/maplike
2•mikolajw•3m ago•0 comments

Towards a Theory of Bugs: The Ruliology of the Unexpected

https://writings.stephenwolfram.com/2026/07/towards-a-theory-of-bugs-the-ruliology-of-the-unexpec...
1•nsoonhui•3m ago•0 comments

Future euro banknote design proposals

https://www.ecb.europa.eu/euro/banknotes/future_banknotes/html/design-proposals.en.html
2•robin_reala•4m ago•0 comments

Buz – A fork of Bun using modern Zig, with sub-1s incremental builds

https://ziggit.dev/t/buz-a-drop-in-replacement-for-bun-using-modern-zig-with-sub-1s-incremental-b...
2•kristoff_it•7m ago•0 comments

Stories from Tomorrow. Ministry of Defense (2023)

https://www.gov.uk/government/publications/stories-from-the-future-exploring-new-technology-throu...
1•AFF87•8m ago•0 comments

Hetzner is working on LLM Inference

https://sliplane.io/blog/hetzner-inference
3•jonas_scholz•9m ago•0 comments

Stable Diffusion in the Browser with WebNN and ONNX Runtime

https://scribbler.live/2026/04/02/Stable-Diffusion-in-the-Browser-with-WebNN-ONNX.html
1•gopisuvanam•9m ago•0 comments

BYD Launches the Denza Z9 GT EV in Europe and the UK at over 3X the Price

https://electrek.co/2026/07/23/byd-launches-denza-z9-gt-ev-europe-the-uk-3x-price/
2•ksec•14m ago•0 comments

PDF Reader – PDF Viewer

https://play.google.com/store/apps/details?id=com.pdfreader.pdfviewer.editor.officereader&hl=en_US
1•satyampromotion•18m ago•1 comments

Trump says nearly 200 firms signed pledge to protect from costs of datacenters

https://www.theguardian.com/us-news/2026/jul/23/trump-datacenter-costs-big-tech
1•beardyw•20m ago•1 comments

The government of India wants bitchat taken down

https://twitter.com/jack/status/2080565084586135773
2•temphnaccount•21m ago•1 comments

Grok muscles into Excel with an AI add-in of its own

https://www.theregister.com/ai-and-ml/2026/07/22/grok-muscles-into-excel-with-an-ai-add-in-of-its...
1•beardyw•24m ago•0 comments

Apertus 1.5

https://apertus-ai.org/articles/2026-07-apertus-1-5/
1•denysvitali•24m ago•0 comments

Nothing works and everyone is euphoric

https://ptrchm.com/posts/nothing-works-and-everyone-is-euphoric/
2•pchm•25m ago•0 comments

The day Steve Jobs dissed me in a keynote (2010)

https://sive.rs/itunes
6•downbad_•26m ago•0 comments

Building pi in a World of Slop [video]

https://www.youtube.com/watch?v=RjfbvDXpFls
1•ciconia•29m ago•0 comments

RTK and Claude Code Token Savings: A Closer Look

https://blog.jetbrains.com/ai/2026/07/rtk-claude-code-token-savings/
2•OyoKooN•32m ago•0 comments

Google Cloud is killing it

https://www.theregister.com/paas-and-iaas/2026/07/22/google-cloud-is-killing-it/5276632
2•beardyw•32m ago•0 comments

Go 1.26 and Dead Goroutines: a walkthrough of the goroutineleak profile

https://medium.com/towardsdev/the-goroutines-that-refuse-to-die-and-how-go-1-26-finally-made-them...
2•cheikhdev•32m ago•0 comments

The world is crazy. Why are stocks up?

https://www.axios.com/2026/07/23/moodys-markets-geopolitics-world
3•porridgeraisin•34m ago•0 comments

Show HN: filtersql – A Dependency-Free JSON-to-SQL Compiler for LLMs and WebAPIs

https://github.com/fthiella/filtersql/
1•fthiella•37m ago•1 comments

Pellmell

https://pellmell.ai/
2•achairapart•37m ago•0 comments

The Post-Delivery Gap Nobody's Talking About

https://atkatana.com/blog/post-delivery-gap.html
1•atkatana•39m ago•0 comments

Exoplanets Around Barnard's Star Are Uninhabitable

https://www.universetoday.com/articles/astronomers-determine-that-exoplanets-around-barnards-star...
1•root-parent•40m ago•0 comments

Launching Courieroo – P2P Delivery

https://landing.courieroo.com/
1•sitesouk•42m ago•0 comments

Andrew Ng made an open source agent

https://openworker.com/
1•sudo_cowsay•46m ago•1 comments

Claude Code hooks that block find/sed/cat, redirect to native tools

https://github.com/HabibiCodeCH/claude-no-bash-detour
1•habibicode•48m ago•0 comments

Kitboga manipulates AI scam call into hallucination

https://www.youtube.com/watch?v=lk3jCuITwcE
1•platevoltage•48m ago•0 comments