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.

America's Desert Metropolis Is on the Short List to Lose Water

https://www.nytimes.com/2026/08/23/us/arizona-canals-colorado-river.html
1•mooreds•9m ago•0 comments

A zero is not a measurement

https://readingpub.net/read/home/a-zero-is-not-a-measurement
1•ruusvuu•9m ago•0 comments

Vorssaint – The modular Swiss Army knife for macOS

https://vorssaint.com/
1•tambourine_man•12m ago•0 comments

Mac OS X on Xbox 360

https://github.com/osx360/osx360-drivers
3•PortableCode•17m ago•1 comments

Bringing more agent harnesses and frameworks to Cloudflare, starting with Flue

https://blog.cloudflare.com/agents-platform-flue-sdk/
1•gurjeet•17m ago•0 comments

Former OC actor Ben McKenzie on crusade to take down 'stupid' cryptocurrency

https://www.rnz.co.nz/life/people/celebrity/former-oc-actor-ben-mckenzie-on-crusade-to-take-down-...
5•billybuckwheat•18m ago•1 comments

Load Cells for Silos

https://www.swttech.com/products/load-cells-for-silos/
1•swttech•19m ago•1 comments

What the EU AI Act means for you and your business

https://proton.me/blog/eu-ai-act
4•devonnull•26m ago•0 comments

Battery fires at recycling centres are costing UK £1B a year

https://www.theguardian.com/environment/2026/aug/22/lithium-battery-fires-waste-recycling-centres...
1•neehao•27m ago•0 comments

Neurologist with antivaccine views to lead NIH's child health institute

https://www.science.org/content/article/neurologist-antivaccine-views-lead-nih-s-child-health-ins...
1•sbulaev•29m ago•0 comments

Vorssaint – One menu bar icon doing the job of a dozen Mac apps

https://github.com/vorssaint/vorssaint-utils
1•danboarder•31m ago•0 comments

Sideshow: Give Your Agents a Stage

1•handfuloflight•32m ago•0 comments

Against Curry-Howard Mysticism

https://liamoc.net/forest/loc-000S/index.xml
1•pcfwik•39m ago•0 comments

Pixel Dot – Open-source Android habit tracker built with React Native

https://github.com/shivardev/HabbitDot
1•blazingbane•40m ago•0 comments

Tell me how to hack the system that requires the LINE app for voting

1•GanJin•40m ago•0 comments

Intel.com has 104 TXT records.. more than bind9 tolerates

https://dnsviz.net/d/intel.com/aoudhg/responses/
1•edelbitter•41m ago•1 comments

Show HN: Dsh-dispatch – dispatch tasks to DeepSeek Harness from your phone

https://github.com/alextangson/dsh-dispatch
1•lawrenceTang•42m ago•0 comments

Using thunderquakes to X-ray Earth

https://theconversation.com/using-thunderquakes-to-x-ray-earth-a-new-study-shows-urban-seismology...
2•pash•46m ago•0 comments

Show HN: Olivers Army – Discord for Politics

https://olivers.army
1•brandoniscool•48m ago•1 comments

Don't let activation energy expire

https://herbertlui.net/dont-let-activation-energy-expire/
2•herbertl•49m ago•0 comments

Founder calculators: SAFE terms and an accelerator shortlist and Runway

https://continuum-app.xyz/safe
1•charleswcho•59m ago•1 comments

Migrating a Synology NAS to a UniFi UNAS Pro 8 with Robocopy, SMB Multichannel

https://www.hanselman.com/blog/migrating-a-synology-nas-to-a-unifi-unas-pro-8-with-robocopy-smb-m...
5•soheilpro•1h ago•0 comments

Show HN: Conduit – local-first desktop LLM client, byok

https://github.com/runningpixels/conduit
1•emilioolivares•1h ago•0 comments

YouTube sued over ads in Premium: YouTube claims "promotions" are not "ads" [video]

https://www.youtube.com/watch?v=oxg7AHYeSBk
10•Bender•1h ago•2 comments

Push for Online Gun Sales Meets a Surprising Opponent: Small Gun Dealers

https://www.nytimes.com/2026/08/21/us/politics/online-gun-sales-trump.html
1•bookofjoe•1h ago•1 comments

Tesla discontinues its Solar Roof tiles, not economically viable

https://electrek.co/2026/08/20/tesla-discontinues-solar-roof-panels-only/
3•MilnerRoute•1h ago•0 comments

BanProof – AI that scans TikTok Shop videos for violation points before you post

https://banproof.io/
1•Pratham3690•1h ago•0 comments

World Humanoid Robot Games

https://en.wikipedia.org/wiki/World_Humanoid_Robot_Games
1•RickJWagner•1h ago•0 comments

He Was Wrongly Convicted of Attempted Rape. He's Suing the DNA Analysts

https://www.nytimes.com/2026/08/23/nyregion/new-york-dna-analysts-sued-rape-conviction.html
1•CaliforniaKarl•1h ago•0 comments

Spreadsheet-Defined Function Demo

https://casey.github.io/IronCalc/
1•rodarmor•1h ago•1 comments