galfrevn/promptsmith
🧠 A TypeScript library for crafting structured, maintainable system prompts using a fluent, chainable API with full type safety. It supports context, few-shot examples, guardrails against prompt injection, tool definitions with Zod, and export to Vercel AI SDK.
PromptSmith is a TypeScript library that helps AI developers build robust and reliable AI agents by creating structured, type-safe system prompts. It takes developer-defined instructions, capabilities, and tools, then outputs optimized prompts for AI models like those used with the Vercel AI SDK. This is designed for developers who are building production-ready AI applications and need to manage complex prompts efficiently.
Use this if you are a developer building AI agents and need to create maintainable, secure, and token-efficient system prompts with strong type safety.
Not ideal if you are a non-developer or primarily working with AI models outside of a TypeScript development environment.
Stars
28
Forks
1
Language
TypeScript
License
MIT
Category
Last pushed
Dec 27, 2025
Commits (30d)
0
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/prompt-engineering/galfrevn/promptsmith"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Higher-rated alternatives
microsoft/promptflow
Build high-quality LLM apps - from prototyping, testing to production deployment and monitoring.
pezzolabs/pezzo
🕹️ Open-source, developer-first LLMOps platform designed to streamline prompt design, version...
cremich/promptz
Resource Library for AI-assisted software development with kiro
scafoldr/scafoldr
Building an open-source alternative to v0 and Lovable.
promptdesk/promptdesk
Promptdesk is a tool designed for effectively creating, organizing, and evaluating prompts and...