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.

A First-Look Image of M87* from the 2026 EHT Monitoring Campaign

https://iopscience.iop.org/article/10.3847/2515-5172/aebd91
1•ccgreg•3m ago•1 comments

Attention, and the Things We're Avoiding

https://alejandroandr.eu/intimacy-for-hire
1•re6tor•5m ago•0 comments

Microsoft Winding Down Oracle Deal to Rent AI Cloud Capacity

https://www.bloomberg.com/news/articles/2026-11-06/microsoft-is-winding-down-oracle-deal-to-rent-...
1•petethomas•5m ago•0 comments

Measuring how AI agents handle everyday wet-lab science

https://openai.com/index/measuring-how-ai-agents-handle-wet-lab-science/
1•asdfasdf45•5m ago•0 comments

Tesla's Cybertruck heads for an exit after years of hype and division

https://apnews.com/article/cybertruck-cybercab-discontinued-musk-sales-6938a145d365f8e31b26bb9c45...
1•jamesgill•10m ago•0 comments

Combining freelancing, social networking, and AI

https://freelancer.svoxx.com/int/en
1•svoxx•13m ago•0 comments

Developers say they didn't know gov't was buying user data

https://404privacy.com/blog/app-developers-say-they-didnt-know-user-data-went-to-the-government/
1•un-nf•13m ago•1 comments

QueCarrera – Pick a university degree in Madrid, with cut-off grades

https://quecarrera.vercel.app
1•gustavogb•15m ago•0 comments

Anthrax outbreak in Africa's oldest national park kills hippos

https://abcnews.com/International/anthrax-outbreak-virunga-national-park-kills-dozens-hippos/stor...
1•gmays•15m ago•0 comments

A Man Who Conned the World

https://foreignpolicy.com/2023/12/03/con-artist-global-scam-ghana-anansis-gold/
1•prmph•19m ago•0 comments

1994 After Dark Files Rat Race, Ported to the Browser

https://rat-race.heyitsjam.es/
1•shijie•20m ago•0 comments

Elon Musk is about to learn how much America hates him

https://www.independent.co.uk/voices/elon-musk-donald-trump-midterms-republican-starlink-b3079726...
5•Zigurd•25m ago•0 comments

What Is Pico Ballooning?

https://traquito.github.io/pico-balloons/
1•gregsadetsky•25m ago•0 comments

US warns China it must 'immediately' meet terms of Busan trade deal

https://www.ft.com/content/391bb785-0247-4c39-b53b-35007187d603
2•madihaa•26m ago•0 comments

Mineral-forming method removes over 99% of radioactive technetium from waste

https://phys.org/news/2026-11-mineral-method-radioactive-technetium-liquid.html
2•titusblair•26m ago•0 comments

Ask HN: Are AI-written reviews a safety risk? Evidence from ICLR2027 scores

1•fsabau•27m ago•0 comments

Show HN: We built an async interview engine to get published on HackerNoon

https://journalistic.tech/
1•smooke•27m ago•0 comments

Show HN: Realtime sync engine without any new infra

https://github.com/tanishqkancharla/tandem
1•tanishqkanc•29m ago•0 comments

New Research Tests Whether AI Models Know Their Own Thoughts

https://www.quantamagazine.org/new-research-tests-whether-ai-models-know-their-own-thoughts-20261...
1•dogscatstrees•29m ago•0 comments

How I Learned to Stop Worrying and Love AI

https://koenvangilst.nl/lab/how-i-stopped-worrying-and-learned-to-love-ai
3•vnglst•31m ago•0 comments

FMF Jailbreak Rating Framework for Frontier Cyber Threats

https://www.frontiermodelforum.org/updates/introducing-the-fmf-jailbreak-rating-framework-for-fro...
1•pretext•31m ago•0 comments

Anthropic to press ahead with November IPO targeting $1.5T valuation

https://www.ft.com/content/314e17df-e7af-4814-b208-70a0557cb452
3•mfiguiere•31m ago•0 comments

Ballast – cold email infrastructure with AI and MCP

https://ballast.to
1•yetanotherdevz•31m ago•1 comments

Teaching AI to build scientific models

https://www.anthropic.com/research/teaching-ai-to-build-scientific-models
2•pretext•32m ago•0 comments

End of the Internet

https://stratechery.com/2026/the-end-of-the-internet/
3•Karrot_Kream•33m ago•0 comments

I watched a humanoid robot clean my apartment. Like a taste of the future

https://www.technologyreview.com/2026/11/06/1148090/i-watched-a-humanoid-robot-clean-my-apartment...
3•gnabgib•35m ago•0 comments

Hacking the meta ray-ban smartglasses

https://p0pcycle.com/2026/11/06/hacking-the-meta-ray-ban-smartglasses/
1•sshah03•36m ago•0 comments

The Components of Agent Memory

https://www.anthropic.com/research/components-of-agent-memory
3•mfiguiere•37m ago•0 comments

The Yak Is Shaved

https://oddbits.ai/blog/the-yak-is-shaved/
1•wfalcon•37m ago•1 comments

Implant 0.4.0 Is Out

https://marketplace.visualstudio.com/items?itemName=strangepleasures.implant
1•strangepleasure•38m ago•1 comments