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.

OpenAI Engineer's 'LOL' Moment Set Stage for Legal Fight with Apple

https://www.bloomberg.com/news/articles/2026-07-11/openai-engineer-s-lol-moment-set-stage-for-leg...
1•sbulaev•8m ago•1 comments

All the Government's 385,837 frames of UFO files released thus far

https://hypergrid.systems/war.gov-ufo-viewer/microfilm5
1•keepamovin•16m ago•0 comments

Ukraine accuses Russia of creating conditions for the spread of anthrax

https://outbreaknewstoday.substack.com/p/ukraine-accuses-russia-of-creating
4•pinewurst•21m ago•1 comments

Don't You Mean Extinct?

https://fabiensanglard.net/extinct/index.html
1•markus_zhang•21m ago•0 comments

Survival guide: Key advice for what to do if you find yourself in a wildfire

https://www.euronews.com/my-europe/2026/07/10/survival-guide-key-advice-for-what-to-do-if-you-fin...
2•rawgabbit•26m ago•0 comments

Small Inventors Are Being Squeezed by a Convoluted Patent Process

https://www.nationalreview.com/news/small-inventors-are-being-squeezed-by-a-convoluted-patent-pro...
5•petethomas•32m ago•0 comments

Show HN: We beat Anubis with our stealth MCP

https://tilion.dev/blog/anubis-proof-of-work
7•armanluthra_•39m ago•3 comments

Show HN: Quantum-Qec / Matrix-Free Quantum Homeostatic Engine(Blueprint)

https://github.com/PJHkorea/quantum-mesh-qec
3•PJHkorea•42m ago•1 comments

We Know Simple Fluids Can Flow. Turns Out, Some Can Fracture

https://www.quantamagazine.org/we-know-simple-fluids-can-flow-turns-out-some-can-fracture-20260710/
8•Anon84•44m ago•0 comments

Show HN: Confessor – replay what private info Claude Code accessed on your PC

https://github.com/ninjahawk/Confessor
4•ninjahawk1•47m ago•0 comments

Thoughts on the 1989 Film the Abyss (2024)

https://www.sffchronicles.com/threads/586366/
2•andsoitis•51m ago•0 comments

The Energetic Costs of Cellular Computation (2012)

https://arxiv.org/abs/1203.5426
4•lioeters•58m ago•0 comments

Largest housing affordability bill in decades becomes law

https://www.npr.org/2026/07/10/nx-s1-5885027/housing-bill-without-trump-signature
4•saucymew•1h ago•0 comments

Computation in Physical Systems

https://plato.stanford.edu/entries/computation-physicalsystems/
2•lioeters•1h ago•0 comments

Atlas: ROMbug Wants to Reinvent the Browser

https://rombug.com/
2•chainbuilder•1h ago•0 comments

AI notetakers promise easy meeting recaps, but some question their use

https://apnews.com/article/ai-notetaker-work-meetings-privacy-data-c700299371ca7cfec77dafdfb948067f
5•billybuckwheat•1h ago•2 comments

A Hundred Years Dry: The U.S. Navy's End of Alcohol at Sea

https://news.usni.org/2014/07/01/hundred-years-dry-u-s-navys-end-alcohol-sea
4•keepamovin•1h ago•0 comments

Neverclick: Desktop application for performing mouse actions with your keyboard

https://github.com/LazoVelko/neverclick
4•thunderbong•1h ago•0 comments

The logic behind Kirkland x Palantir

https://lexifina.com/blog/kirkland-palantir-partnership
2•alansaber•1h ago•0 comments

America Changed Me and Europe Was Wrong [video]

https://www.youtube.com/watch?v=fUd6QHUnLMk
4•keepamovin•1h ago•4 comments

I find AI roleplay therapeutic

https://chatbrat.ai/bratlog/ultimate-ai-roleplay-setup-guide-memory-lorebooks
2•henrypissler•1h ago•0 comments

Show HN: Levee – a self-tuning circuit breaker and concurrency limiter for Go

https://github.com/codemartial/levee
3•code_martial•1h ago•0 comments

RTX 5070 Ti throttles at 107C; Blackwell hotspot sensor readable via MODS tool

https://www.tomshardware.com/pc-components/gpus/hotspot-temperature-sensor-on-nvidias-blackwell-g...
3•sbulaev•1h ago•0 comments

Flock Camera Conspiracy, Prepare for Whats Coming [video]

https://www.youtube.com/watch?v=ZFim3j9s6ic
2•Bender•1h ago•0 comments

Frequently Asked Questions on Expertise

https://jtpeterson.substack.com/p/faq-on-expertise
3•jger15•1h ago•0 comments

What xAI's Grok Build CLI Actually Sends to xAI

https://gist.github.com/cereblab/dc9a40bc26120f4540e4e09b75ffb547
39•jhoho•1h ago•9 comments

Like a cheat code for your car: We investigate ECU tuning

https://arstechnica.com/cars/2026/07/like-a-cheat-code-for-your-car-we-investigate-ecu-tuning/
2•martincmartin•1h ago•0 comments

Apple Hide My Email bug, possibly related to disclosure vulnerability

https://lapcatsoftware.com/articles/2026/7/2.html
4•zdw•1h ago•0 comments

Firefox 12.58% for Desktop Browser Market Share in North America June 2026

https://gs.statcounter.com/browser-market-share/desktop/north-america
32•speckx•1h ago•15 comments

A Erlang style pure Scheme Webserver and further

https://igropyr.com
8•guenchi•1h ago•1 comments