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.

Show HN: Todowing – A browser extension that shows Todoist sub-tasks inline

https://todowing.com/
1•vivgui•3m ago•0 comments

AI's new political donor class is outspending Big Tech's last one

https://sfstandard.com/2026/07/18/ai-s-new-political-donor-class-already-outspending-big-tech-s-l...
2•roddylindsay•4m ago•0 comments

Polybius: The Most Dangerous Arcade Game Ever Made. A Dive into Some Arcade Lore

https://lowendbox.com/blog/polybius-the-most-dangerous-arcade-game-ever-made-a-deep-dive-into-som...
1•bananamogul•5m ago•0 comments

SadServer Solutions

https://www.vladimircicovic.com/2024/06/sadserver-solutions
1•taubek•8m ago•0 comments

Strange loops: from autological words and quines to consciousness

https://www.youtube.com/watch?v=MFR6SMV64h4
1•modinfo•8m ago•0 comments

The Human Worker as Civilizational Nexus

https://read.lukeburgis.com/p/the-human-worker-as-civilizational
1•momentmaker•11m ago•0 comments

Food Never Come – no calories, no bill, just dopamine

https://foodnevercome.com/
1•appreciatorBus•11m ago•0 comments

Stately Agent: Build agents as state machines

https://github.com/statelyai/agent
1•handfuloflight•11m ago•0 comments

Apple bug crashes apps that display Telugu character (2018)

https://www.theguardian.com/technology/2018/feb/16/apple-bug-crashes-apps-that-display-telegu-cha...
1•thunderbong•14m ago•0 comments

Show HN: Warden – authorization gateway for agentic RAG

https://github.com/geminimir/warden
1•geminimir•15m ago•0 comments

Power outage for half of SF (again)

https://pgealerts.alerts.pge.com/outage-tools/outage-map/
2•ricberw•17m ago•0 comments

Tenley Albright

https://en.wikipedia.org/wiki/Tenley_Albright
1•petethomas•18m ago•0 comments

Better Than Free: How to Differentiate in the Age of AI

https://tim.blog/2026/07/17/better-than-free/
1•Michelangelo11•20m ago•0 comments

Studying the Role of Sandboxing for AI Control

https://www.lesswrong.com/posts/6wo4weeujruLXrnsT/studying-the-role-of-sandboxing-for-ai-control
1•joozio•22m ago•0 comments

Show HN: Worldle Game, but Multiplayer Version

https://landfall.manojvivek.workers.dev
1•manojvivek•24m ago•0 comments

Instagram, Ritz-Carlton, Bourbon

https://www.marginpoints.com/issues/instagram-ritz-carlton-bourbon
2•historian1066•27m ago•0 comments

How to Prepare for Chat Control

https://homehack.nl/how-to-prepare-for-chat-control/
3•speckx•30m ago•1 comments

See How Trump's Truth Social Posts Move Stocks

https://www.wsj.com/politics/policy/see-how-trumps-truth-social-posts-move-stocks-5ee3611b
4•thm•31m ago•1 comments

Chessperiment – Create and play custom chess variants in the browser

https://chessperiment.app/en
2•ItzMassel•34m ago•0 comments

Ancient Princesses Were Weapon-Wielding Badasses, Scientists Discover

https://www.404media.co/ancient-princesses-were-weapon-wielding-badasses-scientists-discover/
2•Brajeshwar•34m ago•0 comments

Show HN: RL Environment for Sheep Hearding

https://github.com/midhunharikumar/sheepdog-rl
1•blackboattech•36m ago•0 comments

Show HN: Textcaster, a feeds-native social timeline you can self-host

https://textcaster.app
1•rmdes•40m ago•0 comments

Nvidia's CMP 170HX Full Compute and Memory (80GB) may be unlockable via exploit

https://old.reddit.com/r/LocalLLaMA/comments/1uxqccx/psa_nvidias_cmp_170hx_full_compute_and_memor...
1•qingcharles•41m ago•0 comments

Renovate or Rebuild? Architectural techniques for the million euro tradeoff

https://www.youtube.com/watch?v=8ScSAh0hu0I
2•RebootStr•41m ago•0 comments

Cyberchase: For Parents and Teachers

https://www.pbs.org/parents/shows/cyberchase
2•lioeters•42m ago•0 comments

Anthropic runs like Wile E. Coyote into the brick wall of consciousness research

https://www.theintrinsicperspective.com/p/anthropic-runs-like-wile-e-coyote
4•paulpauper•44m ago•0 comments

Greatest Failures of Orson Welles

https://www.honest-broker.com/p/the-10-greatest-failures-of-orson
1•paulpauper•44m ago•0 comments

Time Is Always Different

https://www.overcomingbias.com/p/this-time-is-always-different
1•paulpauper•45m ago•0 comments

A Few Notes on the Origins of 'Pitmaston Pine Apple'

https://orchardnotes.com/2026/06/04/a-few-notes-on-the-origins-of-pitmaston-pine-apple/
1•wawayanda•46m ago•0 comments

Child's next teacher could be a sex robot

https://gizmodo.com/your-childs-next-teacher-could-be-a-sex-robot-2000787284
2•mikelgan•47m ago•1 comments