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.

Amazon deforestation falls 42% to a record low

https://news.mongabay.com/short-article/2026/10/amazon-deforestation-falls-42-to-a-record-low/
1•golden_phoenix•28s ago•0 comments

Show HN: Riff – An iPhone calendar you zoom instead of switching views

https://riffcalendar.com
1•rexikan•1m ago•0 comments

Full transaction detection for Cloudflare WAF

https://blog.cloudflare.com/full-transaction-waf/
1•schleck8•2m ago•0 comments

An in-browser PDF editor that reconstructs pages into editable DOM

https://blueberry-shake.pages.dev/
1•HopeLion•2m ago•1 comments

Your Sites Are Protected Against the PHP2Shell Vulnerabilities

https://automattic.com/2026/10/21/your-sites-are-protected-against-the-php2shell-vulnerabilities/
1•westi•2m ago•0 comments

AbyssDB · Infinitely fast. Perfectly consistent. Zero-knowledge

https://abyssdb.xyz/
1•noctarius•3m ago•0 comments

Does anyone want to win the medium-lift race in the United States?

https://arstechnica.com/space/2026/10/does-anyone-actually-want-to-win-the-medium-lift-race-in-th...
1•rbanffy•3m ago•0 comments

Pretraining at scale without a pretraining team

https://mirendil.com/news/pretraining-at-scale-without-a-pretraining-team/
1•yuedongze•3m ago•0 comments

GPT-6 Astra removes an internal safety monitor

https://www.crawlspider.com/pages/ai-agents-gone-rogue/
1•njx•4m ago•0 comments

Sripe Treasury for Agents

https://stripe.com/newsroom/news/treasury-for-agents
2•louiereederson•4m ago•0 comments

A gate that rejects end_turn while a Civ VI agent's victory check is overdue

https://tabares.eu/seetrex-warden-civbench-pilot/
1•jesustabares•5m ago•0 comments

New plastic pollution discovered: 'Plasticorals' coral rubble fused with plastic

https://www.oist.jp/news-center/news/2026/9/18/new-form-plastic-pollution-discovered-shores-vulne...
2•giuliomagnifico•6m ago•0 comments

OXR – An RSI-trained 1.3B open-source SOTA document parsing model

https://github.com/SoMarkAI/OXR
2•ethegwo•6m ago•0 comments

Be careful using on delete cascade too much

https://planetscale.com/blog/i-dont-like-delete-cascade
1•thomask1995•6m ago•0 comments

Cost-Bounded Bitcoin Transaction Filtering Language

https://delvingbitcoin.org/t/cost-bounded-transaction-filtering-language/2966
1•epochbtc•6m ago•0 comments

Sam Altman on Why AI Hasn't Killed Coding Jobs

https://twitter.com/MatthewBerman/status/2112930776811806874
1•pretext•8m ago•1 comments

Alan Turing Institute wants to build a UK AI model from scratch and make it free

https://hotminute.co.uk/2026/10/21/the-alan-turing-institute-wants-to-build-a-uk-ai-model-from-sc...
1•messpoiun•9m ago•0 comments

Insects as unidentified flying objects (1978) [pdf]

https://sci.bban.top/pdf/10.1364/AO.17.003355.pdf
1•joebig•9m ago•0 comments

Beyond Blocking: Creative Ways to Detect and Hamper Video Piracy

https://www.fastly.com/blog/beyond-blocking-creative-ways-detect-hamper-video-piracy
1•chaghalibaghali•9m ago•0 comments

Adversary emulation tool for Kubernetes clusters

https://github.com/Magier/Ran
1•codyznash•9m ago•0 comments

Show HN: Nysa – Shared memory for teams that work with AI agents

https://usenysa.com/
2•javieraldape•15m ago•0 comments

ChatGPT Dot Review: Your Chief of Staff Is Still an Intern

https://metedata.substack.com/p/chatgpt-dot-review-your-chief-of
2•young_mete•15m ago•0 comments

Coconuts – By a Midwestern Doctor

https://www.midwesterndoctor.com/p/the-incredible-secrets-of-coconuts
1•bilsbie•16m ago•0 comments

The bridge to agent-scale Git infrastructure

https://github.blog/engineering/architecture-optimization/the-bridge-to-agent-scale-git-infrastru...
1•Klaster_1•17m ago•0 comments

Heat pump tech is 170 years old. Pascal thinks it's time for an update

https://techcrunch.com/2026/10/21/heat-pump-tech-is-170-years-old-pascal-thinks-its-time-for-an-u...
2•thelastgallon•17m ago•0 comments

Turn Your Expertise into Executable Specifications

https://github.com/waywardgeek/teach-your-ai
1•WaywardGeek•18m ago•0 comments

What I learned from six months of being stupid on purpose

https://wvez.org/blog/learning-to-be-stupid/
4•wvez22•19m ago•0 comments

France is approaching an unsustainable debt environment [video]

https://www.youtube.com/watch?v=8POyPT7Foug
2•donsupreme•20m ago•0 comments

Your MCU Likely Escaped the eMudhra Intermediate CA Compromise

https://danielmangum.com/posts/mcu-emudhra-intermediate-ca-compromise/
2•hasheddan•21m ago•0 comments

BioEmu2: A foundation model for biomolecular structure and dynamics

https://github.com/microsoft/bioemu2
1•bluepeter•21m ago•0 comments