Protypo simplifies the process of generating backend code using JSON schemas, allowing you to focus on business logic and reducing repetitive tasks. It can generate code for various languages using customizable templates, making it a versatile tool for API generation, code scaffolding, and more.
Protypo was built to bring the speed and flexibility of low-code tools to Rust, with the extensibility and performance expected from a modern Rust-based tool.
- 🚀 Supports
Tera
(default) andMiniJinja
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 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.