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.

The New Calculus of AI-Based Coding

https://blog.joemag.dev/2025/10/the-new-calculus-of-ai-based...
1•aabdi•31s ago•1 comments

Designing a backyard deck for my house

https://blog.cosmin.cloud/posts/diy-deck.html
1•spycraft•5m ago•0 comments

Compress tool outputs, logs, files, RAG chunks before LLM for 60-95% less tokens

https://github.com/chopratejas/headroom
1•gmays•5m ago•0 comments

Trapped in a Waymo: SF passenger recounts terrifying construction zone ordeal

https://abc7news.com/post/waymo-recall-san-francisco-man-recounts-terrifying-moment-when-robotaxi...
1•mikhael•8m ago•0 comments

Show HN: Stocks Porfolio in a URL and Favicon

https://stocksreader.com/
1•franciscop•8m ago•0 comments

Bureaulogy – formation, evolution, and perpetuation of bureaucracies

https://grantslatton.com/bureaulogy
1•thelastgallon•9m ago•0 comments

Chromium Embedded Framework (CEF)

https://github.com/chromiumembedded/cef
1•auraham•11m ago•0 comments

The Punctum and the Blind Field

https://theholbrookreport.com/reports/punctum-and-the-blind-field/
1•TyrunDemeg101•14m ago•0 comments

China will have a Fable 5-class AI model before next year

https://www.tomshardware.com/tech-industry/artificial-intelligence/elon-musk-says-that-china-will...
4•achow•18m ago•0 comments

TV Player for Rocket Launches

https://github.com/sighmon/SpaceX-TV
1•sighmon•26m ago•0 comments

We record because we have forgotten how to remember

https://pilgrimsage.substack.com/p/the-lowest-frequency
1•momentmaker•30m ago•0 comments

AI and the Great CMS Unbundling

https://dri.es/ai-and-the-great-cms-unbundling
2•christefano•37m ago•0 comments

This pole is worse than any Flock Camera [video][38 mins]

https://www.youtube.com/watch?v=wEfbhEVuvMM
1•Bender•40m ago•0 comments

Lawsuit against Amazon over suicides linked to chemical can go to trial

https://www.cbsnews.com/news/amazon-suicide-case-sodium-nitrite-washington-supreme-court/
2•hentrep•42m ago•0 comments

Satellite reveals immense scale of GPS signal tampering

https://www.space.com/space-exploration/satellites/its-quite-a-bit-more-than-we-expected-satellit...
3•y1n0•44m ago•0 comments

Moebius: 0.2B Lightweight Image Inpainting Framework with 10B-Level Performance

https://hustvl.github.io/Moebius/
2•ilreb•50m ago•0 comments

Spirit Crossing's AI Problem

https://blog.curiousquail.com/spirit-crossings-ai-problem/
1•zokiboy•52m ago•0 comments

A Practical Guide to SSH Tunnels: Local and Remote Port Forwarding

https://labs.iximiuz.com/tutorials/ssh-tunnels
1•signa11•56m ago•0 comments

How to lose a war in three easy steps

https://www.ft.com/content/0ba6b511-649e-4a29-bb99-f824584ec93d
4•Alien1Being•1h ago•1 comments

Show HN: Rundown - Niche Intelligence for YouTube Creators

https://getrundown.xyz
2•razasaad92•1h ago•0 comments

Show HN: AgentArk – open-source self-hosted AI agent OS

https://github.com/agentark-ai/AgentArk
2•debankad•1h ago•0 comments

Show HN: Western Highway Alerts

https://westernhighwayalerts.com/
1•BetaDeltaAlpha•1h ago•0 comments

Website –> Markdown Chrome Extension

https://chromewebstore.google.com/detail/save-to-yaps/baaheihmooadmcknelpapgdhoaeldipk
5•RichAwo•1h ago•0 comments

How to Build REST APIs with Actix-Web in Rust

https://oneuptime.com/blog/post/2026-02-01-rust-actix-web-rest-api/view
2•MarShell237•1h ago•0 comments

Where to Find the Colors Your Screen Can't Show You

https://moultano.wordpress.com/2026/06/19/where-to-find-the-colors-your-screen-cant-show-you/
1•moultano•1h ago•0 comments

Atheon -Atheon is a community-driven pattern matching engine

https://github.com/HoraDomu/Atheon
1•HoraDomu•1h ago•1 comments

Quantum sensor breakthrough could transform Army battlefield signal detection

https://www.army.mil/article/293021/quantum_sensor_breakthrough_could_transform_army_battlefield_...
2•wslh•1h ago•0 comments

Memory Safe Inline Assembly

https://fil-c.org/inlineasm
4•pizlonator•1h ago•0 comments

Xi Jinping wants China to boost demand. Why isn't it working?

https://www.ft.com/content/7db72916-3f9f-42c6-bd28-b5c7f51ed573
1•wslh•1h ago•1 comments

I asked Apple's senior watchOS team why it's not coming to so many older models

https://www.techradar.com/health-fitness/smartwatches/its-the-most-convenient-way-to-interact-wit...
1•ValentineC•1h ago•0 comments