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.

Parking Spot Is Free. Should It Be?

https://www.nytimes.com/interactive/2026/06/09/nyregion/nyc-street-parking.html
1•paulpauper•1m ago•0 comments

Kagi Magic

https://kagi.com/magic
1•amirmasoudabdol•1m ago•0 comments

Tyler Cowen: Is Mexico Safe Enough for the World Cup?

https://www.thefp.com/p/tyler-cowen-is-mexico-safe-enough
1•paulpauper•1m ago•0 comments

US and Iran have agreed to wording of a deal to end their war

https://apnews.com/article/iran-us-ceasefire-hezbollah-israel-12-june-2026-7085e386e1c40ee6cfe634...
1•geox•1m ago•0 comments

Hacking Google with A.I. For $500k

https://brutecat.com/articles/hacking-google-with-ai/
1•kkm•1m ago•0 comments

GatekeeperAI – self-hosted governance platform for AI apps your team is building

https://github.com/jacobthomasmichael/GatekeeperAI/blob/main/README.md
1•jacob_thomas503•3m ago•0 comments

It's like I was born to be here (in Postgres) on Talking Postgres podcast Ep40

https://talkingpostgres.com/episodes/how-i-got-started-running-a-postgres-user-group-with-jeremy-...
1•clairegiordano•3m ago•0 comments

The 98% Problem: A Survey of Harness Engineering for AI Agents

https://labs.beconfident.app/papers/harness-engineering-survey
3•gdss•4m ago•0 comments

Sex n Crime 01

https://c64mags.untergrund.net/wiki/index.php?title=Sex_n_Crime_01
1•jruohonen•6m ago•0 comments

Ask HN: Hello Landing Dispute – Furnished Apartments

1•mehdizare•7m ago•0 comments

The World's Real-Time Billionaires

https://www.forbes.com/real-time-billionaires/
1•mellosouls•8m ago•0 comments

4× RTX Pro 6000 Blackwell on Water, and the One Card That Wouldn't Behave

https://sabareesh.com/posts/blackwell-waterblock/
1•sabareesh•10m ago•1 comments

The decline of Google and rise of alternative searches as the source of traffic

https://stfn.pl/blog/101-decline-of-google/
3•speckx•12m ago•0 comments

The Impossible Journey to Get Apple Developer Accounts

https://www.dioko.ai/blog/the-impossible-journey-to-get-apple-developer-accounts
2•dioko•14m ago•0 comments

Indiana Pi Bill

https://en.wikipedia.org/wiki/Indiana_pi_bill
2•drdirk•16m ago•0 comments

There's Someone Squatting in My House and I Need Permission to Remove Them

https://substack.com/sign-in
2•Poppytam•17m ago•1 comments

chromium.woolyss.com is shutting down on August 31, 2026

https://chromium.woolyss.com/
3•ibradude•20m ago•1 comments

Two Years of OCaml

https://borretti.me/article/two-years-ocaml
2•tosh•22m ago•0 comments

We Can Live with AI, but Not Like This

https://atroxclarus499795.substack.com/p/we-can-live-with-ai-but-not-like
3•Poppytam•23m ago•0 comments

Meta: Setting to disconnect your off-Meta activity is going away

https://help.instagram.com/1690298141991062
5•saharshpruthi•23m ago•1 comments

Show HN: Flag Study – learn the flags behind the World Cup

https://www.flagstudy.com/
2•jsheffers•25m ago•0 comments

When The C/C++ Users Journal Disappeared

https://freshsources.com/blog/files/cpp-source.html
3•chuckallison•27m ago•0 comments

Service Bindings for Postgres: Per-App Roles and Grants

https://openrun.dev/blog/service-binding/
2•ajayvk•31m ago•1 comments

Apple Has Officially Stopped Caring About Purveying Accurate Information

https://buttondown.com/theinternet/archive/apple-has-officially-stopped-caring-about-accuracy/
7•speckx•35m ago•1 comments

Large etchings of numbers signaling opposition to Trump appear on National Mall

https://www.washingtonpost.com/style/2026/06/11/apparent-etchings-86-47-seen-trump-threat-spotted...
2•evan_•36m ago•2 comments

Keynesian Beauty Contest

https://en.wikipedia.org/wiki/Keynesian_beauty_contest
3•throw0101c•36m ago•1 comments

How pierre diffs codeviewer component works

https://twitter.com/backnotprop/status/2065479594023829619
2•ramoz•37m ago•2 comments

You cannot control the mind, and that is not the problem

https://pilgrima.ge/p/the-way-back-home-is-a-circle
6•momentmaker•38m ago•3 comments

The C-64 Scene Database

https://csdb.dk/
4•jruohonen•39m ago•0 comments

New technology developed could prevent 70M tonnes of milk waste each year

https://www.abc.net.au/news/2026-06-07/act-technology-prevent-70-million-tonnes-of-milk-waste-ann...
2•speckx•39m ago•0 comments