The name Protypo originates from the Greek word πρότυπο (pronounced pro-tý-po), meaning 'model', 'template', or 'pattern'. Protypo is a powerful code generator that transforms entity definitions into fully functional code, allowing you to quickly scaffold entire backend systems, APIs, and more.
Built for speed and flexibility, Protypo brings modern code generation to Rust, combining the performance of a Rust-based tool with the convenience of customizable templates for various programming languages and architectures.
- 🚀 Supports
MiniJinja
(default) andTera
template engines. - 🛠️ Generates code based on JSON schemas for APIs, microservices, and more.
- 📦 Customizable generators for different frameworks and programming languages.
- 📂 Project structure designed for flexibility and scalability.
- 🔧 Extensible configuration files for defining templates, dependencies, and resources.
To install Protypo, follow the steps below:
-
Ensure you have Rust installed.
-
Install Protypo via Cargo:
cargo install --git https://github.com/dinosath/protypo.git
Protypo can be used from the command line. Run the following to generate code:
protypo generate -p path/to/generator
For more info about the generators and how to create a new generator extend an existing one. documentation
Contributions are welcome! If you’d like to contribute to Protypo, feel free to open issues, submit pull requests, or suggest new features. How to Contribute
- Fork the repository.
- Create a new branch.
- Make your changes.
- Submit a pull request.
Please ensure your contributions follow the Rust community’s best practices.
Protypo is licensed under the MIT License. See the LICENSE here.