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.

How to Call an API from an Email

https://redo.com/eng-blog/how-to-call-an-api-from-an-email/
1•joshmoody24•19s ago•0 comments

Finland's bomb shelters draw world to Helsinki in quest for security

https://www.reuters.com/world/europe/finlands-massive-bomb-shelters-draw-world-helsinki-quest-sec...
1•JumpCrisscross•4m ago•0 comments

Tesla Announces Rollout of Fully Self-Driving Tech in China

https://www.wsj.com/business/autos/tesla-announces-rollout-of-fully-self-driving-tech-in-china-27...
1•bookofjoe•5m ago•1 comments

Show HN: Lumox – Wirelessly mirror multiple iPhones on Mac – Ditching QuickTime

https://lumox.app/
1•modrena•5m ago•0 comments

Better CLI Interactions for Agents and Humans

https://www.pulumi.com/blog/better-cli-interactions-for-agents-and-humans/
2•cnunciato•5m ago•0 comments

GrapheneOS Power Usage Recommendations

https://discuss.grapheneos.org/d/35721-grapheneos-power-usage-recommendations
2•Cider9986•5m ago•0 comments

Creating a Full PII Framework for Agents

https://pii-firewall.com/
1•lamne•5m ago•0 comments

AI is killing the cheap smartphone

https://davidoks.blog/p/ai-is-killing-the-cheap-smartphone
2•d0ks•9m ago•0 comments

Shira: Anti Phishing Training Platform

https://shira.app/
2•carohadad•10m ago•1 comments

Spotify and Universal Music strike deal allowing fan-made AI covers and remixes

https://techcrunch.com/2026/05/21/spotify-and-universal-music-strike-deal-allowing-fan-made-ai-co...
1•cdrnsf•10m ago•0 comments

Show HN: A Turing machine simulating a Turing machine simulating a...

https://narcissus.exe.xyz/
1•thingoptimizer•14m ago•0 comments

A cross section of a road in England

https://old.reddit.com/r/interestingasfuck/comments/1tjxi3j/this_is_a_cross_section_of_a_road_in_...
1•n1b0m•15m ago•0 comments

Curtis Yarvin and the Political Evolution of Silicon Valley Reactionaries

https://www.dontbeasucker.blog/p/the-butterflies-in-your-stomach
11•betterthanever•16m ago•0 comments

The Typo Vibe Shift

https://www.theatlantic.com/culture/2026/05/typo-ai-trend-human/687237/
1•paulpauper•16m ago•0 comments

A phrase based on prejudice: 'Dutch courage' (2018)

https://wordhistories.net/2018/04/12/dutch-courage-origin/
1•petethomas•17m ago•0 comments

Show HN: Onda – a cross-platform alternative to DSView for DSLogic analyzers [video]

https://www.youtube.com/watch?v=EwHpt_CuFNc
1•johnwheeler•17m ago•0 comments

A blind taste competition launched the American wine industry

https://thehustle.co/newsletters/20-05-2026
1•paulpauper•17m ago•0 comments

Fertility and Financial Risk-Taking

https://papers.ssrn.com/sol3/papers.cfm?abstract_id=6559781
1•paulpauper•18m ago•0 comments

Amdahl's Law

https://en.wikipedia.org/wiki/Amdahl%27s_law
1•rzk•18m ago•0 comments

An explicit lower bound for the unit distance problem

https://arxiv.org/abs/2605.20579
1•rvz•22m ago•0 comments

Code Bubble: Clojure functions as bubbles on a canvas

https://github.com/ertugrulcetin/code-bubble
1•thenewguy077•22m ago•0 comments

OpenBSD 7.9 Released

https://lwn.net/Articles/1073933/
1•kazu11max17•22m ago•0 comments

InvizCrypt – Secure Cloud Documents

https://invizcrypt.com/
1•htewari•24m ago•0 comments

WebGPU support in llama.cpp

https://reeselevine.github.io/llamas-on-the-web/
2•relivin•28m ago•0 comments

Fraud Indicators Skyrocket in Minnesota Presidential Elections from 2016 Onwards

https://electiontruthalliance.substack.com/p/fraud-indicators-skyrocket-in-minnesota
2•filoeleven•29m ago•0 comments

Protégé Short Course 2026

https://protege.stanford.edu/shortcourse/
2•marcosmr•32m ago•1 comments

Lecture Notes on Statistical Physics and Neural Networks

https://arxiv.org/abs/2605.06394
2•Anon84•33m ago•0 comments

Client approvals via magic link, no more lost feedback

https://puxeline.com
2•pleedchan•33m ago•0 comments

The Pkg.go.dev API

https://go.dev/blog/pkgsite-api
2•yogorenapan•34m ago•0 comments

web-ai-sdk: experimenting with browser-native AI APIs and WebMCP

https://web-ai-sdk.dev/
1•obetomuniz•38m ago•0 comments