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: AI agent for all your support issues

https://github.com/seaticket-ai
1•Daniel-Pan•2m ago•0 comments

The differential operator d/dx binds variables (2012)

https://jdh.hamkins.org/the-differential-operator-ddx-binds-variables/
2•aragonite•4m ago•0 comments

Unpaid telecom bill caused Bay Area transit card outage

https://www.sfchronicle.com/sf/article/clipper-outage-unpaid-bill-22290490.php
1•anigbrowl•4m ago•0 comments

AI-noleak – Local secret proxy for AI CLIs

https://github.com/ahmedxuhri/ai-noleak
1•ahmedxuhri•5m ago•0 comments

Matthew Effect

https://en.wikipedia.org/wiki/Matthew_effect
1•the-mitr•7m ago•0 comments

We Think the SpaceX IPO Is Overvalued

https://www.morningstar.com/stocks/why-we-think-spacex-ipo-is-overvalued?content_id=20768396545
10•0xedb•11m ago•1 comments

New AI espionage powers trigger Putin camera scare

https://www.ft.com/content/6f4d806c-eb22-4c32-8352-b82692d30e9f
1•imichael•15m ago•0 comments

Notion Names First Board of Directors in Key Step Toward IPO

https://www.upstartsmedia.com/p/notion-names-first-board-of-directors
1•doppp•17m ago•0 comments

How many times a day do you think about Alexander the Great?

https://www.economist.com/culture/2026/06/04/how-many-times-a-day-do-you-think-about-alexander-th...
2•petethomas•19m ago•0 comments

How to Learn New Technologies: Take Them for a Drive

https://www.ctofieldnotes.com/p/how-to-learn-new-technologies-take
1•jjude•19m ago•0 comments

Starfish by Peter Watts (1999)

https://www.rifters.com/real/STARFISH.htm#prelude
1•zetalyrae•22m ago•0 comments

AI Model Predicts 10-Year Stroke Risk Based on Routine Cardiology Test

https://www.massgeneralbrigham.org/en/about/newsroom/press-releases/ai-model-predicts-10-year-str...
1•brandonb•24m ago•0 comments

Pentagon restores Alibaba, Baidu and BYD to Chinese military groups blacklist

https://www.ft.com/content/0689d87b-8ad3-4b7c-87e3-e06f07891a17
1•petethomas•25m ago•0 comments

$100k H-1B visa fee blocked by judge

https://www.ft.com/content/2ab284d9-eb38-4b42-b01a-2b375a08c1b0
1•petethomas•26m ago•1 comments

Show HN: Z3r0 – Multi-agent red team collaboration platform

https://github.com/yv1ing/Z3r0
1•yv1ing•29m ago•0 comments

OpenAI Preps Overhaul of ChatGPT

https://arstechnica.com/ai/2026/06/chat-is-dead-openai-preps-overhaul-of-chatgpt/
2•jonbaer•31m ago•0 comments

How to have Claude Code run 28× longer before auto-compaction

https://github.com/wiztek-llc/context-ledger/tree/main
1•newtechwiz•37m ago•0 comments

IBM Has a $10B Plan to Build the Ultimate Quantum Computer

https://www.barrons.com/articles/ibm-stock-quantum-computing-aafbb1eb?st=vEn99N&mod=1440&user_id=...
2•gmays•37m ago•0 comments

Kelsey Hightower: Kubernetes and retiring at the top [video]

https://www.youtube.com/watch?v=UlXpOGIpITM
7•juanpabloaj•40m ago•0 comments

Inference: Turning Electricity into Intelligence – Stanford CS336 – Dan Fu [video]

https://www.youtube.com/watch?v=9EEm4iMAF5s
3•matt_d•41m ago•0 comments

Attackers had month-long head start on patched Check Point VPN zero-day

https://www.theregister.com/cyber-crime/2026/06/08/attackers-had-month-long-head-start-on-patched...
2•sbulaev•43m ago•0 comments

Declining Birth Rates Globally

https://flowingdata.com/2026/05/25/declining-birth-rates-globally/
3•gmays•55m ago•0 comments

Berkshirehathaway.com – The Perfect Minimalist Website

https://berkshirehathaway.com
8•SpyCoder77•1h ago•0 comments

Track Political Stories Across the Web

https://plotline.news
2•yshunnar•1h ago•0 comments

WWDC 2026 Platforms State of the Union [video]

https://developer.apple.com/videos/play/wwdc2026/102/
2•ksec•1h ago•0 comments

Show HN: DaysLeft – a bio-age clock that shows a range, not a death date

https://daysleft.io
1•neo-genesis•1h ago•0 comments

Waymo bought Apple's self-driving car proving ground for $220M

https://techcrunch.com/2026/06/08/waymo-bought-apples-self-driving-car-proving-ground-for-220m/
2•sbulaev•1h ago•0 comments

Deciding on secession: how familiar and unknown futures shape loss aversion

https://www.frontiersin.org/journals/political-science/articles/10.3389/fpos.2026.1805138/full
1•PaulHoule•1h ago•0 comments

Screenlet lets you record and export product demo videos from the browser

https://chromewebstore.google.com/detail/screenlet/cdefecgpidbfmcifjecnbhldndpflhod
2•sakhtar0092•1h ago•0 comments

Build a ZeroCost Web Automation Pipeline with OpenRouter, OpenClaw, and MediaUse

https://pub.towardsai.net/build-a-zero-cost-web-automation-pipeline-with-openrouter-openclaw-and-...
2•yooibox•1h ago•0 comments