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.

How to face the end of the world – according to Plato and the Stoics

https://www.theguardian.com/wellness/ng-interactive/2026/oct/22/ancient-philosophy-apocalypse
1•1659447091•5m ago•0 comments

PHP2Shell Needs One HTTP Request. OpenNHP Never Lets It Arrive

https://opennhp.org/blog/php2shell-attackers-cannot-exploit-what-they-cannot-reach/
1•windcbf•7m ago•0 comments

Topological Logic Scans of Popular OS Repos

https://ulshe.ai/products_archaeologist.html
1•joreag•7m ago•1 comments

The U.S. Government's 2026 Financial Results Are in It's Bad

https://www.youtube.com/watch?v=5oWCcRkkI9s
1•rubicon33•8m ago•0 comments

We're addicted to social media. How do we get sober?

https://www.scientificamerican.com/article/were-addicted-to-social-media-how-do-we-get-sober/
3•jestinjoy1•10m ago•1 comments

State of ARM Support for Puget Bench

https://www.pugetsystems.com/blog/2026/10/22/state-of-arm-support-for-puget-bench/
1•zdw•12m ago•0 comments

Gemini Is Weird

https://discuss.google.dev/t/trusted-automation-with-google-antigravity-scaling-secure-finance-in...
1•simontwigggffff•14m ago•1 comments

Word-Initial Ff

https://en.wikipedia.org/wiki/Word-initial_ff
1•tolerance•15m ago•0 comments

Bootstrapping the Verified Software Stack

https://theorem.dev/blog/verified-software-stack/
1•ravenical•16m ago•0 comments

Show HN: Pristine – an agent skill that critiques and polishes web UI

https://github.com/maddhruv/pristine
1•maddhruvhn•22m ago•0 comments

Lima- Linux VMs with automatic file sharing and port forwarding(similar to WSL2)

https://lima-vm.io/
1•nalinidash•22m ago•0 comments

Tech became the villain of the US midterms

https://www.theguardian.com/us-news/ng-interactive/2026/oct/22/us-midterms-tech-datacenters-ai
1•geox•23m ago•0 comments

3D Printed Photobioreactor [video]

https://www.youtube.com/watch?v=SLckTj_tJg4
1•asalahli•27m ago•0 comments

Trump Officials Asked Agency to Obtain and Hack a Voting Machine

https://www.ibtimes.co.uk/trump-appointees-cisa-hack-voting-machine-1826479
3•razorbeamz•27m ago•0 comments

Keycloak: Unauthenticated account takeover via reset-credentials flow bypass

https://access.redhat.com/security/cve/cve-2026-18963
1•pamcake•29m ago•1 comments

UUIDv7 doesn't have the properties you think it does

https://alexsci.com/blog/uuidv7-is-weird/
2•ajorgensen•32m ago•1 comments

History of Civilization, the Game Franchise

https://www.polygon.com/civilization-games-oral-history/
1•rgun•33m ago•0 comments

Brain organoid computing for robotic decision-making

https://www.biorxiv.org/content/10.64898/2026.09.09.750426v1
1•anigbrowl•34m ago•0 comments

AI Agents Kinda Broke the Internet

https://jacobg.co/ai-agents/
2•jgx0•34m ago•0 comments

CVE-2026-107891: musl Libc: multiple integer overflow in regcomp

https://www.openwall.com/lists/oss-security/2026/10/21/18
1•keyle•37m ago•0 comments

Create Prospect focused sales collateral

https://edithly.com/gtm/
3•bizguy•42m ago•0 comments

PHP situation 24h later [video]

https://www.youtube.com/watch?v=SP7y1h0laN0
1•qwertyforce•44m ago•0 comments

The PHP exploit simply explained [video]

https://www.youtube.com/watch?v=JGZxVTpw3GU
5•daan_nijl•46m ago•0 comments

Patching the Sony PS3 for RGB Scart When Playing DVDs and BluRay

https://github.com/WeebLabs/RGB-DVD-Patch-for-PS3
2•WeebLabs•47m ago•1 comments

MathEconLib – Machine-checked mathematical economics

https://mathecon.dev/
1•the-mitr•48m ago•0 comments

Cherry Processing

https://sftw.substack.com/p/the-second-most-photographed-fruit
1•mhb•51m ago•0 comments

FreeToolkit – 350+ client-side dev utilities (regex, SQL, cron, cURL, more)

https://freetoolkit.dev/
1•scottymal•51m ago•0 comments

Syntax-Highlighting for Word, PowerPoint, Google Docs, Google Sheet, Keynote

https://onlineimageoptimizer.com/code-to-image.html?cols=80&size=24&scale=2&font=Courier+Prime&la...
1•ImageOptimizer•54m ago•0 comments

Show HN: What LLM fits my GPU? – VRAM measured on real hardware for 117 models

https://quantized.uk/
1•sheephess44•58m ago•0 comments

The Customer Is the Builder: how AI coding agents change software economics

https://arxiv.org/abs/2610.30307
1•riponcm•59m ago•0 comments