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.

Mexico became a surprise cornerstone of America's AI boom

https://www.ft.com/content/ac3274ac-86ca-46ac-bc7b-029fb9dcd173
1•alephnerd•39s ago•0 comments

The Math Superstar Who's Terrified of AI–and Just Took a Job at OpenAI

https://www.wsj.com/tech/ai/openai-jacob-tsimerman-fields-medal-ai-safety-391d0f79
1•fortran77•41s ago•1 comments

Mechanical Strain Creates Chirality

https://www.mpsd.mpg.de/1208949/2026-07-cavalleri-nature
1•hhs•43s ago•0 comments

Bestprompts.sh – Best AI Prompts

https://bestprompts.sh
1•goldkey•1m ago•0 comments

The Rise and Fall of Leopold Aschenbrenner (Situational Awareness)

https://www.reddit.com/r/agi/comments/1vc33k1/the_rise_and_fall_of_leopold_aschenbrenner/
2•johnbarron•3m ago•0 comments

Show HN: Optimize circadian rhythms by using iPhone as a light meter

https://www.impulsearc.com/wavelength/
1•bkazez•3m ago•0 comments

Show HN: Understanding the ReMarkable Coordinate System

https://scrybble.ink/blog/understanding-remarkable-coordinate-system
1•azeirah•4m ago•0 comments

AI opens new era in cognitive studies of wild primates

https://news.emory.edu/features/2026/07/ai-opens-new-era-cognitive-studies-wild-primates
1•hhs•5m ago•0 comments

Show HN: I built a free Open Graph image designer

https://mosaicora.io/tools/og-image-designer
1•d-atanasov•15m ago•0 comments

Prediction Markets Need Prestige Signals to Fulfill Their Mission

https://www.richardhanania.com/p/prediction-markets-need-prestige
1•paulpauper•16m ago•0 comments

Book Review: The Epic of Gilgamesh

https://www.astralcodexten.com/p/your-book-review-the-epic-of-gilgamesh
1•paulpauper•17m ago•1 comments

Report 08/2026: Collision between two passenger trains near Talerddig

https://www.gov.uk/raib-reports/report-08-slash-2026-collision-between-two-passenger-trains-near-...
1•Jimmc414•20m ago•2 comments

From MIT: AI financial advice is surprisingly good

https://mitsloan.mit.edu/ideas-made-to-matter/ai-financial-advice-surprisingly-good-especially-if...
13•foxtrot8672•20m ago•5 comments

CSB Releases Bio-Lab Conyers Final Investigation Report

https://www.csb.gov/csb-releases-bio-lab-conyers-final-investigation-report/
1•Jimmc414•23m ago•0 comments

RFC 9987: Secure Shell (SSH) Agent Protocol

https://www.rfc-editor.org/rfc/rfc9987.html
2•Jimmc414•24m ago•0 comments

Stateless MCP has recaptured my interest

https://simonwillison.net/2026/Jul/31/stateless-mcp/
5•swyx•24m ago•0 comments

Show HN: Pronto – real‑time wire for AI agents (70k+ feeds connected)

https://pronto.stream/
1•MomohNobert•25m ago•0 comments

Drug reverses autism-like brain changes in adult mice within hours

https://www.uclahealth.org/news/release/drug-reverses-autism-like-brain-changes-adult-mice-within
2•gmays•25m ago•0 comments

Oil Droplets Remodel Themselves, Swallow Their Surroundings Like Living Cells

https://www.nyu.edu/about/news-publications/news/2026/july/oil-droplets-remodel-themselves.html?c...
3•geox•28m ago•0 comments

Was AI Responsible for Finding the Coldcard Security Flaw?

https://cryptonews.net/news/security/33234551/
1•paulpauper•28m ago•1 comments

A discarded SpaceX rocket is on a high-speed collision course with the moon

https://phys.org/news/2026-07-discarded-spacex-rocket-high-collision.html
1•bookmtn•34m ago•0 comments

AT&T CEO Says He Can't Deploy Robocall Blockers Without FCC Approval. He's Wrong (2016)

https://web.archive.org/web/20160602030339/http://consumerist.com/2016/06/01/att-ceo-says-he-cant...
2•dredmorbius•36m ago•1 comments

Show HN: Created a Drink Journal App, Drinqly

https://drinqly.io/welcome
1•haileivera•37m ago•0 comments

Docs in 2026: Feed the machine, then guide the humans

https://passo.uno/tech-writing-role-split/
1•theletterf•42m ago•0 comments

Karakeep Release 0.33.1

https://github.com/karakeep-app/karakeep/releases/tag/v0.33.1
1•toomuchtodo•42m ago•1 comments

Rcarmo/umcp: A micro MCP core (asyncio and synchronous)

https://github.com/rcarmo/umcp
1•rcarmo•42m ago•0 comments

Laravel LSP, Pest 5, Laracon US 2026 – A Day with Laravel #062

https://a-day-with-laravel.happyto.dev/p/laravel-lsp-pest-5-laracon-us-2026-a-day-with-laravel-062
1•happytodev•43m ago•0 comments

I am building a cool OS like simulator based on Corgis

https://github.com/ILikeLinux123/Corgi-OS
2•Linuxisgood•44m ago•0 comments

Atom is better than RSS, in ways that matter

https://chrismorgan.info/atom%3Erss
5•frizlab•45m ago•0 comments

2025 Review of Notorious Markets for Counterfeiting and Piracy [pdf]

https://ustr.gov/sites/default/files/files/Press/Releases/2026/2025%20Notorious%20Markets%20List%...
2•zebreus•49m ago•0 comments