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: On99 – a no-signup Hong Kong Mark Six checker and stats explorer

https://on99.life/en/lottery
1•alex_foolsmart•57s ago•0 comments

Godot bans "vibe-coded" contributions

https://theguptalog.blogspot.com/2026/07/godot-bans-ai-generated-code.html
2•guptalog•3m ago•0 comments

Show HN: Much – Local-first AI workspace with in-browser Python (WASM) sandbox

1•srinivasthalada•4m ago•0 comments

The bottleneck might be the air in the room

https://blog.mikebowler.ca/2026/07/03/co2-and-decision-making/
1•gslin•4m ago•0 comments

Borrowed Confidence

https://zhavaedhaemaed.substack.com/p/borrowed-confidence
1•vismit2000•8m ago•0 comments

The feature in OxCaml that more languages should steal

https://theconsensus.dev/p/2026/06/27/the-feature-in-oxcaml-more-languages-should-steal.html
1•tosh•11m ago•0 comments

Now at $50M: Ro Khanna "Why I Support a Billionaire Wealth Tax"

https://rokhannausa.substack.com/p/why-i-support-a-billionaire-wealth
1•g42gregory•15m ago•0 comments

OpenClaw just launched an official app for iPhone

https://9to5mac.com/2026/06/29/openclaw-just-launched-an-official-app-for-iphone-details-here/
1•TMWNN•16m ago•0 comments

I Helped Fact-Check the 1619 Project. The Times Ignored Me. (2020)

https://www.politico.com/news/magazine/2020/03/06/1619-project-new-york-times-mistake-122248
1•Tomte•16m ago•0 comments

Help Us Save MeshCore

https://blog.meshcore.io/2026/07/04/help-us-save-meshcore
1•ilreb•18m ago•0 comments

Berikut cara perubahan tiket AGODA

https://drive.google.com/file/d/1jtjTxNKMww-bAiMbr1SqRwrP7Kwn5wk8/view?usp=drivesdk
1•akupadamu•20m ago•0 comments

Bloomberg Terminal Is Ugly and Clunky–Everyone Still Uses It

https://oztalking.com/en/issues/bloomberg-terminal-lock-in
2•haebom•29m ago•1 comments

Alibaba bans Claude Code as a security risk

https://www.scmp.com/tech/big-tech/article/3359375/alibaba-bans-staff-using-claude-code-over-anth...
2•5701652400•34m ago•0 comments

Scientists say they have built a cell from scratch for the first time

https://www.cnn.com/2026/07/01/science/synthetic-cell-research
1•giuliomagnifico•34m ago•0 comments

What Happens When Your Site Goes Down?

https://urlwatch.io/
2•mssblogs•36m ago•0 comments

How AI models would vote in Sweden

https://www.nordan.ai/research/which-swedish-party-do-llms-vote-for
2•urvader•37m ago•1 comments

California Bans 'Sell by' Labels, Hoping to Cut Food Waste

https://www.nytimes.com/2026/07/02/us/california-food-labels-sell-by.html
1•thunderbong•38m ago•1 comments

Movies I've watched. (623 recorded and counting)

https://artconnects.club/u/bora/movies
2•kaizenb•40m ago•3 comments

EOL DR / End-of-Life Disaster Response

https://github.com/potatoqualitee/eol-dr
1•chris_wot•50m ago•0 comments

Heat wave exposes workers to injury and death

https://www.wsws.org/en/articles/2026/07/03/yash-j03.html
1•t-3•52m ago•1 comments

David Beazley – Programming Courses

https://www.dabeaz.com/courses.html
30•gregsadetsky•54m ago•4 comments

Show HN: An Omegle for Day Trading

https://strangertrade.fly.dev/
1•avneh•54m ago•0 comments

Show HN: FinMav – Screen 3,000+ stocks by describing what you want in English

https://www.finmav.ai
1•amanuelse•56m ago•0 comments

2026 Unslop AI-Written Fiction Contest Results (judged by Gwern Branwen)

https://www.hyperstitionai.com/unslop-results
2•networked•59m ago•0 comments

Magit 4.6 Released

https://emacsair.me/2026/07/01/magit-4.6/
1•signa11•1h ago•0 comments

Varela: Neuromancer-inspired 3D self-mutating coding harness

https://github.com/ajensenwaud/varela/
1•hestefisk•1h ago•2 comments

This is complete software. Can you say that about yours?

https://nonogra.ph/this-is-complete-software-can-you-say-that-about-yours-07-04-2026
5•arkhiver•1h ago•1 comments

Show HN: RightIdea – Validate app ideas with real market data before you build

https://rightidea.app
1•DajiLabs•1h ago•0 comments

A Sort of Buzzing Inside My Head

https://www.nybooks.com/online/2023/06/25/a-sort-of-buzzing-inside-my-head/
1•1vuio0pswjnm7•1h ago•2 comments

AI puts B Corps' values to the test

https://www.fastcompany.com/91568793/ai-puts-b-corps-values-to-the-test
1•1vuio0pswjnm7•1h ago•1 comments