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.

'Game of Thrones' George RR Martin speaks out about depression amid book delays

https://www.theguardian.com/books/2026/aug/05/getting-old-is-no-fun-game-of-thrones-author-george...
1•bookofjoe•1m ago•0 comments

FDA makes Lipfendra poster child of CNPV program for first PCSK9 pill

https://www.fiercepharma.com/pharma/fda-makes-lipfendra-poster-child-cnpv-pilot-merck-charts-long...
1•brandonb•2m ago•0 comments

Italy to place all 27 of its major cities on highest heat alert

https://www.theguardian.com/environment/2026/aug/05/italy-heatwave-major-cities-highest-heat-alert
2•ndsipa_pomu•2m ago•0 comments

Email Bulk Sender Requirements (Google/Yahoo /Microsoft) [video]

https://www.youtube.com/watch?v=TRwAO0Td_qA
1•c0nrad•2m ago•0 comments

What's behind the $4B funding cut for California's high-speed rail?

https://www.cbsnews.com/news/california-high-speed-rail-train-procurement-newsom/
1•peter_stokes•2m ago•0 comments

Public Service Decline and the Populist Right: Evidence from England's NHS [pdf]

https://catherinedevries.eu/NHS.pdf
1•pseudalopex•4m ago•0 comments

Five Rust teams adopt LLM rules to protect human code review

https://runtimewire.com/article/rust-teams-adopt-llm-contribution-policy
1•ryanmerket•4m ago•0 comments

Read HN twice a day for the last decade. Here's my list of S-Tier HN links

1•vivzkestrel•4m ago•0 comments

Wordle but small AI mini challanges

https://shorts.bridge-jobs.com/
1•SaazM•4m ago•0 comments

Has the New Cocaine Arrived?

https://www.playboy.com/read/politics/they-say-its-better-than-coke-its-also-more-addictive
1•speckx•5m ago•0 comments

KIDS Act would put Washington in charge of how we can communicate online

https://expression.fire.org/p/the-kids-act-would-put-washington
1•timr•5m ago•0 comments

Show HN: What if one fund held tokenized Gold, tech stocks and digital assets?

https://wealtii.com/funds/wealtii-tech-digital-asset-growth-fund
3•zayd7861•6m ago•0 comments

Show HN: ResizeKit – Browser-only image resizer for developer asset packs

https://resizekit.app
1•mhova•7m ago•0 comments

Google Assistant will disappear from your phone next month

https://www.theverge.com/tech/975516/google-assistant-android-phones-tablets-shutdown
1•Brajeshwar•7m ago•0 comments

Show HN: AgentTerm – open tools to replace the terminal for any coding-agent CLI

https://github.com/albertwujj/agent-term
1•aywu•7m ago•0 comments

Spend More Time Talking to Humans

https://www.honeycomb.io/blog/spend-more-time-talking-to-humans
1•gpi•8m ago•0 comments

The Winners of Trump's A.I. Safety Plan

https://www.nytimes.com/2026/08/05/business/dealbook/winners-trump-ai-policy.html
3•sbulaev•10m ago•0 comments

Moving Forward from Hot Fable Summer

https://alexstamos.com/p/moving-forward-from-hot-fable-summer
1•secalex•10m ago•0 comments

Aristotle quotes on virtue, knowledge, and happiness

https://www.campion.edu.au/blog/top-25-aristotle-quotes-on-virtue-knowledge-and-happiness/
3•teleforce•10m ago•1 comments

Show HN: Vocab Top – AI-powered vocabulary builder that helps you retain words

https://www.vocab.top/
3•LandoLorinse•11m ago•0 comments

I'm Publishing Every Medical Record I Have [video]

https://www.youtube.com/watch?v=krP9EGyLCRE
3•imtany•11m ago•0 comments

Google Is in Talks for a $1.5B-Plus Deal with Mechanize

https://www.businessinsider.com/google-mechanize-deal-talent-tech-ai-coding-2026-8
1•gmays•12m ago•0 comments

Will IVR Still Exists?

https://www.roycehaynes.com/articles/will-ivr-still-exists/
1•roycehaynes•12m ago•0 comments

Review: Job-Less Utopia

https://borretti.me/article/review-job-less-utopia
1•ibobev•12m ago•0 comments

Got a hot date? A secondhand SK Hynix jacket is perfect as bonuses raise cachet

https://www.koreajoongangdaily.com/business/got-a-hot-date-this-secondhand-sk-hynix-jacket-is-per...
1•Bluestein•12m ago•0 comments

The Wild West: Planning for a more multipolar and volatile world

https://www.lynalden.com/june-2026-newsletter/
1•rzk•13m ago•0 comments

Rubin Observatory's first LSST Camera release: 500k galaxies in the COSMOS field

https://rubinobservatory.org/news/rubin-new-window-cosmos-field
2•MarcoDewey•13m ago•0 comments

Intelligence Is Not the Main Bottleneck

https://www.writingruxandrabio.com/p/intelligence-is-not-the-main-bottleneck
1•rruxandra_l•13m ago•0 comments

Purely functional digital circuit simulator (SICP 3.3)

https://entropicthoughts.com/sicp-3-3-pure-digital-circuit-simulator
1•ibobev•13m ago•0 comments

EWW, the Emacs browser you underestimate

https://en.andros.dev/blog/e0e00b4b/eww-the-emacs-browser-you-underestimate/
1•ibobev•13m ago•0 comments