frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

LLM functions in TypeScript: a composable pattern for prompt/LLM/parse/execute

https://medium.com/llm-exe
5•llm-exe•1mo ago

Comments

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

Bcachefs: On Pending Changes

https://www.patreon.com/posts/132658586
1•cayley_graph•4m ago•0 comments

Sutskever to Lead Safe Superintelligence after Meta poaches CEO Gross

https://www.reuters.com/business/sutskever-lead-safe-superintelligence-after-meta-poaches-ceo-gross-ai-talent-war-2025-07-03/
2•nsoonhui•9m ago•0 comments

Scientists Warn US Will Lose a Generation of Talent Because of Trump Cuts

https://www.theguardian.com/us-news/2025/jul/03/national-science-foundation-trump-cuts
3•andrewl•11m ago•1 comments

Building a message board for Claude, learning MCP along the way

https://andrewperkins.com.au/a-message-board-for-claude/
2•echoperkins•11m ago•0 comments

"The Tactful Saboteur" by Frank Herbert

https://archive.org/details/Galaxy_v23n01_1964-10
1•nativeit•13m ago•0 comments

Ask HN: How to make money with SaaS without network or VC funding?

2•squareloop•16m ago•0 comments

Counting at Scale

https://priyavr.at/blog/hyperloglog/
1•prvt•17m ago•1 comments

Jane Street Curbed in India Markets After Alleged Illegal Gain

https://www.bloomberg.com/news/articles/2025-07-04/india-bars-jane-street-from-accessing-its-securities-market
1•anonu•17m ago•2 comments

The surprisingly deep rabbit hole of Rust's temporaries

https://taping-memory.dev/temporaries-rabbit-hole/
2•Bogdanp•19m ago•0 comments

My open source project was stolen and relicensed by a YC company

https://twitter.com/soham_btw/status/1940952786491027886
6•sohzm•20m ago•1 comments

Trump Big Beautiful Bill Ends $7,500 EV Credit by September

https://gearmusk.com/2025/07/04/trump-big-beautiful-bill-ends/
12•maxmarrfun•32m ago•0 comments

Why Cloudflare wants AI companies to pay for content

https://techcrunch.com/podcast/why-cloudflare-wants-ai-companies-to-pay-for-content/
1•codexy•33m ago•0 comments

Neanderthals operated "fat [extraction] factory" 125,000 years ago

https://archaeologymag.com/2025/07/neanderthals-operated-fat-factory-125000-years-ago/
3•hilux•40m ago•0 comments

Nvidia briefly on track to become most valuable company

https://www.reuters.com/business/nvidia-set-become-worlds-most-valuable-company-history-2025-07-03/
2•geox•42m ago•0 comments

Artificial Intelligence in China

https://merics.org/de/china-tech-observatory/artificial-intelligence
2•walterbell•48m ago•0 comments

Show HN: SWC Plugin SVG as React Component

https://github.com/joaoneto/swc-plugin-svg-component
1•joaoneto•54m ago•0 comments

Our Fullstack Architecture: Eta, Htmx, and Lit

https://www.lorenstew.art/blog/eta-htmx-lit-stack
4•Bogdanp•55m ago•0 comments

RP2350-PiZero Pairs RP2350 Microcontroller with Raspberry Pi Zero Form Factor

https://linuxgizmos.com/rp2350-pizero-pairs-rp2350-microcontroller-with-raspberry-pi-zero-form-factor/
3•chsum•1h ago•0 comments

GrapheneOS warns ICEBlock users of court order risk

https://bsky.app/profile/grapheneos.org/post/3lswujex4e22w
8•diggan•1h ago•0 comments

Making a computer out of marbles and wood [video]

https://www.youtube.com/watch?v=jnB7S8_Pfqo
4•m-hodges•1h ago•0 comments

Senescence-resistant human cells counter aging in primates

https://www.cell.com/cell/abstract/S0092-8674(25)00571-9
2•vagabund•1h ago•1 comments

Design of Q8bot: A Miniature, Low-Cost, Dynamic Quadruped Built with Zero Wires [video]

https://www.youtube.com/watch?v=0dk7lYoITQw
1•surprisetalk•1h ago•0 comments

Ask HN: How are startups dealing with key talent poaching?

1•dbreunig•1h ago•0 comments

The Garden Not at Home

https://laurabrekelmans.substack.com/p/the-garden-not-at-home
1•azeirah•1h ago•0 comments

Why Duolingo switched from Hearts to a battery

https://blog.duolingo.com/duolingo-energy/
1•soheilpro•1h ago•0 comments

Supreme Court Agrees to Hear Cases Involving Transgender Athletes

https://www.nytimes.com/2025/07/03/us/politics/supreme-court-transgender-athletes.html
2•whack•1h ago•1 comments

Kubernetes is a symptom, not a solution

https://andreafortuna.org/2025/06/20/unpopular-opinion-kubernetes-is-a-symptom-not-a-solution
26•gsky•1h ago•13 comments

EPA puts 139 employees on leave after they sign a 'declaration of dissent'

https://www.theguardian.com/us-news/2025/jul/03/epa-employees-administrative-leave
15•mitchbob•1h ago•0 comments

Anarchy in the Database: A Survey and Evaluation of DBMS Extensibility [pdf]

https://www.vldb.org/pvldb/vol18/p1962-kim.pdf
2•matt_d•1h ago•1 comments

Octopuses' 8 Arms Sample Microbiomes

https://www.nytimes.com/2025/06/17/science/octopus-arms-microbiome.html
2•bookofjoe•1h ago•1 comments