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.

Rust Will Save Linux from AI, Says Greg Kroah-Hartman

https://linux.slashdot.org/story/26/05/27/208203/rust-will-save-linux-from-ai-says-greg-kroah-har...
1•fork-bomber•2m ago•0 comments

The Lone Lisp Heap

https://www.matheusmoreira.com/articles/lone-lisp-heap
1•matheusmoreira•14m ago•0 comments

Australia launches $2B lawsuit over PFAS 'forever chemicals'

https://www.rnz.co.nz/news/world/596604/australia-launches-massive-2b-lawsuit-over-pfas-forever-c...
1•colinprince•16m ago•0 comments

A Eureka machine that thinks like nature and explores what AI cannot

https://iisc.ac.in/a-eureka-machine-that-thinks-like-nature-and-explores-what-ai-cannot/
2•kunalsin9h•16m ago•0 comments

Japan, South Korea and Taiwan are suffering industrial rot

https://www.economist.com/finance-and-economics/2026/05/27/japan-south-korea-and-taiwan-are-suffe...
1•jnord•18m ago•1 comments

Predicting the 2026 World Cup: Can Anyone Stop Spain?

https://dtai.cs.kuleuven.be/sports/blog/predicting-the-2026-world-cup:-can-anyone-stop-spain/
1•fvankers•26m ago•0 comments

Musk's cut to USAID have made the Ebola outbreak worse

https://www.dw.com/en/ebola-central-africa-us-aid-cuts-uganda-drc-who-vaccines/a-77233437
6•camillomiller•26m ago•0 comments

Can Intel Save America?

https://www.thefp.com/p/can-intel-save-america
1•jazzdev•29m ago•0 comments

SlimTide Exploding in 2026: Viral Weight Management Trend

https://finance.yahoo.com/sectors/healthcare/articles/slimtide-capsules-exploding-2026-slim-19370...
1•farqnaht•31m ago•0 comments

1-Click RCE in Flowise (CVE-2026-40933)

https://www.obsidiansecurity.com/blog/when-is-stdio-mcp-actually-a-vulnerability
1•13ph03nix•33m ago•0 comments

Dispatches from the possibly last days of human relevance

https://scottaaronson.blog/?p=9782
1•gone35•34m ago•0 comments

Don't Delegate the Joy of Building to AI

https://bacist.com/joy-of-building/
2•baCist•34m ago•3 comments

Websites have a new way to spy on visitors: analyzing their SSD activity

https://arstechnica.com/security/2026/05/websites-have-a-new-way-to-spy-on-visitors-analyzing-the...
2•XzetaU8•37m ago•1 comments

Where is API tooling lacking?

1•dhruv3006•37m ago•0 comments

Omniclip: Open-source, powerful video editor right in the browser

https://github.com/omni-media/omniclip
1•maxloh•38m ago•0 comments

Halted ARM64 Port Work

https://github.com/rcarmo/haiku-arm64-build
1•rcarmo•39m ago•0 comments

I Stopped Designing Forms for Only Humans

https://www.indiehackers.com/post/i-stopped-designing-forms-for-only-humans-893ed23599
1•Lovanut•39m ago•0 comments

A one-word answer to why EU lost control of Big Tech: Ireland

https://euobserver.com/218423/a-one-word-answer-to-why-eu-lost-control-of-big-tech-ireland/
2•nemoniac•42m ago•1 comments

Is it better to have fewer components?

https://alokit.substack.com/p/four-components-each-90-reliable
1•avikalp•44m ago•1 comments

UK's rudest chalk figure gets a glow-up to stop it fading in the rain

https://www.bbc.co.uk/news/articles/cpvppe84lnvo
1•FartyMcFarter•46m ago•0 comments

Space, time and Shakespeare – Paul Glendinning [video]

https://www.youtube.com/watch?v=iMHvwhXFrNQ
1•vismit2000•50m ago•0 comments

Breaking macOS App Sandbox with Archive Utility

https://mysk.blog/2026/05/19/cve-2026-28910/
1•goranmoomin•51m ago•0 comments

Even if every California billionaire left tomorrow, it would take 25 years...

https://finance.yahoo.com/economy/policy/articles/even-every-california-billionaire-left-16491874...
1•1vuio0pswjnm7•53m ago•1 comments

Rivian will deliver the first R2 SUVs on June 9

https://techcrunch.com/2026/05/27/rivian-will-deliver-the-first-r2-suvs-on-june-9/
1•01-_-•55m ago•0 comments

Giant cockroach statue brings new life to shrinking Nara village

https://mainichi.jp/english/articles/20260527/p2g/00m/0na/048000c
2•rawgabbit•55m ago•0 comments

Ottawa's latest deal with U.S. data giant Palantir raises warnings

https://www.thestar.com/politics/federal/ottawas-latest-deal-with-us-data-giant-palantir-raises-w...
1•01-_-•55m ago•0 comments

The Ridgeway

https://www.historic-uk.com/HistoryMagazine/DestinationsUK/The-Ridgeway/
1•mellosouls•56m ago•0 comments

Google engineer charged with using inside information to win $1.2M on Polymarket

https://www.washingtonpost.com/technology/2026/05/27/google-employee-charged-with-insider-trading...
4•1vuio0pswjnm7•56m ago•2 comments

TopRec (toprec.io) – AI screening and CRM for recruiters and hiring teams

https://toprec.io
1•girish-fokusly•1h ago•0 comments

The fog is alive: bacteria in fog droplets clear toxins from air

https://news.asu.edu/20260514-environment-and-sustainability-fog-alive-researchers-discover-bacte...
3•XzetaU8•1h ago•0 comments