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.

ChiliTown – Meme ranking using a custom Scoville scoring algorithm

https://chilitown.org
1•paxcto•2m ago•0 comments

Free check for leaked API keys in webapps

https://reseal.app/check/
1•Toostic•4m ago•0 comments

A pentester's view on Problematic Crypto Math

https://cookie.engineer/weblog/articles/problematic-cryptography-math.html
1•cookiengineer•8m ago•0 comments

A €7.98 LED strip from Action now follows my kids' screens

https://blog.hagebols.com/posts/action-led-strip-follows-the-screen/
1•decide1000•13m ago•0 comments

Wall Street prepares to pull an all-nighter on stock trading

https://www.ft.com/content/bc842478-fa8b-45c4-b277-7ae26898cf2f
1•xbmcuser•15m ago•0 comments

Show HN: I have $200 Claude API credits

https://www.5year.art/wall/
1•indest•18m ago•0 comments

Show HN: We passively audited 100 indie apps (77% fail DMARC, 40% lack headers)

https://shipbastion.com/benchmarks/100-indie-apps
1•shipbastion•18m ago•0 comments

Yggthreads: Names as the Database (Proof of Concept)

https://github.com/peterretief/yggthreads
1•peter_retief•29m ago•0 comments

Mindustry: Open-source automation sandbox tower-defense game

https://mindustrygame.github.io/
1•mnaimd•39m ago•0 comments

Pixel Drift: 2d Top-Down Racer

https://drift.lucasian.tech/
1•lucasian•40m ago•0 comments

Intel confirms unfixable Hyper-Threading flaw in several CPUs

https://tldrdailynews.com/news/technology/technology/intel-confirms-unfixable-hyper-threading-fla...
6•lucamark•52m ago•0 comments

UC freshmen are failing math because students lack 'basic principles of logic,'

https://www.thecollegefix.com/uc-freshmen-are-failing-math-because-students-lack-basic-principles...
2•porridgeraisin•52m ago•0 comments

Age encryption is now post-quantum by default

https://age-encryption.org/pq-warning
2•thisisauserid•52m ago•0 comments

Hermitbox: Sandboxes for your agents, on your machines

https://hermitbox.dev/
1•v0id_user•56m ago•0 comments

Decision models play Terry Riley's In C

https://soundafter.com/in-c/
2•jkrukowski•1h ago•0 comments

Balltoss – Comma.ai Challenge

https://blog.comma.ai/balltoss/
2•puffinman•1h ago•0 comments

Every search API is the best when the answers are known

https://brave.com/blog/search-api-benchmarks/
1•hubraumhugo•1h ago•1 comments

Agent Barter

https://github.com/brinker-ai/agent-barter
1•breiner•1h ago•1 comments

We don't need an agent orchestrator. iTerm2 is enough

https://github.com/mkagenius/terminal-skinner
1•mkagenius•1h ago•0 comments

Building Laminar

https://builders.ramp.com/post/building-laminar
1•theahura•1h ago•0 comments

To get a great exit, don't build for an exit

https://longform.asmartbear.com/exit-strategy/
1•apparent•1h ago•0 comments

Show HN: Catch Gist – Hear a 45s gist of any PDF or webpage, ask follow-ups

https://catchgist.com/
1•Jessicazhouzhou•1h ago•0 comments

I'm looking for a group to discuss CS and share growth and fun

1•squareCreator•1h ago•1 comments

Ask HN: Which is the best harness for Qwen4 models?

1•reddmachine•1h ago•1 comments

Pizzlies: The featherweight dataframe library in pure Python

https://labs.quansight.org/blog/introducing-pizzlies
1•callen43•1h ago•0 comments

Bio-Drones? Russian Startup Wants to Control Pigeons with Neural Interfaces

https://www.pcmag.com/news/bio-drones-russian-startup-wants-to-control-pigeons-with-neural-interf...
1•xyzal•1h ago•0 comments

Upto 5x verified outcomes vs. plain Claude Code – SWE Benchmark Verified

https://ekamyth.ai/docs/get-started
1•anupampandey16•1h ago•0 comments

Pleione: An all-in-one AI playground

https://getpleione.com/en
1•octemberr•1h ago•1 comments

• Matching GPT-4's 100k tokenizer compression with a 32k vocabulary

https://github.com/Dev-qvinfor/BloatTokenizer32K
9•Dor_frem•1h ago•0 comments

Vino developer stands up against Synaptics legal threats

https://lore.kernel.org/all/CAHbf0-HH+r47O_FY2-5+pGn4y+SCM=B0xnqEUEK4-+YZ4eMb8Q@mail.gmail.com/
2•ta988•1h ago•0 comments