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.

What is mixotrophy, and why does it matter?

https://dantheclamman.blog/2026/03/16/what-is-mixotrophy-and-why-does-it-matter/
1•BigTTYGothGF•18s ago•0 comments

Today's Market = 1999 Capex and 2008 Credit

https://investor.fm/todays-market-1999-capex-2008-credit/
1•mapping365•2m ago•0 comments

Vale CLI: Linter for Prose

https://github.com/vale-cli/vale
1•joeyhage•2m ago•0 comments

Amazon finds cases of AI causing runaway spending on tech projects

https://www.ft.com/content/77baac40-d803-4084-94f3-a133653072cf
1•i2km•4m ago•1 comments

Ejabberd 26.07 / ProcessOne – Erlang Jabber/XMPP/Matrix Server – Communication

https://www.process-one.net/blog/ejabberd-26-07/
1•neustradamus•5m ago•0 comments

Exploring the "Dario and Amanda" Prompt

https://alec.is/posts/exploring-the-dario-and-amanda-prompt/
1•arm32•5m ago•0 comments

TaskLoco Swears Sticky Notes on a Storyboard App Is the Secret

https://www.taskloco.com/
1•taskloco_nyc•6m ago•1 comments

Show HN: ResiliReplay - Chaos testing for AI agents and MCP servers

https://github.com/aliengineering-byte/resilireplay
1•ali110v•6m ago•0 comments

Anthropic says its own AI models breached three companies during security tests

https://techcrunch.com/2026/07/30/anthropic-says-its-own-ai-models-breached-three-companies-durin...
1•GavinAnderegg•10m ago•0 comments

Ask HN: After 8 Years of Failed Apps, Should I Give Up?

1•asoomi07•11m ago•0 comments

Ceuta, an autonomous city of Spain in North Africa

https://en.wikipedia.org/wiki/Ceuta
1•kaonwarb•12m ago•0 comments

Uninsured Patients Rise Sharply, Hospitals Report, Citing Obamacare Cuts

https://www.nytimes.com/2026/07/30/business/aca-obamacare-health-insurance.html
1•elo2000•14m ago•0 comments

Top 1% of U.S. nonprofits account for 75% of revenue

https://data.charitysense.com/blog/the-4-trillion-blind-spot
3•mtweak•17m ago•1 comments

Tesla Weighs Sale of China Business to Pave Way for Potential SpaceX Merger

https://www.wsj.com/business/autos/tesla-weighs-sale-of-china-business-to-pave-way-for-potential-...
4•JumpCrisscross•20m ago•0 comments

Anthropic finds that its models also compromised external systems during testing

https://www.axios.com/2026/07/30/anthropic-mythos-security-testing
3•nevir•22m ago•1 comments

Anthropic's AI models hacked 3 organizations during testing

https://www.politico.com/news/2026/07/30/anthropic-ai-rogue-hacks-01018741
2•tejohnso•27m ago•0 comments

Show HN: Widen – Open-source Mac Postgres GUI with local or cloud text-to-SQL

https://widen.dev/
5•thedreammachine•29m ago•0 comments

Canada celebrates new bridge to US while fighting Trump tariffs

https://apnews.com/article/canada-detroit-new-bridge-4b22dc7fc282467a363a247fe590f334
2•gmays•30m ago•0 comments

'The Boss Wants This Money': Inside Trump's Unprecedented Fundraising Operation

https://www.wsj.com/politics/policy/trump-donations-company-fundraising-1e34a78f
3•petethomas•31m ago•0 comments

Showdown Elo: weighted Elo for baseball

https://showdown.tanji.systems/#almanac
2•merriman-xyz•33m ago•0 comments

OpenAI's Hack of Hugging Face

https://www.newyorker.com/news/the-lede/inside-openai-hack-of-hugging-face
2•bwoah•35m ago•1 comments

Show HN: Stash – native Mac Markdown notes

https://staunchapps.com/stash/
1•andrewjk•39m ago•0 comments

Uefa agrees to boycott FIFA competitions if World Cup sell-off plans proceed

https://www.theguardian.com/football/2026/jul/30/uefa-agrees-to-boycott-fifa-competitions-if-worl...
1•rguiscard•41m ago•0 comments

Iran struck Amazon data centers again amid widening war, satellites show

https://arstechnica.com/gadgets/2026/07/satellites-spot-new-war-damage-to-amazon-data-centers-and...
5•pseudolus•45m ago•0 comments

Strategic Oil Reserves Down to a Record Low Two-Week Supply

3•megamike•46m ago•0 comments

The Biggest Thing We've Lost Since the Early Internet [video]

https://www.youtube.com/watch?v=3CAcB-ORBOE
1•pierres7•47m ago•0 comments

Flock surveillance cameras can pose a crash risk for drivers, US experts say

https://www.theguardian.com/us-news/2026/jul/30/controversial-flock-ai-surveillance-camera-risk
4•pseudolus•47m ago•0 comments

Show HN: Great Spectations, the Spec Checker

https://greatspectations.org
2•RustyRussell•49m ago•0 comments

Anthropic Says Its A.I. Systems Broke into Computers at 3 Organizations

https://www.nytimes.com/2026/07/30/technology/anthropic-ai-hack.html
5•ajax33•52m ago•0 comments

'Lasting peace': Hamas, Trump announce 'complete disarmament'

https://www.theaustralian.com.au/world/hamas-agrees-complete-disarmament-announces-trump/news-sto...
1•asdefghyk•52m ago•4 comments