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•8mo ago

Comments

llm-exe•8mo 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•8mo 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.

Rugs of War

https://rugsofwar.wordpress.com/
1•dmbche•5m ago•0 comments

Ask HN: How does YC / HN think about founder voting splits vs. equity splits?

2•cofounder1999•6m ago•0 comments

How long would you survive with no DNA? [video]

https://www.youtube.com/watch?v=s3oLIDaElaE
1•surprisetalk•9m ago•0 comments

Fundamental Engineering Principles

https://blog.tdhttt.com/post/fundamental-engineering-principles/
1•tdhttt•12m ago•0 comments

Canada's Prime Minister Mark Carney's Full Speech at Davos

https://www.cbc.ca/news/politics/mark-carney-speech-davos-rules-based-order-9.7053350
1•qkeast•13m ago•1 comments

Machine with Concrete – Arthur Ganson [video]

https://www.youtube.com/watch?v=5q-BH-tvxEg
1•o4c•14m ago•0 comments

DevOps Didn't Fail – We Just Gave It the Tools It Deserved

https://devops.com/devops-didnt-fail-we-just-finally-gave-it-the-tools-it-deserved/
1•milkglass•16m ago•0 comments

Libbbf: Bound Book Format, A high-performance container for comics and manga

https://github.com/ef1500/libbbf
2•zdw•19m ago•0 comments

Google Health AI Overviews Cite YouTube More Than Any Hospital Site

https://www.searchenginejournal.com/google-health-ai-overviews-cite-youtube-more-than-any-hospita...
1•randycupertino•26m ago•0 comments

OpenFlexure Microscope

https://openflexure.org/projects/microscope/
1•o4c•29m ago•1 comments

A series of distributed systems challenges brought to you by Fly.io

https://fly.io/dist-sys/
3•meistro•31m ago•0 comments

I got into an argument on Discord about how inefficient CBR/CBZ is, so I wrote

https://old.reddit.com/r/selfhosted/comments/1qi64pr/i_got_into_an_argument_on_discord_about_how/
1•todsacerdoti•35m ago•0 comments

Virology Lectures 2025 [video]

https://www.youtube.com/watch?v=3pX0x3mC4Io&list=PLGhmZX2NKiNm2iEUtVslIUHTW9i2zAG72
2•shpx•36m ago•0 comments

Drift

https://github.com/dadbodgeoff/drift
1•handfuloflight•37m ago•0 comments

Using RL to Double an Agent's Effectiveness in Production Debugging

https://www.dbow.me/rl.html
4•anyekwest•44m ago•0 comments

Show HN: DoceraX – Open "Please wait cannot display this document" PDFs Mac

http://fastHNReader.com
1•coolwulf•46m ago•0 comments

Can AI Pass Freshman CS? [video]

https://www.youtube.com/watch?v=56HJQm5nb0U
1•thethirdone•50m ago•1 comments

Explore medieval life and death with these 5 fun interactive maps (2023)

https://weirdmedievalguys.substack.com/p/explore-medieval-life-and-death-with
1•crescit_eundo•50m ago•0 comments

Migrating 13,000 Comments from Drupal to Hugo

https://www.jeffgeerling.com/blog/2026/migrating-13000-comments-from-drupal-to-hugo/
2•zdw•51m ago•0 comments

An 800 year old prayer book that's decorated with puns (2023)

https://weirdmedievalguys.substack.com/p/an-800-year-prayer-book-thats-decorated
3•crescit_eundo•52m ago•0 comments

Air Force One Returns to Joint Base Andrews After 'Minor Electrical Issue'

https://www.wsj.com/livecoverage/greenland-trump-tariffs-trade-eu/card/air-force-one-returns-to-j...
4•thm•53m ago•1 comments

How Birds Got Human Names (2025)

https://weirdmedievalguys.substack.com/p/how-birds-got-human-names
1•crescit_eundo•55m ago•0 comments

Why Not Tail Recursion?

https://futhark-lang.org/blog/2026-01-20-why-not-tail-recursion.html
2•todsacerdoti•59m ago•0 comments

Incremental AI Adoption for E-Commerce – Arcturus Labs

http://arcturus-labs.com/blog/2026/01/18/incremental-ai-adoption-for-e-commerce/
1•JnBrymn•1h ago•0 comments

Everything Moe

https://ianbarber.blog/2026/01/20/everything-moe/
1•phpencil•1h ago•0 comments

Shingles vaccine may help keep older people biologically younger

https://www.thetimes.com/uk/science/article/shingles-vaccine-news-bz55zstn5
7•ValentineC•1h ago•1 comments

Disaster planning for regular folks (2015)

https://lcamtuf.coredump.cx/prep/index-old.shtml
42•AlphaWeaver•1h ago•16 comments

Create video resumes without any recording - perfectclips.netlify.app

1•perfectclips•1h ago•1 comments

DOGE employees may have improperly accessed social security data, DOJ says

https://www.axios.com/2026/01/20/doge-employees-social-security-information-court-filing
6•handfuloflight•1h ago•2 comments

ChatGPT recommended a scam and I spent $300

https://old.reddit.com/r/soylent/comments/1qii7d5/soylent_aus_is_this_a_scam_i_just_spent_so_much/
2•aendruk•1h ago•0 comments