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.

Show HN: Gmbrank – Google Business Profile rank tracking with geo-grid maps

https://gmbrank.ai
1•gmbrank•7m ago•0 comments

Blind man drives 150 miles while drunk

https://www.itv.com/news/calendar/2026-07-31/blind-man-who-drink-drove-150-miles-followed-hgv-lights
1•madihaa•8m ago•0 comments

A Weekend of Machine Mathematics

https://charlesponeill.com/posts/a-weekend-of-machine-mathematics/
1•gmays•9m ago•0 comments

Stay Connected on WhatsApp When You Travel

https://blog.whatsapp.com/stay-connected-on-whatsapp-when-you-travel?_fb_noscript=1
1•sidcool•11m ago•0 comments

Show HN: 4K fsync tail latency and SQLite WAL lock failures on a $4/mo VPS

https://nodebudget.dev/guides/why-cheap-vps-benchmarks-lie/
1•wordwright•12m ago•0 comments

Ask HN: Why can AI prove Riemann but not solve cust svc problems?

1•louiereederson•16m ago•3 comments

Take-Two Battles Unofficial GTA 6 PC Port Work

https://www.ign.com/articles/take-two-appears-to-be-trying-to-scrub-gta-6-pc-ports-from-the-inter...
1•Skyfall106•26m ago•0 comments

The Singularity Clock

https://www.singularityclock.ai/
2•iamanatom•26m ago•0 comments

Google will show solo Android developers' phone numbers and addresses

https://support.google.com/googleplay/android-developer/answer/17594752?hl=en
13•nreece•29m ago•5 comments

Riemann home reaches 41 independent validators

https://riemann-at-home.github.io/riemann-at-home/#@titojankowski
1•tito•30m ago•0 comments

Citroën Hydraulic System

https://www.citroenet.org.uk/miscellaneous/hydraulics/hydraulics-1.html
1•o4c•30m ago•0 comments

World records six straight days above 2C warming threshold

https://www.guardian.co.tt/news/world-records-six-straight-days-above-2c-warming-threshold-6.2.27...
1•asphodele•34m ago•0 comments

Necrometer – Zero-back end Rust/WASM audit for GitHub repo decay

https://necrometer.dev
1•jeryd•47m ago•0 comments

Show HN: Sqrin – A better screen share for Mac

https://sqrin.app
2•stichoza•47m ago•0 comments

Melbourne’s safe injecting room is one of the world’s busiest.

https://theconversation.com/melbournes-safe-injecting-room-is-one-of-the-worlds-busiest-the-liber...
1•defrost•48m ago•2 comments

Trying /Swarm in Google Antigravity

https://flaviocopes.com/antigravity-swarm/
1•gmays•49m ago•0 comments

Jakarta EE 11 No Longer Has an Umbrella Jar

https://foojay.io/today/jakarta-ee-11-umbrella-jar/
1•lprimak•50m ago•0 comments

No-Boilerplate, Warning-Free and Reproducible Builds on Maven 4

https://foojay.io/today/no-boilerplate-maven-4-builds/
2•lprimak•50m ago•0 comments

Upgraded Immich to Postgres 19 and VectorChord 1.5.0, works great

https://www.reddit.com/r/immich/comments/1y4ulvq/upgraded_immich_to_postgres_19_and_vectorchord/
2•lprimak•51m ago•0 comments

Gleam Case Exhaustiveness, as a Fan

https://oyster.pckt.blog/gleam-case-exhaustiveness-as-a-fan-fd4whyp
1•TheWiggles•53m ago•0 comments

Linus Torvalds: "Tell Your AI Companion to Get Its Act Together"

https://www.phoronix.com/news/Linus-Torvalds-EXT4-AI-Big
10•droidjj•54m ago•0 comments

New AI research suggests AI bubble bursting and to expect major market collapse

https://www.london.edu/think/ai-bubble-about-to-burst
2•nreece•56m ago•0 comments

Ask HN: What do you think of AI powered universal mind control?

1•analog8374•1h ago•3 comments

Sleep (Album)

https://en.wikipedia.org/wiki/Sleep_(album)
2•Ariarule•1h ago•0 comments

My context engineering changed for Gemini 4 Neon

https://www.philschmid.de/gemini-4-neon-context-engineering
3•gmays•1h ago•1 comments

Ayn Rand Scores the Alexander-Pinker Brawl

https://hollisrobbinsanecdotal.substack.com/p/ayn-rand-scores-the-alexander-pinker
2•HR01•1h ago•0 comments

Have they solved p vs. NP?

https://havetheysolvedpvsnp.com/?lang=en
3•akliemke•1h ago•0 comments

Every Layer Removes a Reading

https://aguilar-pelaez.co.uk/every-layer-removes-a-reading.html
1•pombo•1h ago•0 comments

Safe Studio: Visual Basic for the Web in 2027. (Happy Thanksgiving Everyone)

https://github.com/SafeScript/studio
2•EGreg•1h ago•1 comments

Show HN: EarthCiv – Civ-style maps of real countries, on one world map

https://earthciv.org
2•manpreetsgarha•1h ago•0 comments