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.

30
/ 100
Emerging

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.

AI Development Prompt Engineering AI Agent Building TypeScript Development Production AI Systems
No Package No Dependents
Maintenance 6 / 25
Adoption 7 / 25
Maturity 13 / 25
Community 4 / 25

How are scores calculated?

Stars

28

Forks

1

Language

TypeScript

License

MIT

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.