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.

[STORY] Samsara

https://slatestarcodex.com/2019/11/04/samsara/
1•barry-cotter•4m ago•0 comments

Pg_stat_ch: PostgreSQL Query Telemetry Exporter to ClickHouse

https://github.com/ClickHouse/pg_stat_ch
1•saisrirampur•5m ago•0 comments

Ancient Coins: What About Spartan Coins?

https://coinweek.com/ancient-spartan-coins/
1•thunderbong•11m ago•0 comments

Baby Belt Pro – DIY open-source belt 3D printer

https://www.printcepts.com/babybeltpro
1•kmmbvnr_•12m ago•0 comments

Show HN: Minesweeper.free – Play minesweeper online free

https://minesweeper.free/
1•nadermx•15m ago•0 comments

New DNA technology leads to identification of Revolutionary War soldier

https://www.cbsnews.com/news/revolutionary-war-soldier-identified-john-doe-technology-camden/
1•jnord•19m ago•0 comments

Would You Let A.I. Michael Caine Read You the 'Odyssey'?

https://www.nytimes.com/2026/06/23/books/michael-caine-odyssey-ai.html
1•bookofjoe•25m ago•1 comments

You Feel Exhausted Without Having "Done" Anything Physically

https://facilethings.com/blog/en/decision-fatigue
2•vinhnx•28m ago•0 comments

If you're a button, you have one job

https://unsung.aresluna.org/if-youre-a-button-you-have-one-job/
2•nozzlegear•34m ago•0 comments

A rate-control scroll gesture for mobile reading

https://github.com/somekiwiplease/ThumbStick
1•somekiwiplease•47m ago•0 comments

The Dark Side of Open Source: SSPL, BSL, and the License-Change Problem

https://linuxidx.com/posts/the-dark-side-of-open-source-real-problems-no-hype.html
2•infoozle•53m ago•0 comments

Efficacy and Safety of Psilocybin in Treatment-Resistant Major Depression

https://jamanetwork.com/journals/jamapsychiatry/fullarticle/2846478
2•cpncrunch•56m ago•0 comments

Deterministic AI Auditing

https://claude.ai/new
1•whyharsh_•57m ago•0 comments

Show HN: Inches to MM converter for manufacturing and hardware checks

https://inches-to-mm.com
1•robot1996•1h ago•1 comments

We Scaled PgBouncer to 4× Higher Throughput

https://clickhouse.com/blog/pgbouncer-clickhouse-managed-postgres
1•saisrirampur•1h ago•0 comments

Anthropic performing prompt injection on its users

https://old.reddit.com/r/LLMDevs/comments/1udpw9h/just_got_this_response_from_claude_what_is_going/
5•murderfs•1h ago•0 comments

AI CLI that fixes broken dev tool installs

https://murderszn.github.io/sprout/
1•murderszn•1h ago•0 comments

Record-breaking solo rower Kelsey Pfendler arrives in Hawaii

https://www.hawaiinewsnow.com/2026/07/04/record-breaking-solo-rower-kelsey-pfendler-arrives-hawaii/
2•MaysonL•1h ago•0 comments

Show HN: Two-tier-memory – queryable long-term memory for AI coding agents

https://github.com/tadelstein9/two-tier-memory
1•tadelstein•1h ago•0 comments

Ubuntu 24.04 on Intel Mac

https://github.com/mozekin/apple-bce-drv/blob/aur/INSTALL-UBUNTU.md
3•mozzinator•1h ago•0 comments

Review Frontloading: Do You Love This App? Y/N

https://functionmouse.com/frontloading/
2•functionmouse•1h ago•0 comments

Bugs happen: The easy way to compare solo PQ to ECC+PQ

https://blog.cr.yp.to/20260704-bugs.html
2•zdw•1h ago•0 comments

If I designed a Commodore Phone

https://retrogamecoders.com/if-i-designed-a-commodore-phone/
3•ibobev•1h ago•1 comments

Egg consumption inversely correlated with Alzheimer's

https://pubmed.ncbi.nlm.nih.gov/42002260/
35•natbennett•1h ago•11 comments

My side quest measuring input latency with VK_EXT_present_timing

https://themaister.net/blog/2026/07/02/my-side-quest-measuring-input-latency-with-vk_ext_present_...
2•ibobev•1h ago•0 comments

Spritework on the ZX Spectrum: Rendering

https://bumbershootsoft.wordpress.com/2026/07/04/spritework-on-the-zx-spectrum-rendering/
2•ibobev•1h ago•0 comments

Benzo(a)pyrene

https://en.wikipedia.org/wiki/Benzo(a)pyrene
3•libpcap•1h ago•0 comments

Trying to buy a sandwich with HTTP 402

https://andrewacomb.substack.com/p/trying-to-buy-a-sandwich-with-http
4•acombandrew•1h ago•1 comments

Returning to Zig

https://gracefulliberty.com/articles/return-to-zig/
11•birdculture•1h ago•0 comments

CATL is building more than 200 battery swap stations every month

https://electrek.co/2026/07/04/catl-is-building-more-than-200-battery-swap-stations-every-month/
7•breve•2h ago•1 comments