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.

Avoidance 1.0: Making Every Run Fairer

https://simonskinner.me/blog/avoidance-1-0-making-every-run-fairer
1•vultuk•2m ago•0 comments

Beaver who escaped to find mate welcomes first kit

https://www.bbc.com/news/articles/c70gz4zpv97o
1•1659447091•3m ago•0 comments

Trump administration is dictating access to frontier AI models

https://www.cnbc.com/2026/07/17/white-house-ai-access-anthropic-openai.html
1•tosh•3m ago•0 comments

Warum fällt Abnehmen ab 35 plötzlich so schwer?

https://substack.com/profile/524692702-ketosana94/note/c-296895670
1•ketosana94•5m ago•0 comments

Pelican on a bicycle is a good benchmark, right?

https://playcode.io/blog/macbook-svg-benchmark
1•ianberdin•7m ago•0 comments

Show HN: A modern sample database for learning SQL – replace the Sakila database

https://github.com/rozhnev/university-db
1•rozhnev•8m ago•0 comments

Trump pitched $100k monthly fee for faster feed of US president's posts

https://www.reuters.com/business/media-telecom/trump-media-pitched-100000-monthly-fee-fast-feed-u...
1•Alien1Being•8m ago•0 comments

GitRoot

https://gitroot.dev/
1•ilreb•9m ago•0 comments

OT Credential Abuse: They Logged In. They Didn't Break In

https://www.emberot.com/resources/blog/ot-credential-abuse/
1•TheWiggles•13m ago•0 comments

Profile: GRU cyber and hybrid threat operations

https://www.gov.uk/government/publications/profile-gru-cyber-and-hybrid-threat-operations/profile...
1•azalemeth•14m ago•0 comments

I was tired of random feeds so I created my personal algorithm

1•Satya29•17m ago•0 comments

Glamorous Toolkit

https://gtoolkit.com//
1•Tomte•17m ago•0 comments

Show HN: ShellStack – Interactive cybersecurity learning platform with 280 tool

https://github.com/shlokkokk/ShellStack
1•shlokkshahh•21m ago•0 comments

12 Factor Agents

https://github.com/humanlayer/12-factor-agents
1•veleon•21m ago•0 comments

Agent-compiler: scripts for your recurring workflows (60–80% lesser tool calls)

https://www.npmjs.com/package/@woustachemaxd/agent-compiler
1•woustachemaxd•22m ago•0 comments

Show HN: Xata scratch – a branch for each psql session

https://xata.io/blog/the-instant-database-scratchpad-xata-scratch
1•tudorg•24m ago•0 comments

Startup credits hiding your real burn rate

https://economi.co/learn/cloud-credits-hiding-your-burn
1•pelle•25m ago•0 comments

Europe 2027, or how Europe can win

https://kdev.home.arpa/posts/europe-2027/
1•RedTachyon•26m ago•0 comments

Vikram-1: India's first private space rocket by Skyroot to carry diamond flower

https://www.bbc.com/news/articles/clyekv7rld3o
2•breve•27m ago•0 comments

The Man Who Killed Google Search (2024)

https://www.wheresyoured.at/the-men-who-killed-google/
2•thunderbong•30m ago•0 comments

AI Gets Trapped in a Circular Loop on Climate Science

1•radicon•33m ago•0 comments

Why is the determinant like that? [video]

https://www.youtube.com/watch?v=Sv7VseMsOQc
1•penguin_booze•35m ago•0 comments

Show HN: A done-for-you subscription app service for Instagram creators

https://www.officeos.co
1•Harro123•37m ago•0 comments

The 20x plan is now the 10x plan, and the 5x plan is the 2.5x plan

https://xcancel.com/bilawalsidhu/status/2078312397069009403
2•phaser•38m ago•0 comments

London Underground users should know about toxic dust risk, whistleblower says

https://www.theguardian.com/uk-news/2026/jul/18/london-underground-passengers-should-know-about-t...
2•YeGoblynQueenne•38m ago•0 comments

The Joy of Being Wrong

https://shortdiv.com/posts/the-joy-of-being-wrong/
1•haritha1313•39m ago•0 comments

Vibe Maintainer by Steve Yegge

https://steve-yegge.medium.com/vibe-maintainer-a2273a841040
2•haritha1313•40m ago•0 comments

Chasing the AI High: Clay, Kilns, and the Red Queen's Race

https://blog.moot.dev/chasing-the-ai-high-clay-kilns-and-the-red-queens-race/
1•haritha1313•40m ago•0 comments

Skyroot Aerospace launches India's first private orbital rocket

https://www.reuters.com/science/indias-skyroot-launches-vikram-1-first-private-orbital-rocket-mis...
3•talonx•42m ago•0 comments

Qubes OS Security in the Public Record

https://arxiv.org/abs/2607.14587
1•sciences44•47m ago•0 comments