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.

How Tippi Hedren made Vietnamese refugees into nail salon magnates

https://www.bbc.com/news/magazine-32544343
1•thunderbong•1m ago•0 comments

Tesla Driver Tries 'I Wasn't Driving' Excuse to Get Out of Speeding Ticket

https://gizmodo.com/tesla-driver-tries-the-old-i-wasnt-driving-excuse-to-get-out-of-speeding-tick...
1•ripe•2m ago•1 comments

Agentic Constellations: Cartography of the Hidden

https://zkm.de/en/2026/10/agentic-constellations-cartography-of-the-hidden
1•bryanrasmussen•4m ago•0 comments

Google doesn't need the LLM crown

https://www.semafor.com/article/08/07/2026/google-doesnt-need-the-llm-crown
1•thm•5m ago•0 comments

Windows 11's Weather app uses ~1GB RAM

https://www.omgubuntu.co.uk/2026/08/linux-vs-windows-weather-app-ram
2•prymitive•6m ago•0 comments

Transmission has been forked as "ReTransmission"

https://github.com/transmission/transmission/discussions/9031
2•jonatanholmgren•11m ago•0 comments

Show HN: Helicopter Charter and Rentals

https://helicopter.rentals/
1•mpel•11m ago•0 comments

As AI guzzles water and energy, we are facing a choice: datacentres or homes?

https://www.theguardian.com/commentisfree/2026/aug/09/slough-famous-the-office-datacentres-locals...
2•tomwphillips•12m ago•1 comments

Apple lied under oath to a federal court. The decision to lie came from Tim Cook

https://www.nytimes.com/2025/05/09/technology/apple-app-store-antitrust.html
5•Carell•14m ago•0 comments

Visor – a QR code that's also a live pay-per-call API

https://acp-x402-scriptmasterlabs.onrender.com/vc
1•scriptmaster•18m ago•0 comments

What My Tattoo Artist Taught Me About Life After 50

https://restlessurban.com/feature/what-my-tattoo-artist-taught-me/
2•moonlighter•18m ago•0 comments

Rabies in Cape fur seals highlights an unprecedented shift in rabies ecology

https://www.woah.org/en/rabies-detected-in-cape-fur-seals-highlights-an-unprecedented-shift-in-ra...
2•bushwart•18m ago•0 comments

Running models on RISC-V with IREE

https://iree.dev/community/blog/2026-07-23-running-models-on-risc-v-with-iree/
1•simonpure•21m ago•0 comments

A Critical Approach of ChatGPT's Impact on Everyday Life

https://link.springer.com/chapter/10.1007/978-3-032-31732-2_9
1•geox•27m ago•0 comments

Optimal NYC Neighborhood Locator

https://www.jean.land/nyc-apts
2•imustachyou•27m ago•0 comments

FlowG: Turning Your Logs into Metrics

https://flowg.cloud/blog/logs-into-metrics
1•linkdd•28m ago•0 comments

Show HN: Play Tetris in the terminal (solo and pvp)

https://github.com/backnotprop/tuitetris
2•ramoz•29m ago•0 comments

New x86 CPUID Entry For "EVOLUTIONARY"

https://sandpile.org/x86/cpuid.htm#leaf_0000_0000h
1•ruik•29m ago•0 comments

Hypotheses

https://hypotheses.org/
2•jruohonen•30m ago•0 comments

Interviews with key Python developers from the first 25 years

https://gvanrossum.github.io/interviews/index.html
2•tosh•35m ago•0 comments

Devs to Anthropic, OpenAI, Cursor, and friends Make security and privacy default

https://www.theregister.com/ai-and-ml/2026/08/08/devs-to-anthropic-openai-cursor-and-friends-make...
1•Bender•38m ago•0 comments

Show HN: Rollcall – Simulated Film Development on iPhone with Shared Rolls

https://rollcall.nicksavarese.com/
1•nickooo•39m ago•0 comments

Show HN: AURcade – A tiny self-hosted Git service using cgit and SSH

https://github.com/skorotkiewicz/aurcade
1•modinfo•39m ago•0 comments

Keeping Master Green at Scale

https://dl.acm.org/doi/10.1145/3302424.3303970
3•handfuloflight•42m ago•0 comments

Do the scoring rules decide the winner? 211,080 predictions re-scored five ways

https://beteamapp.com/research/prediction-league-scoring-systems/
1•beteam555•44m ago•0 comments

Pokemon Red/Blue/Yellow native recompilation with mods

https://github.com/bryanthaboi/gen1recomp
1•satvikpendem•47m ago•1 comments

Flock CEO Tailed by PI to Ensure No Crimes or Cheating on Wife

https://ipvm.com/reports/priv-invest-flock-ceo
3•jhonovich•49m ago•0 comments

AI Is on Its Last Legs [video]

https://www.youtube.com/watch?v=zdsoe_OsnHw
2•Bender•49m ago•0 comments

Hims and Hers sent user health data to social media giants bombshell FTC lawsuit

https://nypost.com/2026/07/29/business/hims-hers-sent-users-health-data-to-social-media-giants-de...
4•randycupertino•51m ago•1 comments

Barry's Economics: The Science of the Immigration Grift [video]

https://www.youtube.com/watch?v=_OWqzhwsWXM
1•kklisura•51m ago•0 comments