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.

Prompting Claude Fable 5.1

https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/prompting-claude-fable-5-1
1•malshe•3m ago•0 comments

The Silo · interactive 3D cutaway

https://3dscenes.qualityf2p.workers.dev/silo
2•duck•5m ago•0 comments

Let's Build a Compressor from Scratch

https://ochagavia.nl/blog/lets-build-a-compressor-from-scratch/
1•wofo•7m ago•0 comments

It sure looks like hackers breached a major ID card verification service

https://techcrunch.com/2026/09/02/it-sure-looks-like-hackers-breached-a-major-id-card-verificatio...
1•aanet•7m ago•1 comments

Commerce Agents: Reference blueprint for building shopping and merchant agents

https://github.com/anthropics/commerce-agents
2•hrpnk•8m ago•0 comments

Z: Local-first search layer for humans and agents

https://github.com/zvec-ai/zvec-grep
2•mellosouls•8m ago•1 comments

Domain-Specific Small Language Models

https://www.manning.com/books/domain-specific-small-language-models
2•teleforce•8m ago•0 comments

Uber drivers launch European class action over AI algorithm

https://www.theguardian.com/technology/2026/sep/02/uber-drivers-europe-legal-action-ai-algorithm
1•uxhacker•10m ago•0 comments

Why Crash Rate only tells half the AV safety story

https://www.thedriverlessdigest.com/p/why-crash-rate-only-tells-half-of
1•preetnation•10m ago•0 comments

When Worthless Cash Floated in the River

https://komando1.substack.com/p/when-worthless-cash-floated-in-the
1•inglor_cz•11m ago•1 comments

I wanna live an NPC life

https://signalundefied.bearblog.dev/i-wanna-live-an-npc-life/
2•conferza•11m ago•0 comments

AI Agents and the Refactoring That Never Happens

https://www.rosenfeld.page/articles/programming/2026_09_02_ai_agents_and_the_refactoring_that_nev...
3•rosenfeld•12m ago•0 comments

Working on Economics with Fable 5

https://wilsoniumite.com/2026/08/03/working-on-economics-with-fable-5/
2•Wilsoniumite•13m ago•0 comments

Pinning the Wage to Scarcity and Technology

https://papers.ssrn.com/sol3/papers.cfm?abstract_id=7226858
1•Wilsoniumite•15m ago•0 comments

Russian Mathematicians Taught AI How to Talk to Each Other Without Using Words

https://www.wired.com/story/russian-startup-mostik-ai-models-communication/
1•eamag•15m ago•1 comments

Fable 5.1 World Modeling

https://github.com/PhiloLabs/fable51-worlds
3•surreal_•15m ago•0 comments

Why Americans are not working

https://flowingdata.com/2026/08/25/who-is-not-working-and-why/
1•gmays•15m ago•0 comments

GitHub Open Sources Chopin

https://githubnext.com/projects/chopin/
2•robinhood•16m ago•0 comments

Filmstrips were a classroom mainstay. Now one archivist is racing to save them

https://www.popculturalprecursors.com/p/can-this-forgotten-medium-be-saved
1•cainxinth•17m ago•0 comments

Wendell Berry's Nine Rules

https://www.honest-broker.com/p/wendell-berrys-nine-rules
1•paulpauper•18m ago•0 comments

Meet the Antinatalists, Who Hope Humans Go Extinct

https://www.playboy.com/read/politics/meet-the-antinatalists-who-hope-humans-go-extinct
1•Teever•18m ago•0 comments

Is This Video a Psyop? With Charlie Warzel

https://www.youtube.com/watch?v=z7lQdkiQfo4
1•handfuloflight•19m ago•0 comments

Show HN: Cardel, a site builder for authors and other solo professionals

https://www.cardel.io
1•Orin-zzBots•20m ago•0 comments

Advanced Singulation Technology – Moving Different Objects with the Celluveyor [video]

https://www.youtube.com/watch?v=MxHdzHDbJz0
1•Brosper•21m ago•0 comments

Building Commerce Agents with Claude

https://claude.com/blog/claude-for-commerce-agents
1•mirzap•22m ago•0 comments

Content Creator

1•pjohnso•22m ago•0 comments

The Post-AI Internet Doesn't Look Great

https://www.jordangoodman.xyz/the-post-ai-internet-doesnt-look-great/
19•speckx•23m ago•3 comments

The OCW Update [video]

https://www.youtube.com/watch?v=WCMFdrTGAEY
1•Brosper•23m ago•0 comments

Sam Altman: Water use for 1 almond same as 38,000 ChatGPT queries [video]

https://www.youtube.com/watch?v=VeizK1M7V7E
3•delichon•23m ago•1 comments

The Nvidia-sized hole in US GDP statistics

https://epoch.ai/publications/the-nvidia-sized-hole-in-us-gdp-statistics
1•gmays•23m ago•0 comments