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

Comments

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

Ask HN: Is latent space more than compression? Can we probe its internal rules?

1•WLHsu•37s ago•0 comments

Apeirron – open-source knowledge graph of humanity's biggest questions

https://www.apeirron.com
1•theiskaa•2m ago•1 comments

Seeker, a job matcher that explains why roles fit

https://www.seekerscore.com
1•danylchukllc•5m ago•0 comments

Clippy, Now with Some AI

https://github.com/felixrieseberg/clippy
1•ankitg12•6m ago•0 comments

Ministry mulls new restrictions for viewing detailed aerial photos

https://news.err.ee/1609995166/ministry-mulls-new-restrictions-for-viewing-detailed-aerial-photos
1•marklit•7m ago•0 comments

Ggsql: A SQL extension for declarative data visualisation based on the Grammar O

https://github.com/posit-dev/ggsql
1•fanf2•9m ago•0 comments

Origins of J

https://github.com/kelas/ooj
1•tosh•9m ago•0 comments

What 23K vulnerabilities reveal about audit report quality in Web3

https://colab.research.google.com/drive/1Wp4yyEmXYjHATak7Bmy2lf6DNgyjlxgI?usp=sharing
1•zaevlad•15m ago•1 comments

Show HN: Vibe coding t-rex.world

1•nirupan23•17m ago•0 comments

SQLite WAL in 2026: an architecture note on checkpoint starvation

https://cronfeed.work/oss-sqlite-wal-architecture-note-checkpoint-starvation-concurrency-boundary...
1•tonyl•18m ago•0 comments

Social Credit

https://nicholasdecker.substack.com/p/social-credit
1•barry-cotter•18m ago•0 comments

Elon vs. Altman: What Their Infrastructure Stacks Reveal About Power

https://mythcoreops.substack.com/p/elon-vs-altman-what-their-infrastructure
2•ReadTheProducts•21m ago•1 comments

Tim Cook's Impeccable Timing

https://stratechery.com/2026/tim-cooks-impeccable-timing/
3•hasheddan•21m ago•0 comments

AI Database Landscape in 2026: Vector, ML-in-DB, LLM-Augmented, Predictive

https://aito.ai/blog/the-ai-database-landscape-in-2026-where-does-structured-prediction-fit/
1•arauhala•26m ago•1 comments

Show HN: Dreamtime – A fresh bedtime story for your children every night

https://trydreamtime.com
2•jblox•27m ago•1 comments

How well do LLMs work outside English? We tested 8 models in 8 languages [pdf]

https://info.rws.com/hubfs/2026/trainai/llm-data-gen-study-2.0-campaign/trainai-multilingual-llm-...
1•curioussquirrel•27m ago•2 comments

Polymarket in talks to raise money at about $15B valuation

https://www.reuters.com/business/polymarket-talks-raise-money-about-15-billion-valuation-informat...
2•JumpCrisscross•28m ago•0 comments

Show HN: Hevc.js – HEVC/H.265 to H.264 transcoding in WebAssembly (236KB)

https://www.hevcjs.dev/
1•privaloops•28m ago•0 comments

Datahugging shields proprietary AI models from research that could disprove them

https://www.nature.com/articles/s44387-026-00094-2
2•apwheele•31m ago•0 comments

My file access workaround for cron in Tahoe

1•noduerme•32m ago•0 comments

Using LLMs effectively isn't about prompting

https://www.seangoedecke.com/beyond-prompting/
1•adityaathalye•35m ago•0 comments

Smoking ban for people born after 2008 in the UK agreed

https://www.bbc.co.uk/news/articles/cn08jy6w0l5o
7•AndrewDucker•36m ago•5 comments

Claude Sonnet 4.6 thinking duplicates what it has said, wasting tokens

1•szmarczak•37m ago•0 comments

French prosecutors issue summons to Musk after raid on X offices in Paris

https://courthousenews.com/french-prosecutors-issue-summons-to-musk-after-raid-on-x-offices-in-pa...
7•vrganj•37m ago•1 comments

AI Prevents Meritocracy

https://www.privacyguides.org/videos/2026/04/19/interview-with-carissa-veliz-author-of-privacy-is...
2•freddyym•37m ago•0 comments

Global growth in solar "the largest ever observed for any source"

https://arstechnica.com/science/2026/04/global-growth-in-solar-the-largest-ever-observed-for-any-...
2•AndrewDucker•38m ago•0 comments

Java script error: why The Devil Wears Prada 2's Starbucks tie-in leaves a taste

https://www.theguardian.com/film/2026/apr/21/the-devil-wears-prada-2-starbucks-collaboration
3•TruffleLabs•38m ago•2 comments

California tries to fix its housing mess

https://economist.com/united-states/2025/10/14/california-tries-to-fix-its-housing-mess
1•andsoitis•40m ago•0 comments

Digging for clues about the North Pole's past

https://www.technologyreview.com/2026/04/21/1135231/digging-for-truth-north-pole-past-seabed/
1•joozio•42m ago•0 comments

Schmoozebots: Study finds flattery will get AI everywhere

https://www.theregister.com/2026/04/20/chatbots_win_trust_by_sounding/
1•pseudolus•43m ago•1 comments