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.

AI job disruption is here, and most don't claim unemployment benefits

https://fortune.com/article/ai-layoffs-unemployment-benefits-eligibility-sam-altman-dario-amodei/
1•01-_-•1m ago•0 comments

Palantir co-founder gets student blacklisted by DOJ

https://twitter.com/ggreenwald/status/2066195825407971692
1•sosomoxie•3m ago•0 comments

Email, Lifecycle and CRM Marketing Knowledge Base

https://crmknowledgebase.com/
1•iamacyborg•4m ago•0 comments

Route optimization engine, 100% in Rust and can run 100% offline

https://twitter.com/m_punnerud/status/2066100400076337598
1•punnerud•5m ago•0 comments

Image of 3D printer-produced gun

https://pantagraph.com/image_f1f1a43d-6b07-4b0f-8ed7-b052c0bcf2f4.html
1•01-_-•7m ago•0 comments

Show HN: Fable clone Google in 2hr but return TikTok-style video instead of text

https://www.bluhe.ai
2•dhavd•8m ago•1 comments

Burpwn – Burp Suite but its for AI agents (it works)

https://github.com/own2pwn-fr/burpwn
2•own2pwn-fr•11m ago•0 comments

Show HN: Discover Wikipedia articles popular on Hacker News

https://www.orangecrumbs.com/
2•octopus143•11m ago•0 comments

Jane Elliott: Brown Eyes, Blue Eyes

https://www.lowellmilkencenter.org/programs/projects/view/brown-eyes-blue-eyes/hero
1•evo_9•11m ago•0 comments

Text Diffusion – Brendan O'Donoghue, Google DeepMind [video]

https://www.youtube.com/watch?v=r305-aQTaU0
2•Topfi•16m ago•0 comments

Feedback on Miz Framework GitHub

3•sajjadws•16m ago•0 comments

A clear fishing wire is tied around the island of Manhattan

https://old.reddit.com/r/Damnthatsinteresting/comments/boea4v/a_clear_fishing_wire_is_tied_around...
6•vinnyglennon•18m ago•0 comments

Anthropic Models in Microsoft Online Services

https://learn.microsoft.com/en-us/microsoft-365/copilot/connect-to-ai-subprocessor
2•sntran•18m ago•0 comments

Please Stay Calm and Listen

https://zhenyi.gibber.blog/please-stay-calm-and-listen
3•zhenyi•19m ago•0 comments

Oracle is changing free tier limits. Update by the 15th to avoid charges

https://old.reddit.com/r/selfhosted/comments/1u4wqnj/psa_oracle_is_changing_free_tier_limits_upda...
3•wrxd•20m ago•0 comments

Real-time tracker of AI-driven job displacement worldwide

https://ailayoffs.live/
2•streamer45•20m ago•0 comments

Meta moves to unwind $2B Manus deal after Beijing's demand

https://techcrunch.com/2026/06/13/meta-reportedly-moves-to-unwind-2b-manus-deal-after-beijings-de...
2•geox•22m ago•0 comments

Double, BigDecimal, or Fixed-Point?

https://blog.frankel.ch/bigdecimal-vs-double/
2•theanonymousone•22m ago•0 comments

RFC 5218: What Makes for a Successful Protocol? (2008)

https://www.rfc-editor.org/info/rfc5218/
2•themaxdavitt•22m ago•0 comments

Git merges can be better

https://brandondong.github.io/blog/git_merges_can_be_better/
2•thunderbong•23m ago•0 comments

The Future of Work Is Getting Out of the Way

https://julienreszka.com/blog/the-future-of-work-is-getting-out-of-the-way/
2•julienreszka•25m ago•0 comments

FFI in Miri at 8000 segfaults per second [video]

https://www.youtube.com/watch?v=9X-ngiKo_Y0
2•nia-e•25m ago•0 comments

Show HN: The Engineer – Drive Claude Code from a GitHub Issue to a Merged PR

https://github.com/FarzamMohammadi/the-engineer
6•m_farzam•30m ago•0 comments

Gemma 4 for Telephony: From Two AI Models to One – Until I Switched to Chinese

https://medium.com/@j.y.weng/gemma-4-for-telephony-i-replaced-two-ai-models-with-one-in-my-voice-...
2•fidotron•32m ago•0 comments

A frontier without an ecosystem is not stable

https://twitter.com/satyanadella/status/2066182223213293753
2•jger15•33m ago•0 comments

Defensible Deep Research from Open-Weight Models

https://thinkwright.ai/two-phase-research
2•oceanwaves•33m ago•0 comments

Show HN: Landmark AI and ML research explained, redrawn, animated

https://research.rudrite.com/
3•mridul_sahu•36m ago•0 comments

Show HN: Kage – Shadow any website to a single binary for offline viewing

https://github.com/tamnd/kage
23•tamnd•39m ago•13 comments

Prop-for-that: CSS reacts, JavaScript just listens

https://prop-for-that.netlify.app/
2•tobr•40m ago•0 comments

PDFs Don't Have One Meaning: Measuring Semantic Drift Across 24,824 Files

https://pqpdf.com/research.php
2•pqpdf•41m ago•0 comments