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•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.

Molecular Dynamics on Apple M4

https://github.com/vyasgiridhar/moleqular
1•vyasgiridhar•4m ago•0 comments

My indie app was named too close to competitors and I burnt my fingers

1•phalgun_g•8m ago•0 comments

Ask HN: What LLM models are you using and why?

1•rubyn00bie•11m ago•0 comments

Ask HN: Why do hotels etc. WiFi networks all use captive portals?

1•tgsovlerkhgsel•13m ago•0 comments

What right has a "personal fortune" to be anything but working capital?

2•silexia•15m ago•0 comments

Private Hosted OpenClaw that can connect to your data with included AI models

https://platform.joinable.ai
1•tnac•18m ago•0 comments

Show HN: Machine – One VM per Project

1•katspaugh•19m ago•0 comments

Directory of Blogs with a /Now Section

https://nownownow.com/
2•James72689•21m ago•0 comments

Five LLM agents play Werewolf in-browser, each with a private DuckDB

https://kayhan.dev/posts/013-werewolf-five-agents-one-browser/
1•keynha•27m ago•0 comments

My Wi-Fi Was Faster Than Ethernet So I Fixed It

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

An example of functional slop code

https://manemasters.vip/
1•AndrewKemendo•40m ago•1 comments

Driving

https://jzhao.xyz/posts/driving
1•wonger_•44m ago•0 comments

Groww beat every odd to get here. Now what?

https://the-ken.com/newsletters/two-by-two/groww-beat-every-odd-to-get-here-now-what/
1•vidyesh•57m ago•0 comments

AI Poop Analysis App Offered to Sell Me Database of Its Users' Poops

https://www.404media.co/ai-poop-analysis-app-offered-to-sell-me-access-to-its-users-poops/
1•tjek•57m ago•0 comments

Tesla Solar Roof is on life support as it pivot to panels

https://electrek.co/2026/05/14/tesla-solar-roof-promise-vs-reality-pivot-panels/
21•celsoazevedo•58m ago•4 comments

In Japan, we don't see robots as a threat: just a form of presence in the world

https://english.elpais.com/science-tech/2026-05-16/takeshi-yoro-anatomist-in-japan-we-dont-see-a-...
1•pilingual•1h ago•0 comments

Danger Testing

https://www.dangertesting.com/
1•skogstokig•1h ago•0 comments

Anyone on the Internet Can Ring Your Doorbell

https://www.abgeo.dev/blog/anyone-can-ring-your-doorbell
1•jrdres•1h ago•0 comments

Coal Makes a Comeback, Fueled by War in the Middle East

https://www.wsj.com/business/energy-oil/coal-makes-a-comeback-fueled-by-war-in-the-middle-east-fb...
2•JumpCrisscross•1h ago•0 comments

Grok vs. ChatGPT vs. Gemini Comparison 2026: Complete Guide (Tested)

https://aithinkerlab.com/grok-vs-chatgpt-vs-gemini-comparison-2026/
1•carlual•1h ago•1 comments

We refrigerated our way out of needing each other

https://pilgrima.ge/p/the-middleman
1•momentmaker•1h ago•0 comments

Achieving last-iterate convergence in a QNN via an autonomous Gmetric driver

https://github.com/unbconductor/psi.emergence
1•psiemergence•1h ago•0 comments

Grafana Labs internal source code accessed

https://twitter.com/grafana/status/2055827123236171827
14•jschorr•1h ago•2 comments

Show HN: Serene Bach – a Go weblog engine that runs as CGI or HTTP

https://github.com/serendipitynz/serenebach
2•takkyun•1h ago•0 comments

Show HN: Brokkr - Scalable cluster management for GPU/HPC workloads

https://github.com/jackthepunished/brokkr
1•bhdr26k•1h ago•0 comments

As the West Dries Out, a New Generation of Dams Rise

https://www.bloomberg.com/news/features/2026-05-15/colorado-builds-new-dams-in-a-race-with-the-we...
2•divbzero•1h ago•1 comments

Learning to Write (Again)

https://jampa.bearblog.dev/learning-to-write-again/
1•tjampa•1h ago•0 comments

The latest X algorithm has been published to GitHub

https://twitter.com/elonmusk/status/2055277918633562153
3•guiambros•1h ago•0 comments

A Tale of Two File Names

https://tomgalvin.uk/blog/gen/2015/06/09/filenames/
1•GranPC•1h ago•1 comments

Refray – ∞-way RW Git sync tool and auto conflict resolution, for leaving GitHub

https://github.com/MaigoLabs/refray
2•azaneko•1h ago•0 comments