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.

There's Not a Single Flock Camera on the Upper West Side

https://twitter.com/SecretFire79/status/2087277186285773249
1•grandpajoey•2m ago•1 comments

Tailscale – Information about AI for Candidates [pdf]

https://cdn.sanity.io/files/w77i7m8x/production/0de35a24de4d425390546ebd521107d5444985e9.pdf
1•figmert•3m ago•1 comments

DLLM: Minimal, clean coding agent built directly on llama.cpp without overhead

https://github.com/DannyArends/DLLM
1•teleforce•7m ago•0 comments

Is it a coincidence that the Sun and the Moon look of same size from the Earth?

https://astronomy.stackexchange.com/questions/2247/is-it-a-coincidence-that-both-the-sun-and-the-...
1•melenaboija•7m ago•0 comments

Skinny Icons on Chromium

https://issues.chromium.org/issues/541684117
1•juanfatas•7m ago•0 comments

Ask HN: Is AI code verification becoming your main bottleneck?

2•ochidaniel4•7m ago•0 comments

Bill Gates' daughter's startup accused of 'cookie stuffing' scheme

https://nypost.com/2026/08/12/business/bill-gates-daughter-phoebe-accused-of-cookie-stuffing-sche...
4•apparent•8m ago•0 comments

AI Music Startup Suno Bets Anyone Can Be a Rock Star

https://www.bloomberg.com/news/features/2026-08-11/suno-stares-down-universal-and-sony-to-reshape...
2•aanet•14m ago•2 comments

A new way to use Tidewave: from your terminal or editor

https://tidewave.ai/blog/tidewave-connect
1•mcadenhe•15m ago•0 comments

Receipt Parser API – Stop double-counting transactions when parsing receipts

https://ilovesreceipt.com/
1•api_dude_365•15m ago•0 comments

Watch movies TV shows and anime

https://github.com/wadecalvin9/Flux-Releases
1•KIRA404•17m ago•0 comments

PDD: Promotion Driven Development

https://medium.com/@quarterdome/promotion-driven-development-fbc6f48d43e8
2•sanj•17m ago•1 comments

Polymarket let users bet on wildfires. Lawmakers warn that could spur arson.

https://www.washingtonpost.com/nation/2026/08/12/polymarket-let-users-bet-wildfires-lawmakers-war...
3•bookofjoe•18m ago•2 comments

GPT Loves Chinese Gambling

https://awaitinginput.substack.com/p/gpt-loves-gambling-and-bumping-butts
1•bsovran•18m ago•0 comments

Gemma 4B vs. Gemini Flash on Tool Calling

https://neurometric.substack.com/p/gemma-4b-vs-gemini-flash-you-dont
1•robmay•20m ago•0 comments

I stopped caring about programming terms

https://teadriven.com/blog/why-i-stopped-caring-about-terminology/
1•ghassenfaidi•24m ago•0 comments

A BrAIve New World for Credit

https://lesbarclays.substack.com/p/a-braive-new-world-for-credit
1•lesbarclays•25m ago•0 comments

The cost of being too patient

https://www.nber.org/papers/w26677
2•AFF87•26m ago•0 comments

I Built a SaaS Business from Hostels and Coffee Shops

https://blog.pierrehenry.be/blog/how-i-built-a-saas-business-from-hostels-and-coffee-shops/
1•pierres7•26m ago•0 comments

Live stream from my solar-powered bird/weather station [video]

https://www.youtube.com/watch?v=sAC3o6KW2N0
1•arm32•26m ago•0 comments

Bespoke Websites for Emergencies Are an Active Thing

https://orner.net/posts/bespoke-websites-for-emergencies/
3•dogline•29m ago•1 comments

Reddit will require you to login to access old.reddit.com

https://www.reddit.com/r/modnews/comments/1ujtebf/logging_in_to_use_old_reddit/
2•ball_of_lint•31m ago•1 comments

Agents need the internet, and that is the problem

https://paodo-solution.com/posts/agents-need-the-internet
1•alxcls•31m ago•0 comments

Song Covers of All Time (2022)

https://happymag.tv/best-covers-of-all-time/
1•LouisLazaris•32m ago•0 comments

Japanese Self-Driving Startup Plans US Office, Targets $10B IPO

https://www.wsj.com/business/autos/japanese-self-driving-startup-plans-u-s-office-targets-10-bill...
3•aanet•35m ago•1 comments

AI is the next layer of software development

https://mcclowes.com/blog/2026/05/29/ai-is-just-another-layer
3•HunterXHamburge•37m ago•0 comments

Node.js creator liberates Durable Objects from Cloudflare

https://www.theregister.com/devops/2026/08/12/nodejs-creator-liberates-durable-objects-from-cloud...
3•galaxyLogic•37m ago•0 comments

I built a golf career management SIM (like Basketball GM, but golf)

https://www.rainydaygc.com/
1•mdstrobe•39m ago•0 comments

Show HN: Posts grew 6x since ChatGPT, but success rate remained relatively flat

https://www.orangecrumbs.com/stories/show-hn
2•oyster143•39m ago•1 comments

Digital freedom depends on access rights

https://blog.boulos.ca/p/digital-freedom-depends-on-access
2•jjleads•39m ago•0 comments