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.

I've converted my website to grayscale

https://rz01.org/qmx/
1•exitnode•2m ago•2 comments

Optical Memory Link Could Boost AI in Robotics

https://spectrum.ieee.org/ai-in-robotics
1•jonbaer•2m ago•0 comments

Persistent Money Struggles Linked to Faster Brain Ageing

https://www.ucl.ac.uk/news/2026/jul/persistent-money-struggles-linked-faster-brain-ageing
1•karakoram•9m ago•0 comments

Show HN: Punter.js – single-file JavaScript game engine for teaching programming

https://punterjs.org/
1•john-doherty•10m ago•0 comments

LLM Cliche Highlighter

https://tools.simonwillison.net/llm-cliche-highlighter
2•saikatsg•11m ago•0 comments

America's schools admit screens make students worse off

https://fortune.com/article/schools-abandoning-chromebooks-laptop-programs-as-screen-time-hurts-l...
1•jedberg•14m ago•0 comments

Kitty [terminal emulator] chases the mouse

https://lwn.net/Articles/1080821/#Comments
1•leephillips•14m ago•0 comments

In a Ukrainian bomb shelter, Laura Loomer explains shift on Russia's war

https://apnews.com/article/laura-loomer-trump-ukraine-russia-interview-101852f6deab17e1d8d215fdde...
1•haburka•15m ago•0 comments

Please ship APIs, not AI

https://iamwillwang.com/notes/please-ship-apis-not-ai/
1•wxw•15m ago•0 comments

Illume Labs – Your 24/7 personalized health companion

https://www.illumelabs.ai/
2•parilatawa•16m ago•1 comments

OpenAI: A Bubble Bigger Than Dotcom

https://www.youtube.com/watch?v=zDtvrme-L-0
3•cable2600•17m ago•1 comments

Go server-less for projects that only need to scale from 2-200 users

https://seamside.com/docs/
1•akumpf•18m ago•1 comments

Iran used roaming systems, ad tech to track US troops in Gulf: Report

https://www.turkiyetoday.com/business/iran-used-roaming-systems-ad-tech-to-track-us-troops-in-gul...
4•billybuckwheat•20m ago•0 comments

BSD seq(1) on Linux

1•1vuio0pswjnm7•22m ago•0 comments

What Happened to Tagging? (2019)

https://daily.jstor.org/what-happened-to-tagging/
1•downbad_•22m ago•0 comments

OptMem: Plug-and-play infinite memory for any agent

https://github.com/VictorTaelin/OptMem
1•LightMachine•23m ago•0 comments

The bitter lesson for skills and coding agents

https://twitter.com/jim_dowling/status/2081455720336179313
1•jamesblonde•25m ago•0 comments

Doom running on nothing but regex find-and-replace

https://github.com/4RH1T3CT0R7/doom-regex
1•amichail•26m ago•0 comments

Learning two pointers from scratch after solving 100 LeetCode problems

https://leetcopilot.dev/blog/two-pointers-intuition-for-leetcode-beginners-step-by-step
2•alexwang24•27m ago•0 comments

I Made Open Source Adobe Acrobat – Windows 11

https://github.com/jonahgigi534-wq/PDF-Pilot
1•Jonathan_Gigi•27m ago•1 comments

We need to rethink tech stack

1•vivekk7190•29m ago•1 comments

Angels in Coptic Magic I: Introduction

https://www.coptic-magic.phil.uni-wuerzburg.de/index.php/2026/01/16/angels-in-coptic-magic-i-intr...
2•jruohonen•33m ago•0 comments

Show HN: A QR code that plots where you scanned it from

https://3dqr.sshh.io/
1•sshh12•34m ago•0 comments

Writers set to share millions after $1.5B Anthropic settlement

https://www.irishtimes.com/crime-law/courts/2026/07/26/hundreds-of-irish-writers-set-to-share-mil...
1•afshinmeh•38m ago•1 comments

Stages of Denial

https://nsl.com/papers/denial.html
2•tosh•40m ago•0 comments

Show HN: The source of one own knowledge and it's causes

https://rzwsan.vercel.app/posts/knowledge-origin/
1•rzwsan•40m ago•0 comments

The US is charging an American citizen for wiping his phone at the border

https://www.theverge.com/policy/971097/us-charging-american-citizen-wiping-phone-duress-password
5•arkits•40m ago•1 comments

Views of China and Xi Are Improving Globally

https://www.pewresearch.org/global/2026/07/15/views-of-china-and-xi-are-improving-globally/
2•karakoram•42m ago•0 comments

What Americans Think About the Global AI Race

https://www.pewresearch.org/short-reads/2026/07/23/what-americans-think-about-the-global-ai-race/
1•karakoram•43m ago•0 comments

Ask HN: When is too early to launch?

1•Abh1Works•44m ago•0 comments