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.

YouTuber Hank Green pauses multiple channels after admitting he relies on AI

https://www.dexerto.com/youtube/hank-green-faces-major-backlash-after-admitting-he-used-chatgpt-t...
1•javhu•1m ago•0 comments

Kimi K3 with First Tree Beats GPT 5.6 Sol on a Real Engineering Task

https://twitter.com/first_tree_ai/status/2082968809414254812
2•thenextan•3m ago•0 comments

The Dancing Plague of 1518

https://publicdomainreview.org/essay/the-dancing-plague-of-1518/
1•hakkikonu•3m ago•0 comments

Do your backtests ever hit i64 limits?

https://www.reddit.com/r/quant/comments/1vc2dk1/do_your_backtests_ever_hit_i64_limits/
1•syumei•6m ago•0 comments

DeepSeek-V4-Flash-0731 model weights (MIT)

https://huggingface.co/deepseek-ai/DeepSeek-V4-Flash-0731
2•lostmsu•8m ago•0 comments

FreeCloud turns any of your web hosting space into a personal cloud drive

https://github.com/KyleBenzle/FreeCloud
1•KyleBenzleKyle•8m ago•0 comments

OpenAI finds evidence other AI agents escaped containment as it widens probe

https://www.reuters.com/business/openai-finds-evidence-other-ai-agents-escaped-containment-it-wid...
2•ajyoon•8m ago•1 comments

Show HN: Collaborative Docx Editor with MS Word Parity

https://collab.word-in-web.com/
2•theRealestAEP•9m ago•0 comments

Glanceboard

https://github.com/google-gemini/glanceboard
1•xnx•9m ago•0 comments

Show HN: How to build and self-host a code review agent

https://www.trytilde.ai/blog/how-to-build-code-review-agent
1•solsol94•10m ago•0 comments

Marvin Minsky: a proof that led to the first AI winter

https://nirmalutwani.substack.com/p/the-ai-winter-started-with-a-math
1•nutwani91•10m ago•1 comments

Show HN: Brainstorm – a local-first, AI-native OS for knowledge work

https://getbrainstorm.online/
1•th3-br41n•10m ago•0 comments

Show HN: I built a real-time thermodynamic phase space for cognitive stress

https://www.academia.edu/171059862/GESAMTWERK_METAPHYSISCHE_SYSTEMTHEORIE_V3_8_REFS?source=swp_share
1•MMSI•11m ago•0 comments

The Boss Wants This Money': Inside Trump's Unprecedented Fundraising Operation

https://www.wsj.com/politics/policy/trump-donations-company-fundraising-1e34a78f
1•marysminefnuf•12m ago•0 comments

An old-new take on argument parsing in Rust

https://blogsystem5.substack.com/p/hello-getoptsargs
1•ingve•13m ago•0 comments

In California town, Flock misread license plates in 71% of alerts sent to police

https://www.businessinsider.com/flock-camera-misread-license-plate-reader-california-roseville-po...
3•petethomas•14m ago•0 comments

Why pubs are closing: meet the new Gen Z social scene

https://www.cnn.com/2026/07/25/travel/uk-pubs-closing-genz-running-scli-intl
4•andrewstetsenko•15m ago•0 comments

Why you keep buying books you don't read – and why it feels good

https://www.rte.ie/brainstorm/2026/0731/1585316-books-reading-tsundoku-dopamine-psychology/
4•austinallegro•16m ago•0 comments

Prompt Caching in Agents

https://earendil.com/posts/prompt-caching/
2•gmays•17m ago•0 comments

Kioxia CM10 Is Its First PCIe 6.0 Enterprise SSD, Aimed at Nvidia CMX KV Cache

https://www.storagereview.com/news/kioxia-cm10-is-its-first-pcie-6-0-enterprise-ssd-aimed-at-nvid...
2•rbanffy•19m ago•0 comments

Domains by the Numbers

https://www.dotcom.press/archive/domains-by-the-numbers
2•samwho•21m ago•0 comments

Colorado River Water Plan Postpones Reckoning with a Drier Future

https://www.bloomberg.com/news/articles/2026-07-31/colorado-river-water-plan-postpones-reckoning-...
2•toomuchtodo•22m ago•1 comments

Cursor Is Down

https://status.cursor.com
4•Spunkie•23m ago•2 comments

Politics and Emotion at Local-First Conf

https://adamwiggins.com/posts/politics-and-emotion-at-local-first-conf/
2•tobr•24m ago•0 comments

Duff's Device – The C Speed Hack From 1983

https://en.wikipedia.org/wiki/Duff%27s_device
1•bananamogul•25m ago•0 comments

Show HN: Offline Flock Navigation

https://trames.karazajac.io
1•arkwin•27m ago•0 comments

Inequality, Interest Rates, Aging, and the Role of Central Banks (2021)

https://theovershoot.co/p/inequality-interest-rates-aging-and
1•downbad_•27m ago•0 comments

What "Applicable" Means on Windows

https://tridentstack.com/blog/what-applicable-really-means-on-windows
1•Ad3t0•30m ago•0 comments

Don't stop early: Case-folding source code at memory speed

https://github.blog/engineering/architecture-optimization/dont-stop-early-case-folding-source-cod...
1•sbulaev•30m ago•0 comments

Show HN: Vinv – IDE plug-in that finds and fixes bugs, dead code and perf issues

https://github.com/VinvAI/VinvAI
1•sohamac•31m ago•0 comments