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.

Show HN:Promptbar – type // in any text box to insert your saved prompts

https://chromewebstore.google.com/detail/promptbar-—-prompt-manage/nijgnlioekanikhnlleeijjhjbjm...
1•madebypointco•2m ago•0 comments

Ask HN: How is AI destruction of books legal?

1•Madmallard•3m ago•0 comments

Show HN: Facefork – A tree interface to AI edit photos for fun

https://facefork.com/
1•reacharavindh•5m ago•0 comments

Optimizing Qwen3.8 27B on one AMD R9700

https://eliovp.com/blog/paiton-qwen38-mxfp4-dflash2-r9700
1•Eliovp•6m ago•0 comments

Why Vanilla RAG When you can do this

https://medium.com/@NikoZero11/your-rag-pipeline-doesnt-need-more-retrieval-it-needs-better-decis...
1•Razeer•8m ago•0 comments

Show HN: An agent-skill to generate preview, AppStore screenshots and campaigns

https://github.com/imshaikot/app-preview-craft-skill
1•imshaikot•9m ago•0 comments

I don't like websites these days

https://ahmedhossamdev.com/writing/i-dont-like-websites-these-days/
3•ahmedhossamdev•9m ago•0 comments

Wanna create a paid fugee crisis? (self-explaining)

2•loopydosuette•9m ago•0 comments

Arata: A fine PRNG based on ARX, with domain separation and min period guarantee

https://github.com/eternal-io/arata
1•eternal-io•9m ago•0 comments

Unexpected Satellite Explosion

https://spaceweather.com/
1•voxleone•10m ago•0 comments

UK mathematician debunks myth around Parthenon's optical illusions

https://www.theguardian.com/science/2026/sep/16/uk-mathematician-debunks-myth-parthenon-optical-i...
1•bookofjoe•12m ago•0 comments

Universal Is Getting Cold Feet on Releasing the Elon Musk Documentary

https://www.hollywoodreporter.com/news/politics-news/elon-musk-movie-gibney-canceled-universal-12...
3•ledoge•12m ago•0 comments

How Greek Colonization Transformed the Western Mediterranean

https://www.thecollector.com/greek-colonization-western-mediterranean/
1•arizen•17m ago•0 comments

Play Bitcoin Bird

https://coinmarketcap.com/?play=bitcoinbird
1•module1973•18m ago•0 comments

FloorPoll – live polls your audience joins in one tap, no app needed

https://floorpoll.app/
1•tshrove•18m ago•0 comments

Revoy Dolly Turns Diesel Semi-Trucks into Hybrid EVs

https://spectrum.ieee.org/revoy-hybrid-diesel-semi-truck
1•rbanffy•18m ago•0 comments

AI models need more data about biology, and OpenAI is paying

https://www.technologyreview.com/2026/09/15/1144129/ai-models-need-more-data-about-biology-and-op...
1•fuzzfactor•18m ago•1 comments

What Fits (Into Few Tokens) Doesn't Overfit

https://arxiv.org/abs/2606.11045
1•rochansinha•22m ago•0 comments

Australia to bar foreign students from bringing partner/child while they study

https://www.channelnewsasia.com/world/australia-bar-foreign-students-bring-partners-children-whil...
2•Markoff•23m ago•0 comments

Show HN: A Rain Pomodoro with Brown Noise, ASMR, and Middle Eastern Music

https://apps.microsoft.com/detail/9n3x639j5lsx?hl=en-US&gl=US
1•ShadowUnknown•24m ago•0 comments

The perfect storm brewing before winter

https://www.seatrade-maritime.com/security/the-perfect-storm-brewing-before-winter
1•consumer451•24m ago•0 comments

Can a Ping Pong Ball Launched at Supersonic Speed Kill You? – MythBusters(2014) [video]

https://www.youtube.com/watch?v=qC-a6ZahtuE
1•num42•25m ago•0 comments

"The Common Enemy" Essay by Carl Sagan (1988)

http://alexpetrov.com/memes/hum/cmn_enemy.html
1•chistev•26m ago•1 comments

Why every software engineer should play Factorio

https://ahmedhossamdev.com/writing/why-every-software-engineer-should-play-factorio/
4•ahmedhossamdev•26m ago•1 comments

Show HN: Trading on-chain with 0 gas: A <1ms DEX router at 0.50% fees

https://rhopool.com/
4•lachlanallen45•30m ago•0 comments

Foundations of Agent Friendly Codebases

https://chrlschn.dev/blog/2026/09/foundations-of-agent-friendly-codebases/
1•CharlieDigital•31m ago•0 comments

AI Fusion Lab

https://fusionlabsimulation.com/
1•jonbaer•32m ago•0 comments

Frasco v. Flo Health 3:21-cv-00757-JD Wiretap liability, Meta Platforms [pdf]

https://www.govinfo.gov/content/pkg/USCOURTS-cand-3_21-cv-00757/pdf/USCOURTS-cand-3_21-cv-00757-9...
2•1vuio0pswjnm7•33m ago•0 comments

Startup's next teammate might be an AI agent

https://techcrunch.com/2026/09/16/your-startups-next-teammate-might-be-an-ai-agent-gusto-insight-...
1•soltanov•33m ago•0 comments

Show HN: Tola – a minimal todo app with Today and Later

https://tola.day/
1•ivcatcher•33m ago•0 comments