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.

Ask HN: What do you do about API keys?

1•stickynotememo•2m ago•0 comments

Building Specialized Systems We Can Trust with Agents

https://skydiscover-ai.github.io/blog-skysynth.html
1•matt_d•2m ago•0 comments

Clay Mathematics Institute on the Navier-Stokes Problem

https://www.claymath.org/news/navier-stokes-announcement/
1•rvz•4m ago•0 comments

Szmalcownik

https://en.wikipedia.org/wiki/Szmalcownik
1•firefax•8m ago•1 comments

Vulnerability in balcony solar panel inverter (de)

https://www.ccc.de/updates/2026/blinkenlights-hoymiles
3•yitchelle•13m ago•0 comments

Assessing the Evolving Global Competitiveness of the US Auto Industry

https://itif.org/publications/2026/03/23/assessing-evolving-global-competitiveness-of-us-auto-ind...
1•toomuchtodo•14m ago•0 comments

CascadeLUT: Info.-Ordered Streaming Inference for Bandwidth-Constrained FPGAs

https://arxiv.org/abs/2608.00720
1•matt_d•19m ago•0 comments

AI Has Solved One of Math's $1M Millennium Prize Problems

https://www.quantamagazine.org/ai-has-solved-one-of-maths-1-million-millennium-prize-problems-202...
1•jonbaer•20m ago•0 comments

All the Doom Talk Is 'Meant to Distract Us'

https://www.wired.com/story/one-of-ais-fiercest-critics-says-all-the-doom-talk-is-meant-to-distra...
2•cwwc•22m ago•0 comments

How to Detect Residential Proxies

2•jwally•28m ago•0 comments

How to log in where you shouldn't

https://djnn.sh/posts/pam_access/
1•justusw•49m ago•0 comments

Google no longer provides direct URLs in search results

https://www.autom.dev/blog/google-search-goto-links
58•1e1a•59m ago•35 comments

AI Hallucinations Trigger Malware Flag on 1M+ Active User Extension

https://groups.google.com/a/chromium.org/g/chromium-extensions/c/dG_VSqyli1A
4•OzzyOzbour•1h ago•0 comments

Rare Earth Magnets: China Found Something Better Than Oil [video]

https://www.youtube.com/watch?v=BXLGV0Sj0n8
1•thelastgallon•1h ago•0 comments

Spec at Lunch, Game by Eight

https://littletheta.com/field-notes/spec-at-lunch-game-by-eight
3•NickHirras•1h ago•0 comments

DeepSeek v4.1 flash runs 23 seconds/token on a 2020 16gb M1 Mac Mini

https://twitter.com/thefp4brain/status/2098424202168586367
7•ajay-higgs•1h ago•2 comments

USA has 43% of world datacenter power usage; PRC 13%, GER 8%, UK 3%, JPN 2%

https://www.computerweekly.com/news/366642726/IDCA-datacentres-report-Global-concentration-and-th...
2•TMWNN•1h ago•0 comments

Ask HN: How do you (AI researchers) convince yourselves that AI isn't terrible?

4•l2silver•1h ago•3 comments

Pandas Should Go Extinct

https://eddie.codes/posts/pandas-should-go-extinct/
57•__eddie__•1h ago•31 comments

Ask HN: Did Google kill its enterprise workhorse model?

8•waldrews•1h ago•1 comments

Predicate Routing for Native Handling of API Traffic

https://blog.nginx.org/blog/predicate-routing-for-native-handling-of-api-traffic
3•thunderbong•1h ago•0 comments

Google stole open source code without crediting the authors (Artemis/Minitap)

https://www.minitap.ai/blog/i-expected-better-from-google
90•MysteryPancake•1h ago•19 comments

Show HN: Single-file invoice generator that works in the browser

https://merlin-invoice-tool.surge.sh
1•clawforger_mthx•1h ago•0 comments

Profession – Issac Asimov (1957)

https://www.inf.ufpr.br/renato/profession.html
1•xeonmc•1h ago•0 comments

Arguments for Apple enthusiasts whenever an Android user

https://blog.webb.page/WM-103
1•NetOpWibby•1h ago•0 comments

Backchannel

https://backchannel.rpediter.com
2•rinuk_k•1h ago•0 comments

Show HN: Next Notes – local dictation, meeting notes, and actions app

https://github.com/spyhack225/next-notes
2•Sergekad0•1h ago•0 comments

Classifying AI Website Fetches on Behalf of Users

https://canonry.ai/blog/classifying-ai-crawlers-user-fetches-server-logs
1•arberx•1h ago•0 comments

The Falling Man (2021)

https://www.esquire.com/news-politics/a48031/the-falling-man-tom-junod/
1•fraXis•1h ago•0 comments

The Environmental Protection Network: About Us

https://www.environmentalprotectionnetwork.org/about/
2•mmooss•1h ago•0 comments