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.

UK court confirms existence of government surveillance order against Apple

https://www.computerweekly.com/news/366654729/UK-court-confirms-existence-of-government-surveilla...
1•miohtama•13s ago•0 comments

How to Put a 70B Model on a GPU Diet [video]

https://www.youtube.com/watch?v=T58AjM7IGDg
1•lroe•24s ago•0 comments

SciAm Voyager 1's 'light-day' milestone is only the beginning

https://www.scientificamerican.com/article/voyager-1-reaches-one-light-day-milestone/
1•Stratoscope•26s ago•0 comments

Terminator's chip moment for us was reinforcement learning (RL)

1•delopsu•1m ago•0 comments

(offensive) adoption is the bottleneck

https://alexschapiro.com/hack-yourself/
1•bearsyankees•2m ago•0 comments

Science Isn't a Series of Lucky Accidents

https://worksinprogress.co/issue/accidental-discoveries/
1•karakoram•6m ago•0 comments

Richard Feynman and the Math of Menu Choices

https://www.alumni.caltech.edu/techer/stories/richard-feynman-and-the-math-of-menu-choices/
2•karakoram•6m ago•0 comments

Show HN: Zwitch alternative App Switcher for macOS (Free)

https://zwitch.net/
1•frnk-km•6m ago•0 comments

[Chlorophyll Engine] 10M Trees – 15km² Test [video]

https://www.youtube.com/watch?v=VC_NUxbeA0E
1•sheepscreek•7m ago•0 comments

Show HN: ScreenClip – screenshot a bug, your coding agent opens the PR

https://screenclipai.com/
1•lludo•8m ago•1 comments

Automate Mac tasks with Gemini computer use

https://blog.google/innovation-and-ai/products/gemini-app/computer-use-mac/
1•xnx•8m ago•0 comments

US Army will detonate 10k pounds of lead azide

https://abcnews.com/US/iowa-army-plant-lead-azide-detonation/story?id=138261613
1•isnotchicago•8m ago•0 comments

VHS Vault (95 TB)

https://chirpcdn.com/vhsvault.html
1•o_-_o•9m ago•0 comments

Claude Fable 5.2 solves two open problems in the physics of black holes

https://www.anthropic.com/research/claude-black-hole-physics
2•cybermango•10m ago•0 comments

Genie 4 is now available on the Gemini API

https://blog.google/innovation-and-ai/technology/developers-tools/genie-4-in-gemini-api/
1•acossta•10m ago•0 comments

Some thoughts on security after ten years of qmail 1.0 (2007) [pdf]

https://cr.yp.to/qmail/qmailsec-20071101.pdf
1•madars•12m ago•0 comments

‘AI gravity’ is pulling you toward dependency. Here’s how to push back

https://mitsloan.mit.edu/ideas-made-to-matter/ai-gravity-pulling-you-toward-dependency-heres-how-...
1•zzzeek•13m ago•0 comments

Jev, job by job: what it does, what it doesn't, and when to reach for it

https://webuilddatabases.com/blog/jev-job-by-job/
1•Dan_Reynolds•13m ago•0 comments

High-End Furniture Marketplace AptDeco Taking People's Furniture and Not Paying

https://www.404media.co/high-end-furniture-marketplace-aptdeco-is-taking-peoples-furniture-and-no...
4•beardyw•15m ago•0 comments

Pancreatic cancer halted by virus injection in three patients

https://scienceinhand.com/pancreatic-cancer-halted-by-virus-injection-in-three-patients/
2•cybermango•15m ago•0 comments

Do Google engineers vibe code?

https://www.youtube.com/watch?v=PbsocBPkoUc
1•Betelbuddy•16m ago•0 comments

Evaluating Proactive Agents

https://langfuse.com/blog/2026-11-19-evaluating-proactive-agents
1•annabellschaf•16m ago•1 comments

I Cloned Adobe with AI – Brandon Thomas, ArtCraft

https://www.youtube.com/watch?v=UCL4K36SHp0
1•joeavella•16m ago•0 comments

FAA to Phase Out Floppy Disks from Airport Control Towers

https://www.nytimes.com/2026/11/06/us/faa-floppy-disks-atc-2028.html
1•karakoram•16m ago•2 comments

What's New in Alfred 6

https://www.alfredapp.com/whats-new/
2•qainsights•17m ago•0 comments

Can You Regulate 'Fairness'? The EU's Digital Fairness Act Is Going to Try

https://www.techdirt.com/2026/11/18/can-you-regulate-fairness-the-eus-digital-fairness-act-is-goi...
2•hn_acker•17m ago•0 comments

Breaking Down Data Silos in the Physical World

https://bostondynamics.com/blog/breaking-down-data-silos-in-the-physical-world/
1•gmays•18m ago•0 comments

A KytyPS5 issue is distributing malware to users, claiming to be a GTA6 patch

https://github.com/KytyPS5/KytyPS5/issues/2413
1•CharlieItanium•19m ago•0 comments

Lone Ranger Atom Bomb Ring Spinthariscope (1947-Early 1950s)

https://www.orau.org/health-physics-museum/collection/spinthariscopes/lone-ranger-atom-bomb-ring-...
1•georgecmu•20m ago•0 comments

Show HN: A 145-line 2D rigid-body physics engine in TypeScript and Canvas demo

https://m2-md.github.io/canvas-physics-from-scratch/
1•mkare•21m ago•0 comments