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.

Show HN: Stickblade Arena – I made two LLMs sword-fight to benchmark them

https://stickblade-arena.vercel.app
1•pioneer37•3m ago•0 comments

FDA Approves a New Pill to Slash Cholesterol Levels

https://www.nytimes.com/2026/07/16/science/the-fda-approves-a-new-pill-to-slash-cholesterol-level...
1•gmays•3m ago•0 comments

Apple raises prices for Apple Music and Apple One subscriptions

https://9to5mac.com/2026/07/17/apple-raises-prices-for-apple-music-and-apple-one-subscriptions/
1•elffjs•8m ago•0 comments

BYD aims to overtake Toyota in five years without relying on the US market

https://carnewschina.com/2026/07/15/byd-aims-to-overtake-toyota-in-five-years-without-relying-on-...
1•awad•13m ago•0 comments

What Is China's Moonshot AI and Why Is It Roiling Markets?

https://www.bloomberg.com/news/articles/2026-07-17/what-is-moonshot-ai-why-china-s-new-model-is-r...
1•technewssss•13m ago•0 comments

Randomverse – A randomized, algorithm-free social network

https://randomverse-social.vercel.app
1•MohammedBokir•13m ago•0 comments

Show HN: Run Hermes Agent with Kimi 3 in a sandbox

1•oryx1729•16m ago•1 comments

Why the People Who Could Fix It Are the First to Leave

https://www.hackingleadership.com/p/why-the-people-who-could-fix-it-are-the-first-to-leave
3•backlit4034•18m ago•0 comments

Portents of Doom

https://blog.dshr.org/2026/07/portents-of-doom.html
1•FabHK•19m ago•0 comments

WTH is up with Network School?

https://sextechandmergers.blogspot.com/2026/07/wth-is-up-with-network-school.html
1•jerng•19m ago•1 comments

Update: Mochizuki's ABC Conjecture proof is unformalizable

https://twitter.com/FumiharuKato/status/2078017230537892207
1•amichail•20m ago•1 comments

Kimi K3 may have distilled an unreleased Anthropic model

https://twitter.com/bourneliu66/status/2078150582054133991
3•seviu•22m ago•1 comments

Tell HN: Not everyone has internet as fast as yours

2•jedberg•23m ago•2 comments

Show HN: World map of 1418 modern robotics startups

https://roboticsregistry.net/map?access=3f6d290ae651f8e6e8263077fb24568aa95cbcac84dcbdff&lat=18.7...
1•make_it_sure•23m ago•0 comments

Better Call Sol the Workhorse

https://thezvi.wordpress.com/2026/07/13/better-call-sol-the-workhorse/
2•gmays•26m ago•0 comments

The instant database scratchpad: xata scratch

https://xata.io/blog/the-instant-database-scratchpad-xata-scratch
3•tudorg•26m ago•0 comments

xAI can't deny Grok makes CSAM anymore. So it's suing users

https://arstechnica.com/tech-policy/2026/07/xai-cant-deny-grok-makes-csam-anymore-so-its-suing-us...
3•pavel_lishin•27m ago•0 comments

JustOverlap – Scheduling with multiple guests and team availability

https://justoverlap.com/
2•bitvaulty•27m ago•0 comments

The housing theory of everything (2021)

https://worksinprogress.co/issue/the-housing-theory-of-everything/
1•mooreds•30m ago•0 comments

Help a Psychotherapist Brainstorm?

1•polymath88•30m ago•0 comments

China's data annotation industry shows how jobs evolve with tech advancement

https://www.globaltimes.cn/page/202606/1363363.shtml
1•pretext•30m ago•0 comments

America had a love affair with 'fixer-upper' homes. That may be over

https://www.cnn.com/2026/07/17/business/america-fixer-upper-homes
1•mooreds•30m ago•0 comments

ICE Flight Monitor Interactive Dashboard

https://www.humanrightsfirst.org/ice-flight-monitor-interactive-dashboard
2•mooreds•30m ago•0 comments

Homebrew and How the Apple Came to Be – Stephen Wozniak (1984)

https://www.atariarchives.org/deli/homebrew_and_how_the_apple.php
2•lioeters•30m ago•0 comments

Meta accused of using AI to pick employees with medical conditions for layoffs

https://www.latimes.com/business/story/2026-07-16/meta-accused-of-using-ai-to-pick-employees-with...
3•speckx•32m ago•1 comments

Review the actual change, not the file list

https://packagemain.tech/p/review-the-actual-change-not-the
1•der_gopher•33m ago•0 comments

Help a Psychotherapist Brainstorm

https://www.actualizebeing.com
1•polymath88•36m ago•0 comments

Victory Flock Ends Rollout of Audio "Distress Detection" of Human Voices

https://www.eff.org/deeplinks/2026/07/victory-flock-ends-rollout-audio-distress-detection-human-v...
1•speckx•36m ago•0 comments

Order and Chaos (256 Shades or Dirtiness)

https://replicated.live/blog/status
1•gritzko•38m ago•0 comments

Researchers shed new light on ancient concrete's extraordinary durability

https://engineering.berkeley.edu/news/2026/07/researchers-shed-new-light-on-ancient-concretes-ext...
2•speckx•39m ago•0 comments