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•12mo ago

Comments

llm-exe•12mo 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•12mo 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.

Apple's iOS 26.5 Update Patches More Than 50 Security Flaws

https://www.macrumors.com/2026/05/11/ios-26-5-security-fixes/
1•celsoazevedo•2m ago•1 comments

Manuals Plus: The Wrap-Up

https://ascii.textfiles.com/archives/5833
1•kencausey•2m ago•0 comments

I let AI build a tool to help me figure out what was waking me up at night

https://martin.sh/i-let-ai-build-a-tool-to-help-me-figure-out-what-was-waking-me-up-at-night/
1•showmypost•3m ago•0 comments

People turning to gambling or fraud in response to rigged/unfair system

https://greyenlightenment.com/2026/05/04/people-turning-to-gambling-or-fraud-in-response-to-rigge...
1•paulpauper•4m ago•0 comments

Teen Boys and Young Men Are Injecting Peptides in Search of Perfection

https://www.wsj.com/health/wellness/boys-peptides-stacks-looksmaxxing-trevor-larcom-835e58cd
1•JumpCrisscross•5m ago•0 comments

Stay indoors warning issued across three US states as toxic smog fills the air

https://www.dailymail.com/sciencetech/article-15809079/stay-indoors-warning-arizona-texas-califor...
1•Bender•5m ago•0 comments

Linux 7.1-Rc3 Released with Many Networking Changes

https://www.phoronix.com/news/Linux-7.1-rc3-Released
1•Bender•7m ago•0 comments

Linux 7.0.6 Released to Finish Mitigating the Dirty Frag Vulnerability

https://www.phoronix.com/news/Linux-7.0.6-Released
1•Bender•7m ago•0 comments

Cash register makers seek 1% food tax rate, citing extra time needed for 0% rate

https://www.japantimes.co.jp/news/2026/04/29/japan/politics/japan-food-tax-cut-challenges/
2•PaulHoule•8m ago•1 comments

Native Instruments Is Bought Out

https://www.the-berliner.com/berlin/native-instruments-sold-to-inmusic/
1•mrzool•9m ago•0 comments

Token Budgeting: How to Think About AI Cost Control

https://www.vantage.sh/blog/ai-token-budgeting
1•StratusBen•10m ago•0 comments

The 45% Hidden ROI of Automation No One Puts in the Business Case

https://sneakbug8.com/vertical-spillover-effect/
1•SneakBug8•10m ago•0 comments

Beneath the Linux surface: the Unix legacy, a lively ecology

https://club.unix.rocks/commentary/under-linux/
1•fcambus•11m ago•0 comments

Seeking technical co-founder (USA) – B2B global trade platform

https://www.ventraa.com/
1•rithwik29345•11m ago•0 comments

Kicking the Tires: A Voluntary Path to Pre-Deployment AI Vetting

https://www.lawfaremedia.org/article/kicking-the-tires--a-voluntary-path-to-pre-deployment-ai-vet...
1•yurivish•11m ago•0 comments

What breaks when you ask an LLM for JSON (288 model outputs tested)

https://thecrosswalk.news/what-breaks-when-you-ask-an-llm-for-json/
2•ndcorder•11m ago•0 comments

US Counterterrorism Strategy 2026: "We Will Find You and We Will Kill You" [pdf]

https://www.whitehouse.gov/wp-content/uploads/2026/05/2026-USCT-Strategy-1.pdf
1•latexr•12m ago•0 comments

We got our first paid user. And we're still stuck in Google's audit process

https://www.indiehackers.com/post/we-got-our-first-paid-user-and-were-still-stuck-in-google-s-aud...
2•festivilia•12m ago•0 comments

The Pace of Feedback

https://thoughtbot.com/blog/the-pace-of-feedback
1•paulhebert•12m ago•0 comments

AI, VPS Usage and $22B in Bead Funding Affects on IPv4 Prices

https://brandergroup.net/2026/04/hostinger-and-hetzner-signal-real-ipv4-demand/
1•JakeBrander•13m ago•0 comments

Virtual flying experience changes neural responses to seeing wings

https://www.cell.com/cell-reports/fulltext/S2211-1247(26)00398-0
3•_Microft•13m ago•1 comments

Prompt caching but for RL – 7.5x speedup on long-prompt/short-response workloads

https://castform.com/blog/train-prompt-cache/
4•kumama•14m ago•0 comments

Interaction Models

https://thinkingmachines.ai/blog/interaction-models/
6•smhx•14m ago•0 comments

Vision of destruction: Israel's assault on southern Lebanon

https://www.theguardian.com/world/2026/may/11/vision-destruction-israel-assault-southern-lebanon-...
3•ciconia•15m ago•0 comments

AI inference just plays by different rules

https://www.theregister.com/software/2026/05/04/ai-inference-just-plays-by-different-rules/5223647
1•gmays•15m ago•0 comments

Ask HN: Experience with Odd-Shaped Monitors?

1•nrjames•15m ago•0 comments

GitLab Announces Workforce Reduction and End of Their CREDIT Values

https://about.gitlab.com/blog/gitlab-act-2/
8•AnonGitLabEmpl•16m ago•1 comments

Rough Patches

https://nickchirls.com/2026/04/28/rough-patches/
2•tylerdane•16m ago•1 comments

80% of your Web Fetch returns Junk

https://www.tinyfish.ai/blog/80-of-your-web-fetch-returns-junk
2•gargigupta•17m ago•0 comments

We Traced U.S. Government Gold to a Drug Cartel

https://www.nytimes.com/2026/04/26/insider/gold-us-mint-drug-cartel.html
3•aleksjess•18m ago•1 comments