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.

Maybe AI Bots Are (Mostly) Harmless

https://blawg.nochan.net/b/Internet-Crap/20260522-Maybe-AI-Bots-Are-Harmless/
1•Bender•2m ago•0 comments

ASK HN: AI was always a probability problem?

1•7e10•3m ago•0 comments

NASA Announces Realignment

https://www.nasa.gov/news-release/nasa-announces-realignment-to-accelerate-mission-delivery/
1•smallnix•4m ago•1 comments

Plain: A bias-free news site with no ads, no tracking, and no clutter

https://plainnews.app
1•anjrued•5m ago•2 comments

Ask HN: How to get involved and meet people in AI in SF?

1•tj-teej•8m ago•0 comments

Mythos for Offensive Security: XBOW's Evaluation

https://xbow.com/blog/mythos-offensive-security-xbow-evaluation
2•OsrsNeedsf2P•8m ago•1 comments

Why Do Our Fingers Get Wrinkly in Water? An Evolutionary Biologist Explains

https://www.forbes.com/sites/scotttravers/2026/05/22/why-do-our-fingers-get-wrinkly-in-water-an-e...
1•dp-hackernews•10m ago•0 comments

Npmjs.com has Cloudflare captcha on their suggestion API

1•sroussey•11m ago•0 comments

Marketer claimed it could tap devices for ad targeting will pay $880K settlement

https://arstechnica.com/tech-policy/2026/05/marketer-that-claimed-it-could-tap-devices-for-ad-tar...
1•imglorp•12m ago•1 comments

Audit website content against canonical brand messaging and GEO target prompts

https://github.com/rdegges/redline
1•mooreds•12m ago•0 comments

Show HN: Mcpaudit – static security scanner for MCP servers

https://github.com/allenwu-blip/mcpaudit
1•allenwu06•12m ago•0 comments

Anker PowerConf C200: a case study in webcam security theatre

https://bearbin.net/blog/2026/c200-webcam-security-theatre
3•bearbin•14m ago•0 comments

GitHub introduces staged publishing and new install-time controls for NPM

https://github.blog/changelog/2026-05-22-staged-publishing-and-new-install-time-controls-for-npm/
1•brianmcnulty•15m ago•0 comments

A real-time severe-weather command center built on free public APIs

https://consgicody-asos-tools.hf.space/
1•sentinelowl•16m ago•0 comments

DjVu file format, alternative to PDF

https://en.wikipedia.org/wiki/DjVu
1•Alifatisk•17m ago•0 comments

Nicotine biosynthesis is completed by cryptic activating glucosylation

https://www.nature.com/articles/s41467-026-72705-0
1•ninju•18m ago•0 comments

C Programming Language Quiz

https://stefansf.de/c-quiz/
2•birdculture•20m ago•0 comments

Who will benefit most from SpaceX IPO? Mostly Elon – and his inner circle

https://techcrunch.com/2026/05/21/who-will-benefit-most-from-spacex-ipo-mostly-elon-and-a-few-fro...
1•SilverElfin•20m ago•1 comments

Routine vaccines may cut dementia risk–experts have startling hypothesis on how

https://arstechnica.com/health/2026/05/routine-vaccines-may-cut-dementia-risk-experts-have-startl...
2•rafaelc•20m ago•0 comments

Phone is making you bored

https://www.gordonmclean.co.uk/2026/05/21/your-phone-is-making-you-bored/
2•speckx•20m ago•1 comments

Bob Cassette Rewinder: Hacking Detergent DRM for 98% Cost Saving

https://github.com/dekuNukem/bob_cassette_rewinder
2•docdeek•21m ago•0 comments

Every (major) supply chain in the world

https://mindslice.substack.com/p/every-supply-chain-in-the-world
1•vvvhuang•23m ago•0 comments

Electrostatic Chucks (E-Chucks): Essential for Semiconductor Manufacturing

https://www.astrodynetdi.com/blog/what-are-e-chucks
1•teleforce•24m ago•0 comments

If xkcd 303 Was Written Today

https://daviesgeek.com/If-xkcd-303-Was-Written-Today
1•daviesgeek•26m ago•0 comments

Notes from PyCon 2026

https://gdelgado.ca/blog/2026-05-18-pycon-2026/
2•g_delgado14•26m ago•0 comments

The Ontology Rabbit Hole

https://haym.me/ontology.html
2•5n•26m ago•0 comments

Learn the tricks. Beat the system. (2009)

https://courses.csail.mit.edu/iap/interview/index.php
1•downbad_•27m ago•0 comments

Linux Sound Subsystem Also Seeing Many Fixes Driven by AI/LLMs

https://www.phoronix.com/news/Linux-7.1-Sound-Many-Fixes
7•dboon•30m ago•0 comments

Ask HN: How does ranking work for Tell HN?

2•theorchid•31m ago•4 comments

Project Glasswing: An Initial Update

https://www.anthropic.com/research/glasswing-initial-update
30•louiereederson•33m ago•21 comments