World's first bidirectional universal code translator + production MCP framework
The Problem: Modern applications need microservices in different languages, but writing production servers is time-consuming. Code migration between languages is manual and error-prone. Teams using different languages can't easily share specifications.
The Solution: Promptware is the only framework with bidirectional code translation across 5 languages. Parse Python, Node.js, Go, Rust, or C# code to PW DSL, then generate ANY other language. Or define agents once in .pw and instantly generate production-hardened MCP servers—complete with 17.5x code amplification, 190 tool adapters, 20 cross-language translations (100% validated), and 5 production languages ready to deploy.
Generates production-ready servers in any language with:
- ✅ MCP protocol implementation
- ✅ Error handling with standard codes
- ✅ Health checks (/health, /ready)
- ✅ Rate limiting & CORS
- ✅ Security headers
- ✅ Auto-generated tests
- ✅ Client SDKs
Promptware is the only framework that enables true bidirectional code translation across 5 languages.
Not just code generation - universal translation:
Translation Matrix (20 combinations - 100% success rate):
Python | - | ✅ | ✅ | ✅ | ✅ |
Node.js | ✅ | - | ✅ | ✅ | ✅ |
Go | ✅ | ✅ | - | ✅ | ✅ |
Rust | ✅ | ✅ | ✅ | - | ✅ |
.NET | ✅ | ✅ | ✅ | ✅ | - |
Use Cases:
- Polyglot Migration - Move services from Python to Go without rewriting
- Team Collaboration - Go dev and Python dev communicate via PW
- API Documentation - Parse any codebase to human-readable spec
- Code Analysis - Universal IR for static analysis tools
- Agent Communication - AI agents read ANY language, discuss in PW
Write once, deploy anywhere - or parse existing code and translate:
Python | ✅ Full | ✅ Full | FastAPI, AI (LangChain), Observability (OTEL), Workflows |
Node.js | ✅ Full | ✅ Full | Express, async/await, connection pooling |
Go | ✅ Full | ✅ Full | net/http, goroutines, compiled binaries |
C# | ✅ Full | ✅ Full | ASP.NET Core, async/await, .NET 8+ |
Rust | ✅ Full | ✅ Full | Actix-web, tokio, zero-cost abstractions |
Bidirectional Testing:
- Forward: 11/11 tests passing (PW → Code)
- Reverse: 13/13 tests passing (Code → PW)
- Cross-Language: 20/20 tests passing (Lang A → PW → Lang B)
- Total: 44/44 tests passing (100%)
All languages include:
- MCP protocol (JSON-RPC 2.0)
- Production middleware
- Tool adapter system
- Health endpoints
- Error handling
- Reverse parsing to PW DSL
Every generated server includes:
Error Handling:
- Standard MCP error codes (-32700 to -32007)
- Structured error responses
- Automatic retry logic in clients
- Circuit breaker pattern
Health Checks:
- /health - Liveness probe (Kubernetes-compatible)
- /ready - Readiness probe with dependency checks
- Uptime tracking
- Graceful shutdown
Security:
- Rate limiting (100 req/min default, configurable)
- CORS middleware with origin validation
- Security headers (HSTS, X-Frame-Options, CSP, X-XSS-Protection)
- Input validation
Observability:
- Structured logging
- Request/response tracking
- Performance metrics
- OpenTelemetry integration (Python)
Auto-generated test suites:
Features:
- Auto-generates tests from verb schemas
- Integration testing with pass/fail tracking
- Load testing with latency metrics (P95, P99)
- Coverage tracking and reporting
- Beautiful console output
Production-ready client libraries:
Python:
Node.js:
SDK Features:
- Automatic retries with exponential backoff
- Circuit breaker pattern
- Connection pooling
- Health checks
- Dynamic verb discovery
- Type safety (TypeScript)
38 tools × 5 languages = 190 adapters
Categories:
- HTTP & APIs (http, rest, api-auth)
- Authentication (auth, encryption)
- Storage & Data (storage, validate-data, transform)
- Flow Control (conditional, branch, loop, async, thread)
- Logging & Monitoring (logger, tracer, error-log)
- Scheduling (scheduler, timing)
- Media (media-control)
- System (plugin-manager, marketplace-uploader)
Creates user-service.pw:
Python:
Node.js:
Go:
C#:
Rust:
Python:
Node.js:
Choose Promptware when you need:
- Universal code translation - The ONLY framework that translates code bidirectionally across 5 languages (20 combinations, 100% success rate)
- Polyglot migration - Move existing services from Python to Go, Node.js to Rust, etc. without manual rewriting
- Cross-language collaboration - Teams using different languages communicate via PW as a universal protocol
- Production quality by default - Error handling, health checks, rate limiting, security headers, and observability without configuration
- Rapid prototyping - Go from idea to running server in 5 minutes with 17.5x code amplification
- Enterprise-grade SDKs - Circuit breakers, retry logic, and connection pooling out of the box
- MCP-native architecture - First-class support for Model Context Protocol, perfect for AI agent systems
Consider alternatives when:
- You need a complex custom protocol (not JSON-RPC/MCP)
- You're building a monolithic application (not microservices)
- You require language-specific optimizations that don't fit the generated patterns
- Your team needs complete control over every line of server code
Promptware vs Alternatives:
- vs OpenAPI/Swagger - Promptware generates complete production servers with middleware AND parses existing code back to spec (bidirectional)
- vs gRPC - MCP protocol is simpler (JSON-RPC) and includes AI agent primitives; use gRPC for high-performance internal services
- vs Manual coding - 17.5x faster development with consistent patterns across languages and automatic test generation
- vs All code generators - Promptware is the ONLY tool with bidirectional translation - parse ANY language, generate ANY language
- CLI Guide - Complete command reference
- SDK Guide - Client library documentation
- Testing Guide - Testing framework
- Production Hardening - Production features
- Installation - Installation and setup
- Promptware DSL Spec - Language specification
- Framework Overview - Architecture
- Development Guide - Contributing
- SDK Examples (Python)
- SDK Examples (Node.js)
- Testing Examples
- Demo Agents - Python, Node.js, Go, C#, Rust
- CLI (promptware/cli.py) - User-friendly command-line interface
- DSL Parser (language/parser.py) - .pw DSL parser
- Reverse Parsers (Code → PW) - 3,051 lines across 5 languages:
- reverse_parsers/python_parser.py (372 lines) - Python AST analysis
- reverse_parsers/nodejs_parser.py (461 lines) - JavaScript pattern matching
- reverse_parsers/go_parser.py (753 lines) - Go code parsing
- reverse_parsers/rust_parser.py (527 lines) - Rust syntax analysis
- reverse_parsers/dotnet_parser.py (505 lines) - C# Roslyn patterns
- Forward Generators (PW → Code) - Multi-language server generation:
- language/mcp_server_generator.py (Python)
- language/mcp_server_generator_nodejs.py (Node.js)
- language/mcp_server_generator_go.py (Go)
- language/mcp_server_generator_dotnet.py (C#)
- language/mcp_server_generator_rust.py (Rust)
- Middleware - Production features for all languages:
- language/mcp_error_handling.py
- language/mcp_health_checks.py
- language/mcp_security.py
- Testing (promptware/testing.py) - Auto-generated test framework
- SDKs - Client libraries:
- promptware/sdk.py (Python)
- promptware-js/sdk.js (Node.js)
- Tool System - 190 adapters across 5 languages
Build language-agnostic service meshes:
- Python for AI/ML services
- Go for high-throughput APIs
- Node.js for real-time services
- Rust for performance-critical paths
- C# for Windows/enterprise integration
All communicate via MCP protocol.
Create intelligent API gateways with:
- Rate limiting
- Authentication
- Request/response transformation
- Health monitoring
- Auto-scaling based on metrics
Build multi-agent AI systems:
- LLM-powered decision making (Python + LangChain)
- Tool calling and orchestration
- Human-in-the-loop workflows
- Distributed tracing
Automate deployment pipelines:
- Code review agents
- Test orchestration
- Progressive deployments
- Rollback automation
Using Promptware in production? We'd love to hear from you! Share your story in GitHub Discussions and we'll feature you here.
Organizations & Projects:
- Your company/project here
- Add your use case
- Help us build the showcase
Python | 20 lines | 350+ lines | 17.5x |
Node.js | 20 lines | 280+ lines | 14.0x |
Go | 20 lines | 320+ lines | 16.0x |
C# | 20 lines | 340+ lines | 17.0x |
Rust | 20 lines | 380+ lines | 19.0x |
Includes:
- MCP protocol implementation
- Error handling with standard codes
- Health endpoints
- Rate limiting & CORS
- Security headers
- Logging & metrics
- Tool integration
- Type validation
See CLI Guide for complete reference.
- 🔄 Bidirectional Translation - World's first universal code translator across 5 languages (20 combinations, 100% validated)
- 🌐 True Multi-Language - Same DSL generates 5 production languages with feature parity
- ↩️ Reverse Parsing - Parse existing codebases (Python, Node.js, Go, Rust, C#) back to PW DSL
- 🔀 Cross-Language Migration - Migrate Python → Go, Node → Rust, etc. without manual rewriting
- 🏭 Production-First - Error handling, health checks, security, rate limiting built-in
- 🧪 Testing Built-In - Auto-generated test suites from schemas (44/44 tests passing)
- 📦 Enterprise SDKs - Circuit breaker, retries, connection pooling out of the box
- 🤖 MCP Native - First-class support for Model Context Protocol
- 🔧 Tool Ecosystem - 190 adapters across all languages
- 💅 Beautiful CLI - User-friendly commands with helpful output
- ⚡ Code Amplification - 14-19x code generation ratio
Join the Promptware community:
- GitHub Discussions - Ask questions, share ideas and show off your projects
- GitHub Issues - Report bugs and request features
- Pull Requests - Contributions welcome! See our Contributing Guide
Maintenance Model: This project is actively maintained but contributions are reviewed on a best-effort basis. Response times may vary. Please be patient!
Contributions welcome! Areas where we'd love help:
- Language Generators - Add support for more languages (Java, PHP, Ruby)
- Tool Adapters - Implement adapters for new tools
- Middleware - Add production features (authentication, caching, etc.)
- Documentation - Improve guides and examples (especially typos and clarity)
- Testing - Expand test coverage (we love tests!)
- Bug Fixes - Fix bugs you encounter (fastest way to get merged!)
Before Contributing:
- Check existing Issues and PRs to avoid duplicates
- For major features, open an issue first to discuss the approach
- For bug fixes and docs, just submit a PR!
See CONTRIBUTING.md for detailed guidelines.
- ✅ Bidirectional translation (20/20 cross-language combinations - 100% validated)
- ✅ Reverse parsers (5 languages: Python, Node.js, Go, Rust, C#)
- ✅ Forward generators (5 languages with feature parity)
- ✅ Multi-language support (Python, Node.js, Go, C#, Rust)
- ✅ 44/44 tests passing (11 forward + 13 reverse + 20 cross-language)
- ✅ Production middleware (errors, health, security, rate limiting)
- ✅ Beautiful CLI with 5 commands
- ✅ Client SDKs (Python, Node.js) with circuit breaker & retries
- ✅ Testing framework with auto-generated tests & load testing
- ✅ 190 tool adapters (38 tools × 5 languages)
- ✅ Complete documentation
- Package publishing (PyPI, npm)
- VS Code extension
- Web dashboard for monitoring
- Additional languages (Java, PHP, Ruby)
- Agent marketplace/registry
- Cloud deployment templates (AWS, GCP, Azure)
- GraphQL support
- WebSocket transport
Track Promptware's growth:
MIT
Built with:
- MCP (Model Context Protocol) by Anthropic
- FastAPI (Python), Express (Node.js), net/http (Go), ASP.NET Core (C#), Actix-web (Rust)
- LangChain for AI integration
- OpenTelemetry for observability
Write agents once. Deploy in any language. Production-ready out of the box.
Love Promptware? Star us on GitHub to show your support and help others discover the project!
Questions or feedback? Start a discussion or open an issue.
Want to contribute? Check out our Contributing Guide and help make Promptware even better!
Promptware started as a weekend experiment to solve a real problem: translating code between languages is tedious and error-prone. What began as a simple code generator evolved into the world's first bidirectional universal code translator across 5 languages.
Built by one developer (with Claude's help) to scratch a personal itch, now shared freely with the world. No VC funding, no corporate backing—just open source software solving a real problem.
Contributions welcome. Patience appreciated. Stars celebrated. ⭐
License: MIT | Maintainer: Active, best-effort | Status: Production-ready, community-driven