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.

Leaked Documents Reveal Secret Russia-China Military Plan to Disable Starlink

https://united24media.com/world/leaked-documents-reveal-possible-secret-russia-china-military-pla...
1•vrganj•41s ago•0 comments

DPDK vs. Af_XDP Latency Benchmarks Tested on Real NICs

https://github.com/ASherjil/ABTRDA3
1•CoreCppEngineer•1m ago•1 comments

Cuelume: Interface Sound Design Kit

https://cuelume-site.pages.dev/
1•handfuloflight•1m ago•0 comments

Itanium: Market Reception

https://en.wikipedia.org/wiki/Itanium
1•tosh•1m ago•0 comments

Meta u-turns on AI feature amid privacy backlash

https://thehill.com/policy/technology/5964282-privacy-concerns-instagram-ai/
1•Alien1Being•5m ago•0 comments

Test Your Webcam and Microphone

https://webcamtester.io/en/
1•QOOBRA•5m ago•0 comments

Remembering Ken Iverson (2004)

https://web.archive.org/web/20180412035431/https://keiapl.org/rhui/remember.htm
1•tosh•16m ago•0 comments

I needed one feature for my SaaS. 6 hours later I had launched another SaaS

https://www.floatingvideo.com
1•astonfred•18m ago•1 comments

Think preprints are unreliable? Analysis of 70000 studies might change your mind

https://www.nature.com/articles/d41586-026-02167-3?linkId=62708614
1•XzetaU8•18m ago•1 comments

A proper Docker image for WebCalendar: SQLite-backed and self-contained

https://projects.rocks/blog/webcalendar-docker.html
1•mysterhawk•21m ago•0 comments

Jiki – Learn to Code the Fun Way

https://jiki.io
1•phil-pickering•23m ago•1 comments

The Hard-Line Activists Ramping Up for the War with AI

https://www.wsj.com/tech/ai/anti-ai-activists-disappearance-sam-kirchner-6872879f
1•thm•25m ago•0 comments

The Gen X Career Meltdown (2025)

https://www.nytimes.com/interactive/2025/03/28/style/gen-x-creative-work.html
1•Michelangelo11•31m ago•0 comments

In Praise of Exhaustive Destructuring

https://antoine.vandecreme.net/blog/exhaustive-destructuring-praise/
1•avandecreme•35m ago•0 comments

AST vs. Bytecode (2023) [pdf]

https://stefan-marr.de/downloads/oopsla23-larose-et-al-ast-vs-bytecode-interpreters-in-the-age-of...
1•tosh•36m ago•0 comments

When They Steal Our Future

https://karenkelsky.substack.com/p/when-they-steal-our-future
1•Michelangelo11•38m ago•0 comments

Shark: The First Light Aircraft That Cancels Turbulence [video]

https://www.youtube.com/watch?v=wHcZf9E0esA
1•skibz•38m ago•0 comments

School Is Not Enough

https://www.palladiummag.com/2023/06/06/school-is-not-enough/
3•ronfriedhaber•39m ago•1 comments

Ghostel.el: Terminal emulator powered by libghostty

https://dakra.github.io/ghostel/
1•signa11•40m ago•0 comments

Show HN: DejaView – Terminal dashboard for all your Claude Code sessions

https://github.com/dotbrt/dejaview
1•thisbrt•40m ago•0 comments

Growing list of countries move to ban social media for children

https://www.france24.com/en/live-news/20260712-growing-list-of-countries-move-to-ban-social-media...
6•geox•42m ago•2 comments

Vyrai – a travel challenge where your age is your flight budget

https://vyrai.app/
1•Imbryk•43m ago•0 comments

Show HN: Godot running Gemma 4 inference in GDScript and Vulkan compute shaders

https://github.com/asallay/godot-llm
1•steamspaghetti•44m ago•0 comments

Show HN: Markdown Tools Online – 16 free browser-based Markdown converters

https://markdowntoolsonline.com
1•nagudharan•45m ago•0 comments

Reaction: A daemon that scans program outputs for repeated patterns, and takes a

https://framagit.org/ppom/reaction
2•fanf2•51m ago•0 comments

Puffin-Inspired Robot That Swims and Flies [video]

https://www.youtube.com/watch?v=9XJhrKpcBGI
2•skibz•59m ago•0 comments

We are now factory engineers, not product engineers

https://www.warp.dev/blog/we-are-now-factory-engineers-not-product-engineers
3•shintoist•1h ago•1 comments

Finetuning a Reasoning LLM with Supervised or Reinforcement Learning?

https://discuss.huggingface.co/t/finetuning-a-reasoning-llm-with-supervised-or-reinforcement-lear...
2•verdverm•1h ago•0 comments

Political Neutrality Benchmark of popular AI models

https://neutralityproject.org/results.html
4•ryzvonusef•1h ago•0 comments

Short Reflection on being Offline for 24 hours

https://lewiscampbell.tech/blog/260712.html
3•LAC-Tech•1h ago•0 comments