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.

Digital Sovereignty: What It Is, What It Could Be

https://www.eff.org/deeplinks/2026/09/digital-sovereignty-what-it-what-it-could-be
1•peter_d_sherman•27s ago•0 comments

On Proof and Progress in Mathematics (1994) [pdf]

https://www.math.toronto.edu/mccann/199/thurston.pdf
1•lukeplato•1m ago•0 comments

Start Weekend AI Roasting Your Loved Ones with free-AI-tools-hub.com

1•horitechsolutio•3m ago•0 comments

Wachenröder

https://en.wikipedia.org/wiki/Wachenr%C3%B6der
1•tosh•6m ago•0 comments

Two Words for Truth?

https://languagelog.ldc.upenn.edu/nll/?p=29814
2•jruohonen•8m ago•0 comments

The Falling Man (2021)

https://www.esquire.com/news-politics/a48031/the-falling-man-tom-junod/
1•tosh•8m ago•0 comments

Ask HN: For Enterprise coding agents, what's your company doing to control cost?

1•m0rde•9m ago•0 comments

Faking Synthetic Control Estimates

https://andrewpwheeler.com/2026/09/12/faking-synthetic-control-estimates/
1•apwheele•10m ago•0 comments

Show HN: A C Compiler written with help of Claude

https://github.com/Javier-Barrio/myCC/tree/main
2•int0x80•11m ago•0 comments

The Wealth Inequality Problem, in a Video Game

https://www.youtube.com/watch?v=utLVrwaNH9Q
1•inm•14m ago•0 comments

Swiss trial for 2017 avalanche deaths unsettles hazard researchers

https://www.science.org/content/article/swiss-trial-2017-avalanche-deaths-unsettles-hazard-resear...
1•Brajeshwar•14m ago•0 comments

Show HN: Deviant, a feature-length sci-fi thriller about AI, made with AI

https://deviantmovie.com/
1•johnpolacek•15m ago•0 comments

Conway's Law Is Dead. Or Is It?

https://domenkozar.com/2026/09/12/conways-law-is-dead-or-is-it/
1•domenkozar•16m ago•0 comments

Memories of how you heard about 9/11 may well be wrong

https://theconversation.com/your-memories-of-how-you-heard-about-9-11-may-well-be-wrong-weve-been...
2•GlibMonkeyDeath•18m ago•1 comments

Compressing a Flag to 11 Bits

https://read.vantezzen.io/miniflags
1•bennett_dev•20m ago•0 comments

Agent Scan Skill Inspector

https://labs.snyk.io/experiments/skill-scan/
3•taubek•20m ago•0 comments

Inexpressible States: The History and Usage of Algebraic Data Types

https://www.makonea.com/en-US/blog/inexpressible-states-the-history-and-usage-of-algebraic-data-t...
1•jdw64•20m ago•0 comments

The Ritz-Carlton purge, a $1.3B demand and nine years trapped in Saudi Arabia

https://www.ft.com/content/50f38214-3a0a-4d6f-9838-c93611d21a0c
2•JumpCrisscross•24m ago•0 comments

Who Should Buy Snap Inc?

https://www.s-1.site/s/snap-inc-pivot-to-subscriptions.html
2•anthonybourdain•26m ago•1 comments

Microcode in Intel's 8087 floating-point chip: the scale instruction

https://www.righto.com/2026/09/8087-microcode-reverse-engineering-fscale.html
4•pwg•28m ago•1 comments

I Just Joined Bros

2•trony_tasx•28m ago•0 comments

Show HN: Dry Diving Club – A darkly comic browser game

https://drydiving.club/
2•crapthings•29m ago•0 comments

HBM System Architecture: Thermal, Signal Integrity, and Reliability Limits

https://www.siliconcodesign.com/p/the-system-architecture-of-hbm-how
2•yarapavan•30m ago•0 comments

Show HN:TurboBench: Data Compression Benchmark. The Compression Lie Detector

https://github.com/powturbo/TurboBench
2•powturbo•31m ago•1 comments

Orcrist: A Coding Agent using LLM state machines

https://github.com/simone20a/Orcrist
1•simone20a•32m ago•0 comments

Show HN: MCP that gives Codex/Claude your SEO and AI visibility data

https://bloomiro.com/mcp
4•johnbuildss•33m ago•0 comments

Lessons I learned as a software engineer

https://www.thetrueengineer.com/p/10-lessons-from-the-journey-what
3•adletbalzhanov•35m ago•2 comments

A Misalignment of AI and Cancer Biology

https://twitter.com/mbeisen/status/2098582265190351334
1•harporoeder•35m ago•1 comments

Ask HN: Can we do a karma reset?

5•HNKarmaReset•35m ago•5 comments

Cities like Raleigh finish construction before e.g. San Francisco approves them

https://twitter.com/esoltas/status/2098162675989565925
1•JumpCrisscross•37m ago•0 comments