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.

White House teleprompter operator accused of making $100k off Trump speech bets

https://www.bbc.com/news/articles/cjrvdqyr5d5o
1•tartoran•1m ago•0 comments

Why Pages Matter for Postgres?

https://clickhouse.com/blog/huge-pages-clickhouse-managed-postgres
1•saisrirampur•2m ago•0 comments

Show HN: HeimWall – Catch secrets before you paste them into Claude or Cursor

https://heimwall.ai/individual
1•ata2gxxx•2m ago•0 comments

GPT-5.6 Sol Pro solves open problem in convex optimization

https://medium.com/@kerger.p/an-ai-assisted-breakthrough-in-convex-optimization-an-optimization-p...
1•Cu3PO42•3m ago•0 comments

Reverse-engineering Samsung Notes handwriting

https://musaab.io/posts/2026/reverse-engineering-samsung-notes/
2•technojamin•3m ago•0 comments

Timeline Scan – AI fixes the dates on your scanned photos

https://timelinescan.com/
1•HoserHoser•3m ago•1 comments

Helium escaping from atmosphere of nearby rocky exoplanet in a habitable zone

https://www.science.org/doi/10.1126/science.aea9708
1•anyonecancode•5m ago•0 comments

What I'd Tell My Team About Competition

https://blog.staysaasy.com/p/what-id-tell-my-team-about-competition
1•backlit4034•6m ago•0 comments

The same LLM is 8x slower to first token depending on who serves it

https://dynoyard.app/blog/same-llm-8x-slower-by-backend/
1•jeremyrajan•9m ago•0 comments

Show HN: CreditKit, a Stripe usage-credits engine I kept rebuilding

https://youngalgy.com/creditkit
1•youngalgy•9m ago•0 comments

If an AI chatbot misleads you, who is to blame?

https://www.theguardian.com/commentisfree/2026/jun/24/ai-errors-companies-responsibility
2•worik•11m ago•0 comments

LM Studio Bionic: the AI agent for open models

https://lmstudio.ai/blog/introducing-lm-studio-bionic
2•minimaxir•11m ago•0 comments

The privacy problems hidden in your period tracker

https://www.bbc.com/future/article/20260715-how-period-trackers-share-womens-private-details
1•tchalla•13m ago•0 comments

How do you guys keep up with AI news?

1•anirudhc2005•14m ago•1 comments

Trump Media to Sell Faster Access to President's Social Posts

https://www.wsj.com/tech/trump-media-to-sell-faster-access-to-presidents-social-posts-7a7054e8
3•JumpCrisscross•17m ago•1 comments

Show HN: Bonebox-01 – 29KB bare metal x86 OS (80 KiB, built to kill Tiny Core)

https://github.com/Deadbytes101/BONEBOX-01
2•lexsandra56•18m ago•1 comments

How we made our LeRobot video reader up to 15× faster

https://www.eventual.ai/blog/how-we-made-our-lerobot-video-reader-up-to-15x-faster
2•ykev•18m ago•0 comments

Code is Temporary. Architecture is Executable

https://wolkensteiner.substack.com/p/code-is-temporary-architecture-is
1•arman-w-jalili•19m ago•0 comments

Kimi K3 Intelligence, Performance and Price Analysis

https://artificialanalysis.ai/models/kimi-k3
2•theanonymousone•19m ago•0 comments

Show HN: I open-sourced a macOS native Markdown rendering engine

https://github.com/nodes-app/swift-markdown-engine
2•jacobchen7•25m ago•2 comments

$100 AI Music Video: Claude Fable 5 vs. GPT-5.6 Sol

https://www.tryai.dev/blog/ai-music-video-arena-claude-vs-gpt-5.6
2•hershyb_•26m ago•1 comments

Born with 2% Brain, Now Defying Science – The Boy with No Brain [video]

https://www.youtube.com/watch?v=eKelkdfi25k
3•smalltorch•26m ago•2 comments

Using AI to build your own software

https://lemire.me/blog/2026/07/16/using-ai-to-build-your-own-software/
1•ashvardanian•27m ago•0 comments

A New Clue from the Night MH370 Vanished May Change the Search

https://www.popularmechanics.com/flight/airlines/a71923663/mh370-missing-plane-search-new-clue/
3•nabbed•27m ago•2 comments

Vector search isn't the hard part. Deciding what should be searched is

1•milan_•31m ago•0 comments

Ask HN: How companies are protecting Claude Code from reading IP and PII data

2•pradeep1177•33m ago•5 comments

Truth Social to sell banks 'fastest' access to Trump's posts

https://www.reuters.com/technology/trump-media-unveils-data-feed-businesses-tracking-truth-social...
15•almog•37m ago•0 comments

The wonderful world of tools made by small teams, solo-devs, and shareware

https://www.nathalielawhead.com/candybox/the-wonderful-world-of-tools-made-by-small-teams-solo-de...
2•zetamax•37m ago•0 comments

Show HN: Animated map of US railroad and population growth

https://app.honeycombmaps.com/shared/UoeChOqwxXf3fI2PxKXRBmh_RHW-3UVa
1•carstonh•42m ago•0 comments

Urban Dictionary: Hacker News

https://www.urbandictionary.com/define.php?term=hacker+news
6•Gecko4072•42m ago•0 comments