zrosenbauer/prompt-merge
Zero-dependency library for conditionally merging LLM (system) prompts into a single string.
This tool helps developers who are building applications using Large Language Models (LLMs) to manage their system prompts. It takes multiple prompt fragments, often based on different conditions, and combines them into a single, clean prompt string. The output is a consolidated prompt ready to be sent to an LLM, making it easier for developers to create dynamic and context-aware LLM interactions.
Available on npm.
Use this if you are a developer building an LLM-powered application and need a straightforward way to conditionally assemble system prompts based on various application states or user inputs.
Not ideal if you are not a developer working directly with LLM APIs, or if your prompt management needs are simple enough that basic string concatenation suffices.
Stars
10
Forks
1
Language
TypeScript
License
MIT
Category
Last pushed
Nov 24, 2025
Commits (30d)
0
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/prompt-engineering/zrosenbauer/prompt-merge"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Higher-rated alternatives
BoundaryML/baml
The AI framework that adds the engineering to prompt engineering (Python/TS/Ruby/Java/C#/Rust/Go...
deanpeters/product-manager-prompts
A repository of Generative AI prompts for product managers using agents such as ChatGPT, Claude, & Gemini
eudk/awesome-ai-tools
🔴 VERY LARGE AI TOOL LIST! 🔴 Curated list of AI Tools - Updated 2026
jujumilk3/leaked-system-prompts
Collection of leaked system prompts
legeling/PromptHub
一款开源、纯本地 Prompt ,Skill 管理工具,帮助你高效管理、版本控制和复用 Prompt,并一键分发skill | An open-source, local-first AI...