frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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•11mo ago

Comments

llm-exe•11mo 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•11mo 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.

How Music Works [video]

https://www.youtube.com/watch?v=zbfKFa-reBE
1•gmays•18s ago•0 comments

Context.ai seemingly cause of Vercel breach

https://twitter.com/jaimeblascob/status/2045960143209152981
1•bearsyankees•26s ago•0 comments

EFF pushes back on Google data scandal response: 'Google screwed up'

https://www.androidauthority.com/eff-pushes-back-on-google-exception-claim-3658264/
1•donohoe•29s ago•0 comments

OpenMythos – open-source Mythos alternative

https://github.com/kyegomez/OpenMythos
1•orixilus•56s ago•0 comments

C++26: Reflection, Memory Safety, Contracts, and a New Async Model

https://www.infoq.com/news/2026/04/cpp-26-reflection-safety-async/
1•birdculture•1m ago•0 comments

Ask HN: Tactical/military reasons for difficulty unblocking the Hormuz Straits?

2•dsalzman•2m ago•0 comments

You're About to See a Lot of Critical Software Updates. Don't Ignore Them

https://www.wsj.com/tech/personal-tech/anthropic-mythos-security-software-updates-573cc9b3
1•fortran77•2m ago•1 comments

'Meow, meow': Pilots scolded after animal noises heard on air traffic radio

https://abcnews.com/US/meow-meow-pilots-scolded-after-animal-noises-heard/story?id=132076661
1•osnium123•5m ago•1 comments

BeagleConnect Zepto – A "$1 Computer" Based on TI MSPM0L1117 Cortex-M0 MCU

https://www.cnx-software.com/2026/04/19/beagleconnect-zepto-a-1-computer-based-on-ti-mspm0l1117-c...
1•HardwareLust•6m ago•0 comments

Satoshi Nakamoto: 'The best outcome is that no one ever finds out'

https://english.elpais.com/economy-and-business/2026-04-19/satoshi-nakamoto-the-reclusive-billion...
1•geox•9m ago•0 comments

Are developers burning out faster than ever? (survey)"

https://docs.google.com/forms/d/e/1FAIpQLSdu-1Sa6oPvhDtFtBuKEgeQ-xIUMTjGdtfRwVLJGibhJUAmOg/viewform
2•rechargedaily•10m ago•1 comments

The Invisible Migration from Nation-States to Stateless Nations

https://medium.com/discourse/the-invisible-migration-from-nation-states-to-stateless-nations-687b...
2•simonebrunozzi•13m ago•0 comments

Sardine Scam or Delicious Novelty?

https://ecency.com/hive-150329/@leaky20/sardine-scam-or-delicious-novelty
2•randycupertino•13m ago•1 comments

The State of Streaming Codecs 2026

https://www.streamingmedia.com/Articles/ReadArticle.aspx?ArticleID=173838
2•breve•14m ago•0 comments

Ask HN: Is giving AI agents DB access the new BI-tool problem?

3•vira28•17m ago•0 comments

Louisiana Advances One of the Country's 'Cruelest' Anti-Homeless Bills

https://www.commondreams.org/news/louisiana-homeless-bill
4•MiguelX413•17m ago•0 comments

RustNet – A cross-platform network monitoring tool

https://github.com/domcyrus/rustnet
1•martinlofgren•25m ago•0 comments

What's that "structured" in Structured Concurrency?

https://macguru.dev/whats-that-structured-in-structured-concurrency/
2•ingve•25m ago•0 comments

Nevada police may be tracking your phone's location without a warrant

https://apnews.com/article/nevada-police-fog-data-cellphone-location-tracking-ab6f7d75864cf0bfb94...
3•breve•26m ago•0 comments

Islamic Medicine (2018)

https://hekint.org/2018/11/19/islamic-medicine/
3•debo_•29m ago•0 comments

Intel Is Making Progress. But It Isn't Out of the Woods Yet

https://www.wsj.com/finance/stocks/intel-is-making-progress-but-it-isnt-out-of-the-woods-yet-f69c...
2•Brajeshwar•31m ago•0 comments

I don't care that it's X times faster

https://tinkering.xyz/faster/
3•RohanAdwankar•33m ago•0 comments

Robot breaks human world record for half-marathon in China

https://www3.nhk.or.jp/nhkworld/en/news/20260419_13/
2•baal80spam•33m ago•1 comments

Bringing the Power of the Sun to Earth: Nuclear Fusion Reactors

https://www.simonsfoundation.org/2026/02/18/bringing-the-power-of-the-sun-to-earth/
3•ganitam•35m ago•0 comments

Egypt's Forgotten Industrial Revolution

https://lostfutures.substack.com/p/egypts-forgotten-industrial-revolution
2•Lost-Futures•35m ago•0 comments

Swiss authorities want to reduce dependency on Microsoft

https://www.swissinfo.ch/eng/swiss-ai/swiss-authorities-want-to-reduce-dependency-on-microsoft/91...
36•doener•36m ago•4 comments

The time when we suffer from large amounts of AI slop is gone

https://lists.haxx.se/pipermail/daniel/2026-April/000153.html
5•jicea•37m ago•0 comments

Yoshihisa Kishimoto (1961 – 2026), creator of Double Dragon and Kunio-kun

https://old.reddit.com/r/NintendoClassics/comments/1sp8dao/in_tribute_to_yoshihisa_kishimoto_1961...
4•alberto-m•40m ago•0 comments

A trainspotter's dream: our own station on England's most scenic railway

https://www.ft.com/content/999edf24-3737-44ba-8ecb-57baa6493a27
2•bwb•42m ago•1 comments

The Weird, Dangerous, Isolated Life of the Saturation Diver

https://www.atlasobscura.com/articles/what-is-a-saturation-diver
3•thunderbong•43m ago•0 comments