frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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.

Passive heart-rate monitoring during smartphone use in everyday life

https://www.nature.com/articles/s41586-026-10507-6
1•marojejian•1m ago•0 comments

DNS Is for People – Not for IT Infrastructure

https://louwrentius.com/dns-is-for-people-not-for-it-infrastructure.html
1•louwrentius•2m ago•0 comments

Apple Bringing App Store Age Verification to Texas as SB 2420 Takes Effect

https://www.macrumors.com/2026/06/03/apple-app-store-texas-sb-2420/
2•dabinat•5m ago•0 comments

Reading MAI's efficiency gain. How to pick architectures like serious people

https://idlemachines.co.uk/essays/efficiency-gain
1•smaddrellmander•10m ago•0 comments

Broadcom Slides After AI Chip Outlook Disappoints Investors

https://www.bloomberg.com/news/articles/2026-06-03/broadcom-outlook-disappoints-investors-seeking...
1•lesbarclays•13m ago•0 comments

The Ü Programming Language

https://github.com/Panzerschrek/U-00DC-Sprache/
3•deterministic•15m ago•0 comments

Last.fm's robots.txt include's Asimov's three laws of robotics as URIs

https://www.last.fm/robots.txt
3•cdrnsf•17m ago•0 comments

NBA probe of Steve Ballmer at forefront after Aspiration fraud sentencing

https://www.latimes.com/sports/story/2026-06-02/nba-investigation-steve-ballmer-clippers-kawhi-le...
2•1vuio0pswjnm7•17m ago•0 comments

Liable Humans for AI Deployments

https://liablehuman.com/
1•jbboehr•17m ago•0 comments

OpenAI Agent Builder Is Being Deprecated

https://developers.openai.com/api/docs/deprecations
1•ILOVEZOA•18m ago•0 comments

Inside The British Lab Hunting for Dangers Lurking in A.I

https://www.nytimes.com/2026/05/24/technology/uk-ai-safety-institute.html
1•bookofjoe•19m ago•1 comments

Bitcoin's high-conviction holders turning into sellers as price hits new lows

https://www.cnbc.com/2026/06/03/bitcoins-high-conviction-holders-are-selling-as-price-hits-new-lo...
2•1vuio0pswjnm7•19m ago•0 comments

Polymarket cuts ties with Santos as regulators probe trades on Kalshi

https://apnews.com/article/george-santos-polymarket-kalshi-prediction-market-dcc34f4d927d074fe4e1...
1•1vuio0pswjnm7•21m ago•0 comments

Good Teachers Don't Cheat

https://jasonkena.github.io/blog/posts/good_teachers_dont_cheat/
1•RevoGen•22m ago•0 comments

Can I get feedback on my llms.txt file?

https://fyikamran.com/llms.txt
1•kamran210•23m ago•2 comments

A New California Proposal Could Effectively Ban All Aftermarket Tires

https://www.caranddriver.com/news/a71475295/california-could-ban-aftermarket-tires/
1•SilverElfin•23m ago•0 comments

Europe Enters the 'Era of Deportations

https://english.elpais.com/international/2026-06-03/europe-enters-the-era-of-deportations.html
1•rawgabbit•24m ago•0 comments

We have now entered the age of Life-as-a-Service

https://bwanaerp.medium.com/how-did-everything-become-a-subscription-3101951d4769
1•instarlaxy•26m ago•0 comments

1971

https://wtfhappenedin1971.com/
1•matteohorvath•29m ago•0 comments

A minimal linear algebra library in pure Go

https://github.com/igomez10/linearalgebra
1•igomeza•34m ago•0 comments

AI Dark Output: The Visible Cost of Invisible Output

https://newsletter.semianalysis.com/p/ai-dark-output-the-visible-cost-of
1•arthurjj•37m ago•0 comments

Llms.txt is not a docs url dump

https://docsalot.dev/blog/llms-txt-for-saas-docs-what-to-include-and-what-to-skip
2•fazkan•37m ago•3 comments

"They're made out of weights"

https://maxleiter.com/blog/weights
3•MaxLeiter•38m ago•0 comments

Americans Have Grown Dramatically Anti-Data Center

https://gizmodo.com/americans-are-starting-to-really-hate-data-centers-and-its-making-the-tech-in...
3•WarOnPrivacy•42m ago•3 comments

HISE – Toolkit for building VST plugins

https://hise.dev
1•hyperific•46m ago•0 comments

Patreon Refuses to Remove YouTuber's Viral Lego Investigation

https://kotaku.com/lego-star-wars-reckless-ben-youtube-bricks-minifigs-patreon-mormon-mafia-20007...
9•healsdata•57m ago•1 comments

Body, Identity, and Lifetime in SwiftUI

https://jbakerlent.substack.com/p/body-identity-and-lifetime-in-swiftui
1•jbakerlent•1h ago•0 comments

Consensus report on the measurement of the Hubble constant at ∼1% precision

https://www.aanda.org/component/article?access=doi&doi=10.1051/0004-6361/202557993
1•bookofjoe•1h ago•0 comments

Open Source Voice Mode

https://twitter.com/harrycblum/status/2062308968228147254
1•bazlan•1h ago•0 comments

Stigmergy for capability selection in LLM agent loops (skills, tools, MCP)

https://sebastianhanke.substack.com/p/stigmergy-for-capability-selection
1•pssah4•1h ago•0 comments