| Crates.io | cw-swaggy |
| lib.rs | cw-swaggy |
| version | 0.1.4 |
| created_at | 2025-04-21 01:12:58.14671+00 |
| updated_at | 2025-07-30 08:18:47.983987+00 |
| description | Interactive documentation for CosmWasm smart contracts with a simple command |
| homepage | |
| repository | https://github.com/cw-warp/swaggy |
| max_upload_size | |
| id | 1642154 |
| size | 4,161,736 |
A tool designed to make documenting your CosmWasm Smart Contract easier. Generate the documentation for your contract with a single command!
It can generate OpenAPI spec for your smart contracts, as well as display the docs in the browser. Did we mention that the docs are interactive and all methods can be called visually with your Keplr wallet?

To install cw-swaggy, you can download it from the crates.io repository:
cargo install cw-swaggy
Usually in enterprise environment, it is very important to have an up-to-date documentation for projects. There's two main reasons for that:
In this case, we are treating blockchain smart contracts as a backend for a DApp, as that is essentially what they are in practice.
Swagger UI and OpenAPI standard is widely used for APIs and backend documentation/testing in Web2, but we don't currently have a similar solution for Web3. As such, why reinvent the wheel, when we can repurpose the tools that people are already familiar with for the new needs?
That is the goal of CosmWasm Swaggy - to bring Swagger UI with all of its features to the Cosmos Ecosystem.
The goal of the project is to allow for the following operations on CosmWasm smart contracts:
Instantiate, Execute messages, and Query messagesswaggy is currently able to run two subcommands
Usage: swaggy <COMMAND>
Commands:
build Build a swagger.json file from the contract schema
serve Serve the swagger spec
help Print this message or the help of the given subcommand(s)
Options:
-h, --help Print help
build creates an openAPI-compatible file with special metadata that describes all functions of the contract
serve starts an HTTP server at localhost that displays the spec as fully graphical documentation