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.

True Facts: The Ways Cephalopods Make Bebes [video]

https://www.youtube.com/watch?v=1UAPjmFD6Go
1•gregsadetsky•41s ago•0 comments

The sick genius of Nathan Fielder

https://spectator.com/article/you-can-see-everything-is-a-masterpiece-of-fakery/
1•landonxi•1m ago•1 comments

Show HN: Firefox extension to upload text to rentry quickly

https://addons.mozilla.org/en-US/firefox/addon/rear-entry/
1•madprops•3m ago•0 comments

Closed AI models dominate the price-performance frontier

https://village.dev/blog/closed-ai-models-now-dominate-the-price-performance-frontier/
1•kevin_hu•5m ago•0 comments

Do not ask "Is A a B?": Inheritance and the Is-A Trap

https://denkstein.github.io/2026/11/05/do-not-ask-is-a-a-b/
1•thunderbong•5m ago•0 comments

Qualcomm latest Snapdragon chips are compatible with Android Linux Terminal app

https://www.androidauthority.com/snapdragon-android-linux-terminal-3732212/
1•0in•6m ago•0 comments

Automated "Inverse" Design of Grating Couplers for Co-Packaged Optics

https://engineering.flexcompute.com/articles/inverse-design-grating-couplers/
1•twhughes•7m ago•0 comments

Ask HN: What are forgotten topics in computing that deserve a new revisit?

2•draxen•14m ago•0 comments

The Computer That Runs the World [video]

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

Castration extends life span in mice

https://www.science.org/content/article/castration-extends-life-span-surprising-way-mouse-study-s...
2•gmays•16m ago•0 comments

Native Shell is a native UI framework built in Rust

https://github.com/longbridge/nsh
1•grejioh•19m ago•0 comments

Experiments that could win the Memory Decoding Challenge

https://aspirationalneuroscience.org/experiments/
1•arielzj•23m ago•1 comments

Tesla and SpaceX lose over $420B in combined market cap in the two days

https://www.cnbc.com/2026/11/05/tesla-spacex-stocks-fall-after-2026-midterms.html
3•Pepitobombito•24m ago•0 comments

Science does not frighten my faith

https://asheradeniyi.com/2026/05/06/science-does-not-frighten-my-faith/
1•theagsi•27m ago•0 comments

Earliest evidence of cannabis use found in ancient Siberian tomb

https://www.cnn.com/2026/11/05/science/ancient-cannabis-siberia-scli-intl
2•mooreds•28m ago•0 comments

Drone-Based Inventory Management for Nurseries

https://www.plnt.net/
2•pcomstock•28m ago•1 comments

Changes to the SmartThings Integration for Home Assistant

https://community.smartthings.com/t/changes-to-the-smartthings-integration-for-home-assistant-wha...
3•haimgel•29m ago•1 comments

Ask HN: How do you find out when someone links to your blog?

2•velcrovan•30m ago•1 comments

Newsom Moves to Empty California's Death Row by Commuting 548 Sentences

https://www.kqed.org/news/12108596/newsom-moves-to-empty-californias-death-row-by-commuting-548-s...
1•geox•31m ago•0 comments

Why You Should Care About The Political Project of Twisted

https://blog.glyph.im/2026/11/the-project-of-twisted.html
1•lumpa•33m ago•0 comments

Somebody made an AI clone of Mark Brown's indie game [video]

https://www.youtube.com/watch?v=8LMau1qXPYE
3•agnishom•36m ago•1 comments

The Dangerous Illusion of the "Two-Week AI Expert"

https://medcitynews.com/2026/11/the-dangerous-illusion-of-the-two-week-ai-expert-a-call-to-action...
1•sshah03•41m ago•0 comments

Robodinest – Robotics Supply Chain Visualize

https://robodienst.com/supply-chain/bd-atlas
1•iamanatom•41m ago•0 comments

Everything you need to know about the cybersecurity apocalypse

https://kerkour.com/cybersecurity-apocalypse
1•worik•45m ago•0 comments

Problems to Avoid When Building an Agentic Landing Page Translation System

https://www.kapwing.com/blog/ghost/#/editor/post/6aed27d52c0f98c7c385563a
1•jenthoven•55m ago•0 comments

NASA telescope is predicted to come crashing down after failed rescue mission

https://apnews.com/article/swift-observatory-nasa-telescope-e890935df7f468048594286566a96357
2•gmays•58m ago•1 comments

Switch to Safari

https://mjtsai.com/blog/2026/11/05/switch-to-safari/
2•gmays•1h ago•1 comments

Three way Git merging with meld

https://lukas.zapletalovi.com/posts/2012/three-way-git-merging-with-meld/
1•zahrevsky•1h ago•0 comments

Introduction to Mechanics for Engineers

http://ruina.tam.cornell.edu/Book/
2•pillars•1h ago•0 comments

Moving a Go CMS to encoding/JSON/v2

https://hatamoto.dev/post/moving-hatamoto-to-encoding-json-v2
1•zenincognito•1h ago•0 comments