frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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•10mo ago

Comments

llm-exe•10mo 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•10mo 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.

Agentic Code Optimization via Compiler-LLM Cooperation

https://arxiv.org/abs/2604.04238
1•matt_d•1m ago•0 comments

Tend: Lightweight attention infrastructure for humans and AI agents

https://www.tend.cx/
2•possumously•4m ago•2 comments

Microsoft's PhotoDNA technology keeps flagging my face picture

https://www.elevenforum.com/t/microsoft-photodna-scanning-problem-it-is-comical-now.45961/
3•darkzek•18m ago•0 comments

Ask HN: Looking for AI Video Upscaler

1•120bits•20m ago•0 comments

Yuku – A fast, spec-compliant JavaScript parser written in Zig

1•arshadyaseen•22m ago•0 comments

Should academic misconduct be catalogued? Proposed US database sparks debate

https://www.nature.com/articles/d41586-026-01147-x
1•gnabgib•31m ago•0 comments

One Method Was Using 71% of CPU. Here's the Flame Graph

https://jvogel.me/posts/2026/one-method-using-71-percent-of-cpu/
1•siegers•34m ago•1 comments

Apple's New iPhone Update Is Restricting Internet Freedom in the UK

https://bigbrotherwatch.org.uk/blog/apples-new-iphone-update-is-restricting-internet-freedom-in-t...
3•josephcsible•37m ago•0 comments

Volcanic rock formula cuts cement emissions by two-thirds

https://techxplore.com/news/2026-04-volcanic-formula-cement-emissions-thirds.html
1•geox•43m ago•0 comments

The Mystery of Water on the Moon

https://nautil.us/the-mystery-of-water-on-the-moon-1279617
1•Bender•49m ago•0 comments

YouTube Premium just went up to $15.99 / mo (US)

https://www.youtube.com/premium
6•tehwebguy•50m ago•1 comments

Chatbots are great at manipulating people to buy stuff, Princeton boffins find

https://www.theregister.com/2026/04/09/chatbots_excel_at_manipulating_people/
1•Bender•50m ago•0 comments

Make2c - Revolutionary Discovery of the Music Math Formula

https://github.com/sfeltenberg/Analytic-lobe-hypothesis/blob/main/README.md
2•sfeltenberg•50m ago•1 comments

EdgeSense – replacing neural nets on microcontrollers with symbolic physics

https://github.com/Kretski/EdgeSense
3•DREDREG•50m ago•0 comments

Mexican surveillance company Grupo Seguritech watches the U.S. border

https://restofworld.org/2026/mexico-seguritech-government-surveillance-profile/
1•classichasclass•51m ago•0 comments

Ludwig Straub, Winner of the John Bates Clark Medal

https://nicholasdecker.substack.com/p/ludwig-straub-winner-of-the-john
2•paulpauper•51m ago•0 comments

AI #163: Mythos Quest

https://thezvi.substack.com/p/ai-163-mythos-quest
2•paulpauper•52m ago•0 comments

The Anti-Democratization of Software

https://bitcicle.com/post/2026/anti-democratizing_software/
2•abelleisle•53m ago•0 comments

Warren Weaver and New Science Instruments

https://republicofscience.substack.com/p/warren-weaver-and-new-science-instruments
1•paulpauper•55m ago•0 comments

5 LLM played Poker: Opus busted first, Grok won

https://github.com/sagaripte/chorus/tree/main/examples/poker
6•sagari•56m ago•0 comments

Police corporal created AI porn from driver's license pics

https://arstechnica.com/tech-policy/2026/04/state-police-corporal-created-porn-deepfakes-from-dri...
1•Bender•58m ago•0 comments

Mystery over 8 missing or dead scientific experts

https://www.newsweek.com/mystery-over-8-missing-or-dead-experts-linked-to-ufo-research-11792852
2•ZunarJ5•1h ago•0 comments

What Playboy got right about men – Lust and literacy can coexist

https://unherd.com/2026/04/what-playboy-got-right-about-men/
5•pseudolus•1h ago•2 comments

I built a portfolio platform for creators (FelixPro.space)

https://www.felixpro.space
2•asabajumah•1h ago•0 comments

Sam Altman's Coworkers Say He Can Barely Code and Misunderstands Basic Concepts

https://futurism.com/artificial-intelligence/sam-altman-technical-coding
15•cebert•1h ago•8 comments

The Economics of Software Teams: Why Most Organizations Are Flying Blind

https://www.viktorcessan.com/the-economics-of-software-teams/
1•gpi•1h ago•0 comments

Vibe-Coded Ext4 for OpenBSD

https://lwn.net/Articles/1064541/
3•signa11•1h ago•1 comments

The role of LLMs in patch review

https://lwn.net/Articles/1064830/
3•signa11•1h ago•0 comments

Stream your terminal. Watch AI agents work. Like Twitch, for shells

https://github.com/sderosiaux/twitch-terminal
2•chtefi•1h ago•0 comments

The many failures leading to the LiteLLM compromise

https://lwn.net/Articles/1064693/
3•signa11•1h ago•1 comments