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.

Mapping homes you can buy from the US government for <$100k

https://govauctions.app/research/cheapest-homes-in-america
1•player_piano•26s ago•1 comments

Show HN: Tracking GenAI cost and endpoint fragility so app teams don't have to

https://llmintel.ai/demo
1•ATsimbalistov•3m ago•0 comments

'Tonga' Suspends Popular Pirate Site Domains Following Indian Court Order

https://torrentfreak.com/tonga-suspends-popular-pirate-site-domains-following-indian-court-order/
1•Brajeshwar•3m ago•0 comments

Ask HN: How to find businesses running their operations on spreadsheets?

1•jainvivek•4m ago•0 comments

China sentences official to death for taking $325M in bribes

https://www.bbc.com/news/articles/c33y0n1v1xjo
2•randycupertino•4m ago•0 comments

Show HN: mip – the missing package manager for MATLAB + MEX

https://mip.sh
2•jmagland•6m ago•0 comments

Stop Waiting for a Bigger Context Window

https://int21.ai/insights/stop-waiting-for-a-bigger-context-window/
2•antinucleon•6m ago•0 comments

How did we make DeepSeek outperform Opus

https://twitter.com/MrAhmadAwais/status/2050956678502420612
2•ahmadawais•7m ago•0 comments

Show HN: Cardr – On-device business card scanner (Apple Intelligence, no cloud)

https://apps.apple.com/us/app/cardr-business-card-scanner/id6784471681
1•kmishukov•9m ago•0 comments

Reducing Doom Loops with Final Token Preference Optimization

https://www.liquid.ai/blog/antidoom
2•dataminer•11m ago•0 comments

Jim's TrueType QR Code Font

https://github.com/jimparis/qr-font
2•arantius•12m ago•0 comments

Show HN: PiShot – A Custom Open-Source RPi Camera with Modular 3D-Printed Case [video]

https://www.youtube.com/shorts/gf-RIgXnWJM
1•Irtaza1•14m ago•0 comments

How AI could enable autonomous robot workers in workplaces–and maybe homes

https://arstechnica.com/features/2026/07/robot-workers-rising-how-ai-may-drive-general-purpose-au...
2•Bender•16m ago•0 comments

New virus catalog reveals which pathogens pose the greatest threat

https://theconversation.com/new-virus-catalogue-reveals-which-pathogens-pose-the-greatest-threat-...
2•Bender•17m ago•1 comments

From Quantum Relative Entropy to the Semiclassical Einstein Equations

https://journals.aps.org/prl/abstract/10.1103/lmq8-nsty
1•lukeplato•17m ago•0 comments

Facing US export controls, China's DeepSeek plans to make its own chips

https://arstechnica.com/ai/2026/07/facing-us-export-controls-chinas-deepseek-plans-to-make-its-ow...
1•Bender•17m ago•0 comments

Codex makes fewer bugs, but more people use Claude

https://www.cubic.dev/state-of-ai-coding-2026
4•mikeborozdin•18m ago•0 comments

MacSurf 1.68 – NetSurf on OS 9 Released

https://github.com/mplsllc/macsurf/releases/tag/v1.86
2•mplsllc•18m ago•1 comments

Show HN: Book Bounce – Bedtime story helper for parents

https://bedtimebookhelper.com
1•philajan•18m ago•0 comments

Show HN: Wayflow – an embeddable AI workflow builder (open source)

https://wayflow.build/
1•tahazsh•19m ago•0 comments

Show HN: A notepad that turns meeting-full days into shareable memory

https://pitara.ai/login?next=%252F
1•chayanvinayak•20m ago•0 comments

Two to the Moon: Lunar Gemini (2020)

https://www.spaceflighthistories.com/post/lunar-gemini
1•FatalLogic•21m ago•0 comments

A Physics Giant (Max Planck) Had Two Papers Retracted Decades After His Death

https://gizmodo.com/a-physics-giant-had-his-papers-retracted-decades-after-his-death-heres-why-20...
1•skmurphy•22m ago•1 comments

Weighing smoke: why AI visibility dashboards are mostly useless

https://betterthangood.xyz/blog/weighing-smoke/
2•iainharper•22m ago•0 comments

Governance Dose Must Match Model Capacity

https://zenodo.org/records/21222310
1•adamzwasserman•23m ago•0 comments

OpenClaw/Hermes Article on agent memory options

https://yolo-auto.com/news/memory-options-for-agents
1•yolo-auto•25m ago•0 comments

Court tosses Microsoft's appeal in pre-owned software licenses battle

https://www.theregister.com/software/2026/07/07/court-tosses-microsofts-appeal-in-pre-owned-softw...
1•mywacaday•26m ago•0 comments

Harness Engineering 101

https://thytu.com/posts/harness-engineering/
1•Thytu•26m ago•0 comments

Show HN: Prizmi – a proactive AI assistant for everyday life

https://prizmi.ai/
1•hramezani•27m ago•0 comments

Ask HN: Are LLMs slowly making companies dysfunctional?

3•haute_cuisine•27m ago•1 comments