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.

Who Is America's Homer?

https://www.plough.com/articles/who-is-americas-homer
1•samclemens•2m ago•0 comments

Book Prizes Don't Work How You Think

https://rebeccamakkai.substack.com/p/book-prizes-dont-work-how-you-think
1•samclemens•2m ago•0 comments

Twain Town, USA

https://theamericanscholar.org/twain-town-u-s-a/
1•prismatic•2m ago•0 comments

Blocking internet on phones improves attention, mental health, and well-being

https://pubmed.ncbi.nlm.nih.gov/39967678/
1•gwintrob•3m ago•0 comments

Foglamp Scan

https://www.foglamp.dev/scan
1•handfuloflight•3m ago•0 comments

The Music of Destruction

https://thebaffler.com/latest/the-music-of-destruction-fuelling
1•lermontov•3m ago•0 comments

Intel's 18A node is officially space-grade

https://www.techpowerup.com/350713/intel-18a-silicon-goes-to-space-with-starfire-processors
1•hereme888•4m ago•0 comments

Show HN: DevQuest – live GitHub profile cards and a daily repository battle

https://github.com/yiaany/devquest
1•hizyyo•5m ago•1 comments

Understanding the Cost of Coding Agents

https://pub.towardsai.net/understanding-the-cost-of-coding-agents-9f4dc0f1e25e
1•allessa•5m ago•0 comments

Australian Government Establishes Office of AI

https://www.abc.net.au/news/2026-07-14/albanese-maps-out-ai-future-introducing-national-framework...
1•hulahoof•7m ago•0 comments

Improving Windows Search Box, with less clutter and more control

https://blogs.windows.com/windows-insider/2026/07/13/improving-windows-search-box-with-less-clutt...
2•quyleanh•10m ago•0 comments

Australia to become the first country to introduce landmark AI framework

https://www.sbs.com.au/news/article/australia-set-to-become-first-country-to-introduce-national-a...
1•defrost•11m ago•0 comments

Show HN: Mechacraft.io – Browser Vehicle Builder

https://mechacraft.io/
1•nickyvanurk•11m ago•0 comments

Immune Cells Get Transformed into Fungus-Fighting Nanoparticles

https://today.ucsd.edu/story/immune-cells-get-transformed-into-fungus-fighting-nanoparticles
1•gmays•11m ago•0 comments

OpenAI's first hardware device will be a portable desktop robot

https://www.machinesociety.ai/p/open-ais-first-hardware-device-will
2•mikelgan•12m ago•2 comments

Can humans hibernate their way to Mars?

https://www.theguardian.com/science/ng-interactive/2026/jul/14/human-hibernation-space-mars
1•howard941•12m ago•1 comments

Planning: A minimal Neovim planning calendar plugin

https://github.com/duguyue100/planning.nvim
1•duguyue100•16m ago•1 comments

Meontology

https://meontology.com/
1•cts-i-cts-d•16m ago•1 comments

The Last of the Three Amigos

https://www.theatlantic.com/ideas/2026/07/lindsey-graham-ukraine-russia/687898/
1•mpweiher•17m ago•0 comments

Satd: Bitcoin Streaming Event Consumption API

https://epochbtc.github.io/satd/streaming.html
1•epochbtc•19m ago•1 comments

Probably check on your smart appliances

https://xeiaso.net/notes/2026/check-your-smart-tv/
1•xena•20m ago•0 comments

L-Cysteine Vitamin Supplement Prevents or Alleviates Hangover Symptoms

https://pubmed.ncbi.nlm.nih.gov/32808029/
1•MrJagil•22m ago•0 comments

Financing the AI boom: from cash flows to debt [pdf]

https://www.bis.org/publ/bisbull120.pdf
2•1vuio0pswjnm7•22m ago•0 comments

The 3-degree limit could be exceeded as early as 2050

https://www.dpg-physik.de/veroeffentlichungen/publikationen/stellungnahmen-der-dpg/klima-energie/...
1•simmerup•27m ago•0 comments

Juicy Canvas UI Framework in TypeScript

https://github.com/ara3d/gratify
1•d166e8•30m ago•1 comments

"Piss Christ" Became a Culture-War Bomb

https://www.newyorker.com/magazine/2026/07/20/the-perfect-moment-isaac-butler-book-review
1•tintinnabula•31m ago•0 comments

Online vs. Offline AI Evals: When to Use Each

https://www.inngest.com/blog/online-vs-offline-ai-evals-when-to-use-each
6•aldersondev•33m ago•1 comments

US Census Population by County 1790 – 2020

https://app.honeycombmaps.com/shared/8VERAg0CP2LFMy4dMcG_jV_bgKC7mPQ8
1•gmays•35m ago•0 comments

Show HN: Pupul, portable and revocable memory you carry into any AI

https://pupulcorp.com/revoke-demo
1•coleaalkire•37m ago•0 comments

Wtdev – deterministic dev-server ports for parallel Git worktrees

https://github.com/Dave-56/wtdev
1•pemakenemi56•38m ago•0 comments