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.

James Bosworth on the 'Orange Wave' Happening Across Latin America

https://www.bloomberg.com/news/articles/2026-04-24/james-bosworth-on-the-orange-wave-happening-ac...
1•mooreds•56s ago•1 comments

Alex Bores' AI Policy Framework for Congress [pdf]

https://www.alexbores.nyc/files/Bores_AI_Framework.pdf
1•mooreds•5m ago•0 comments

Andrej Karpathy's microgpt as a Triptych

https://karpathy.art/
1•stared•10m ago•0 comments

Chinese National Arrested for Illegally Photographing Military Aircraft at AFB

https://www.justice.gov/opa/pr/chinese-national-arrested-jfk-international-airport-federal-charge...
1•737min•12m ago•1 comments

Exodus, from former Mass Effect devs, couldn't look more like Mass Effect

https://www.pcgamer.com/games/rpg/exodus-the-sci-fi-rpg-from-former-mass-effect-devs-couldnt-look...
1•evo_9•14m ago•0 comments

Ancient amber reveals a true bug equipped with claws, a highly unusual feature

https://phys.org/news/2026-04-ancient-amber-reveals-true-bug.html
1•bookofjoe•15m ago•0 comments

The bull case for graph DBs in law

https://alanyahya.com/writing/bull-case-graph-dbs-law
2•alansaber•16m ago•0 comments

Microsoft offers voluntary employee buyout/retirement for 7% of U.S. workforce

https://www.cnbc.com/2026/04/23/microsoft-plans-first-voluntary-retirement-program-for-us-employe...
2•mgh2•17m ago•0 comments

Show HN: RoboAPI – A unified REST API for robots, like Stripe but for hardware

https://github.com/amitb-quantum/roboapi
1•xmas123•24m ago•0 comments

Lumitime Automata – The Most Amazing Digital Clock Is a Machine [video]

https://www.youtube.com/shorts/LTInOMdjs5o
1•thunderbong•26m ago•0 comments

David Choi's Mars FX Collapse Sparks Global Hunt for Almost $600M

https://www.bloomberg.com/news/articles/2026-04-24/hedge-fund-collapse-sparks-global-hunt-for-alm...
1•simonpure•27m ago•1 comments

Is your meditation posture making things worse?

https://mvmnt.substack.com/p/is-your-meditation-posture-making
1•awakenmyrub•29m ago•0 comments

Performance of the Wren Programming Language

https://wren.io/performance.html
2•birdculture•30m ago•0 comments

Giving AI Agents Database Access Is Way Harder Than It Looks

https://querybear.com/blog/architecture-of-querybear
2•dispencer•34m ago•0 comments

The xAI exodus: Meet the people who have left Musk's AI company

https://www.fastcompany.com/91531084/inside-the-xai-exodus
4•littlexsparkee•48m ago•0 comments

Ask HN: Any recommendataions for exporting data from Amazon?

2•coreyp_1•48m ago•1 comments

2FA: A dedicated two-factor authenticato to securely manage one-time passwords

https://codeberg.org/979/2fa
2•thunderbong•49m ago•0 comments

How to Export Your ChatGPT Conversation History (and Use It)

https://chromewebstore.google.com/detail/lisa-core-ai-memory-libra/dmgnookddagimdcggdlbjmaobmoofhbj
2•AmarDahmani•51m ago•0 comments

Great moments in American advertising history

https://www.wsj.com/business/us-advertising-history-great-moments-418a8284
2•hhs•51m ago•0 comments

H.R.8470 – Surveillance Accountability Act

https://www.congress.gov/bill/119th-congress/house-bill/8470/text
3•gigel82•53m ago•1 comments

Block-f prevent accidental edits

https://github.com/skorotkiewicz/block-f
2•modinfo•54m ago•0 comments

Study: Does the brain work like an LLM in predicting words?

https://www.nyu.edu/about/news-publications/news/2026/april/does-the-brain-work-like-an-llm-in-pr...
2•hhs•57m ago•0 comments

GPT 5.5 sets new record in proofreading benchmark

https://revise.io/errata-bench
2•artursapek•59m ago•1 comments

How professional wrestling prepared Linda McMahon

https://www.newyorker.com/magazine/2026/04/27/linda-mcmahon-profile
2•hhs•1h ago•0 comments

After call from Beijing, China's auto industry races to embed AI in everything

https://www.reuters.com/world/asia-pacific/chinas-auto-industry-races-embed-ai-line-with-beijing-...
1•akyuu•1h ago•0 comments

Tell HN: The problem with Opus .7 /thinking is not token consumption. It's speed

2•ericol•1h ago•0 comments

FusionCore: ROS 2 sensor fusion (IMU and GPS and encoders)

https://github.com/manankharwar/fusioncore
6•kharwarm•1h ago•0 comments

$8800 house design helps prevent fatal diseases in African children

https://www.science.org/content/article/simple-house-may-help-prevent-multiple-fatal-diseases-afr...
3•gmays•1h ago•0 comments

The software supply-chain doom spiral

https://tylercipriani.com/blog/2026/04/24/on-the-software-supply-chain-doom-spiral/
2•thcipriani•1h ago•0 comments

FCC's Foreign-Made Router Ban Expands to Portable Wi-Fi Hotspot Devices

https://www.pcmag.com/news/fccs-foreign-made-router-ban-expands-to-portable-wi-fi-hotspot-devices
4•naves•1h ago•0 comments