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•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.

AI friends too cheap to meter

https://jasmi.news/p/ai-friends
1•simonebrunozzi•1m ago•0 comments

Oxford Uni student data pwned yet again, this time via career platform breach

https://www.theregister.com/security/2026/06/06/oxford-university-data-pwned-again-by-career-plat...
2•Bender•4m ago•0 comments

Show HN: A List of AI Neolabs

https://neolabs-7o2.pages.dev/
1•warthog•4m ago•0 comments

Ask HN: I made an image watermarking tool. What are the issues open-sourcing it?

1•minimaxir•4m ago•0 comments

UK exam watchdog frets over smart specs turning GCSEs into Google searches

https://www.theregister.com/personal-tech/2026/06/07/uk-exam-watchdog-frets-over-smart-specs-turn...
1•Bender•5m ago•0 comments

Stronger Search Architectures Can Substitute for Larger LLMs for AlphaEvolve

https://ttanv.github.io/levi/
1•ttanv•5m ago•0 comments

Do GLP-1 pills work as well as injections? Here's what studies show

https://ktla.com/news/nationworld/do-glp-1-pills-work-as-well-as-injections-heres-what-studies-sh...
1•Bender•6m ago•0 comments

It doesn't always have to be Linux [video]

https://media.ccc.de/v/gpn24-611-it-doesn-t-always-have-to-be-linux-an-intro-to-freebsd
1•birdculture•7m ago•0 comments

Should we ditch the idea of three meals a day?

https://www.theguardian.com/books/2026/jun/07/should-we-ditch-the-idea-of-three-meals-a-day
1•homarp•7m ago•0 comments

Ask HN: Debugging failure in large interconnected back end systems

1•Ifedayo_s•11m ago•0 comments

Quantum Information as Everything

https://vlatkovedral.substack.com/p/quantum-information-as-everything
1•ljosifov•13m ago•0 comments

Programmable artificial RNA condensates in mammalian cells

https://www.nature.com/articles/s41565-026-02164-7
1•PaulHoule•14m ago•0 comments

Why I care so much about energy per token

https://ziraph.com/blog/energy-per-token-vanity-sanity-reality
1•ABS•15m ago•0 comments

The Read Model Zoo: Projections Beyond Tables

https://docs.eventsourcingdb.io/blog/2026/06/08/the-read-model-zoo-projections-beyond-tables/
1•goloroden•15m ago•0 comments

Ideogram 4.0 Technical Details: Open model at the forefront of design

https://ideogram.ai/blog/ideogram-4.0/
1•simonpure•15m ago•0 comments

No Model Will Save Us: Pope Leo, the Miserostat, and AI's Woke Coders

https://www.wmbriggs.com/post/61049/
2•B1FF_PSUVM•17m ago•0 comments

Billions spent and hypothetical returns: the AI boom explained with six charts

https://www.theguardian.com/technology/2026/jun/07/billions-spent-hypothetical-returns-the-ai-boo...
5•billybuckwheat•17m ago•0 comments

ChatGPT app hits 1B monthly active users in record time

https://www.reuters.com/technology/chatgpt-app-hits-1-billion-monthly-active-users-record-time-da...
1•geox•20m ago•0 comments

Why isn't the U.S. better at soccer?

https://www.natesilver.net/p/why-isnt-the-us-better-at-soccer
11•7777777phil•24m ago•2 comments

Show HN: CodeSage Pro – an AI copilot that reads the problem on the page

https://chromewebstore.google.com/detail/codesage-pro-—-universal/cbkkghdedpjamcicmnfpihehmgjemmhi
1•rsingh867•25m ago•0 comments

When robots take over jobs, who decides what they do?

https://lorenzopieri.com/robotic_commons/
2•lorepieri•26m ago•0 comments

Ask HN: What is happening with the Meta Ads dashboard?

1•ramon156•28m ago•0 comments

Iran says staff blocked from entering US after players given World Cup visas

https://www.bbc.com/news/articles/cy8286nqz87o
2•root-parent•29m ago•0 comments

After empty promises, string theory finds new uses

https://www.science.org/content/article/after-empty-promises-string-theory-finds-new-uses
2•tcp_handshaker•31m ago•0 comments

Pete Hegseth's D-Day speech on immigration condemned as 'grotesque stupidity'

https://www.theguardian.com/world/2026/jun/07/pete-hegseth-d-day-speech-immigration-grotesque-stu...
7•tcp_handshaker•33m ago•2 comments

Sorry Marc, it's just not that big

https://www.ft.com/content/dcc7c956-858c-4fed-9820-f87f73f7bf8d
3•tcp_handshaker•34m ago•1 comments

I thought journaling app users wanted more features. Turns out they wanted trust

https://www.indiehackers.com/post/i-thought-journaling-app-users-wanted-more-features-turns-out-t...
3•rozvibe•36m ago•1 comments

All existing World Cup predictor apps were buggy, so I've built a cool one

https://kibic.co
2•olekskw•37m ago•1 comments

The Illusion of Invulnerability in Cybersecurity

https://zeltser.com/illusion-of-invulnerability
3•walterbell•37m ago•0 comments

Author of Home Office report reveals attempts to compromise him

https://www.theguardian.com/uk-news/2026/jun/07/home-office-china-report-honey-traps-compromise-a...
4•ilamont•37m ago•0 comments