Show HN: TypePrompt transpiles prompt templates to native API in 8 languages
Category: ai-ml
Tags: llm-prompts, code-generation, type-safety, prompt-engineering
Score: 6.5/10 (Innovation: 6, Technical: 7, Documentation: 8, Utility: 5)
TypePrompt is a compile-time tool that turns XML-based prompt templates into type-safe APIs in eight target languages (TypeScript, Python, Kotlin, Rust, C++, Swift, Dart, C#). It differentiates from frameworks like BAML and Dotprompt by validating few-shot examples and using TypeScript-derived schemas, then generating native types and JSON Schema without wrapping the LLM client itself.
Target audience: backend and ML engineers building LLM applications who want type-safe prompt management without framework lock-in
Repository: https://github.com/gepheum/typeprompt · TypeScript · MIT · 1 stars
View on Hacker News