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.

Guillermo Rauch: "We've confirmed a KVM 0day through our Vercel bounty program"

https://twitter.com/rauchg/status/2106402024804020657
1•ronfriedhaber•55s ago•0 comments

Show HN: Terminal Gym – a Claude mod that makes you do pushups between prompts

https://github.com/DrumAndCode/terminal-gym
1•heynaitik•4m ago•0 comments

An Algorithmic Failure Beneath the Secret Ballot

https://blog.citp.princeton.edu/2026/08/03/an-algorithmic-failure-beneath-the-secret-ballot/
1•leecoursey•5m ago•0 comments

The KV Cache Is the New Memory Wall

https://jaehun.me/en/posts/paper-2609-30854v1/
2•acossta•6m ago•0 comments

The Server Side Cloud Swift SDK

https://cloud.google.com/blog/topics/developers-practitioners/introducing-the-server-side-cloud-s...
2•frizlab•7m ago•1 comments

Holocron: The Backup of Last Resort

https://smyck.net/2026/10/03/holocron-the-backup-of-last-resort/
1•ahlCVA•11m ago•0 comments

Show HN: I made a browser-based instrument out of the CHOMPI CLUB source

https://www.temeculadsp.com/nibbi/play
1•johnwheeler•14m ago•0 comments

How to Create More Than You Think

https://th3realsacha.substack.com/p/the-power-of-overthinking
1•yarapavan•15m ago•0 comments

We asked three AIs about the risks of AI. They disagreed with their makers

https://vocemundi.com/we-asked-three-ais-about-the-risks-of-ai-they-disagreed-with-their-makers-a...
1•thomaslaurent•17m ago•0 comments

13% of my website visitors block Google Analytics

https://markosaric.com/google-analytics-blocking/
2•birdculture•17m ago•1 comments

What's the Date?

https://www.lesswrong.com/posts/vzKWsEskYBEWTwpBP/what-s-the-date
1•cubefox•19m ago•0 comments

Using Theme park rides and smartphones for demonstrating Newtonian mechanics

https://iopscience.iop.org/article/10.1088/1361-6404/aea271
1•bryanrasmussen•20m ago•1 comments

Being a good CPU neighbor (2016)

https://barro.github.io/2016/02/being-a-good-cpu-neighbor/
1•bilegeek•21m ago•0 comments

Show HN: thezoomist.com – Closer to Everything

https://thezoomist.com/
1•mmdtdev•25m ago•0 comments

Software 2.0 writes Software 1.0

https://www.giete.ma/blog/software-2-0-writes-software-1-0
2•gietema•25m ago•0 comments

Building Serendipity (2011)

https://randsinrepose.com/archives/building-serendipity/
1•mooreds•26m ago•0 comments

The clanker torture nexus manifesto

https://jregory.substack.com/p/why-we-are-torturing-clankers
1•Murfalo•30m ago•0 comments

Docker has always used microVMs (well since 2016)

https://dave.recoil.org/docker-has-always-used-microvms/
4•avsm•33m ago•0 comments

What we learned running an agentic hackathon with 30k+ hackers

https://twitter.com/rvivek/status/2106264394414108925
2•rvivek•35m ago•0 comments

It's Time to Rename Cybersecurity Awareness Month

https://semgrep.dev/blog/2026/rename-cybersecurity-awareness-month/
1•mooreds•35m ago•0 comments

Ask HN: How are you preparing your children for an AI-powered world?

1•pwython•36m ago•3 comments

City building games have a Soul Problem pt.2

https://www.radical-elements.com/minor-epiphanies/city-building-games-have-a-soul-problem-pt2
2•lexx•36m ago•0 comments

Israel: More Measures to Prevent Civilian Casualties Than Any Other Nation

https://www.newsweek.com/israel-implemented-more-measures-prevent-civilian-casualties-any-other-n...
3•Tomte•38m ago•1 comments

Offloading System Updates to My NAS

https://ls-root.de/posts/download-updates-on-unraid/
1•ls-root•39m ago•0 comments

Australia May Have Just Solved the Housing Crisis [video]

https://www.youtube.com/watch?v=QtZfbWOkoIY
1•thelastgallon•39m ago•1 comments

One Line, 25M Revenue

https://huntersoftwareconsulting.com/posts/2026-10-02-one-line-25m/
2•mooreds•41m ago•0 comments

The UK's Sovereign AI Lab

https://cosine.sh
2•maxall4•43m ago•0 comments

How Firestore Matches Realtime Queries

https://rockwotj.com/blog/firestore-query-matching/
2•Malp•43m ago•0 comments

Doffly – Know Before It Goes Down

https://www.doffly.pro/
1•anelkabag•43m ago•1 comments

Vietnam's economy grew 9.95% in Q3, fastest pace in 4 years

https://asia.nikkei.com/economy/vietnam-s-economy-grew-9.95-in-q3-fastest-pace-in-4-years
1•michaelhillaert•43m ago•0 comments