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.

Inside Meta’s Efforts to Prevent School Shootings

https://www.newyorker.com/news/the-lede/inside-metas-efforts-to-prevent-school-shootings
1•thm•6m ago•0 comments

Yeti, an MCP server that guides product design from requirements to Jira

https://github.com/macorifice/yeti
1•macorifice•13m ago•1 comments

Shigeru Miyamoto on Gen AI

https://www.ndw.jp/nintendo-interview-261023/
1•glimshe•14m ago•0 comments

OpenShell WebUI – a secure local web UI for OpenShell

https://github.com/shaharia-lab/openshell-webui
1•shahariaa•15m ago•0 comments

PSA: Do not use term "vibe coding"

2•Rabbit504030201•18m ago•1 comments

Amazon's Trainium Takes a Strike at the Training King

https://newsletter.semianalysis.com/p/amazons-trainium-takes-a-strike-at
3•admjs•21m ago•0 comments

Show HN: I built a gallery wall planner for two-sided physical art

https://duoarts.com/gallery-walls
2•redclamp•22m ago•0 comments

The Faux-Vintage Photo: Full Essay

https://thesocietypages.org/cyborgology/2011/05/14/the-faux-vintage-photo-full-essay-parts-i-ii-a...
1•jruohonen•23m ago•0 comments

PhysicsForums and the Dead Internet Theory (2025)

https://hallofdreams.org/posts/physicsforums/
2•bmacho•25m ago•0 comments

I wish restaurants would stop asking for my phone number

https://www.theatlantic.com/culture/2026/10/restaurant-phone-number-question/688926/
1•bookofjoe•26m ago•1 comments

Portable SIMD is in C++26, and you can try it now

https://wrocpp.github.io/posts/portable-simd/
1•Tomte•28m ago•0 comments

What's at Stake in Serbia's Election

https://rademeechtatic.substack.com/p/whats-at-stake-in-serbias-election
1•samizdis•29m ago•0 comments

Ask HN: Linux at work revoked due to MDM, how to fight?

1•aleda145•29m ago•2 comments

Created my first app petpal

https://play.google.com/store/apps/details?id=com.nexushybrids.petpal&hl=en_US
1•Mohtasim801•36m ago•0 comments

Draggy: A Windows desktop app for local and cloud AI chat and coding

https://github.com/Lucki74/draggy
1•lucki74•38m ago•0 comments

Show HN: AI text detector that never sees your text (runs 100% in-browser)

https://kouh.me/ai-text-detector
3•mrkn1•38m ago•1 comments

Is This Machine Playing?

https://machineplaying.org/
1•DeepLogin•38m ago•0 comments

Researchers Integrate Electronics with Human Cells

https://www.umass.edu/news/article/body-electric-umass-amherst-researchers-integrate-electronics-...
2•geox•40m ago•0 comments

At Aberfan I saw father's digging for their missing children

https://www.theguardian.com/commentisfree/2026/oct/24/aberfan-disaster-missing-children-deaths-jo...
2•jimnotgym•42m ago•0 comments

Show HN: MCP server that answers Steam launch questions with real counts

1•steammaho•45m ago•0 comments

AI-Assisted Paper on Z-Library Cites a TorrentFreak Article That Doesn't Exist

https://torrentfreak.com/ai-assisted-paper-on-z-library-cites-a-torrentfreak-article-that-doesnt-...
23•TangerineDream•47m ago•0 comments

Practical Compiler Construction – Nils M Holm

https://t3x.org/reload64/index.html
3•AlexeyBrin•49m ago•3 comments

Super Mario creator breaks down the problem with AI perfectly

https://www.polygon.com/super-mario-bros-shigeru-miyamoto-ai-order-culture-japan-award-nintendo/
2•plaguna•50m ago•0 comments

US executives quit $25B gas venture over claims of secret Russian control

https://www.ft.com/content/e9cfbfbb-e65a-4303-aebb-20d59319ef1b
1•locknitpicker•50m ago•1 comments

Compromised eMudhra Intermediate Certificates

https://blog.talosintelligence.com/compromised-intermediate-certificates/
1•jruohonen•54m ago•0 comments

Google Analytics Alternative

https://lomenanalytics.com/
1•_Gustav_•56m ago•0 comments

Node.js Vulnerability Blog

https://nodejs.org/en/blog/vulnerability
8•Brysonbw•57m ago•1 comments

LiteLLM supply chain attack hoovers up passwords and secrets

https://www.theregister.com/security/2026/10/21/litellm-supply-chain-attack-hoovers-up-passwords-...
4•jruohonen•59m ago•0 comments

Mdfind Guide: macOS Spotlight Search from Terminal

https://myunix.org/macos/macos-spotlight-terminal/
3•ankitg12•1h ago•1 comments

eMudhra Intermediate CA Certificates Compromised

https://unit42.paloaltonetworks.com/emudhra-certificate-compromise/
3•Brysonbw•1h ago•0 comments