Overview
The Dokrypt marketplace is a registry for sharing project templates. You can browse community templates, install them locally, and publish your own. Registry URL:https://hub.dokrypt.com/api/v1
Browsing Templates
Search
Browse by Category
defi, nft, dao, token, basic
View Details
Installing Templates
~/.dokrypt/marketplace/.
Use installed templates with dokrypt init:
Creating Templates
1. Scaffold
2. Add Your Files
my-defi-template
template.yaml
dokrypt.yaml.tmpl
foundry.toml.tmpl
README.md.tmpl
contracts
MyContract.sol
test
MyContract.t.sol
scripts
deploy.js
3. Define Metadata
4. Use Template Variables
In.tmpl files, use Go template syntax:
| Variable | Example Value | Description |
|---|---|---|
{{ .ProjectName }} | my-dapp | User’s project name |
{{ .ChainName }} | ethereum | Chain name |
{{ .ChainID }} | 31337 | Chain ID |
{{ .Engine }} | anvil | Node engine |
{{ .Author }} | dev | Author |
.tmpl are rendered and the extension is removed. All other files are copied as-is.
5. Test Locally
6. Publish
Template Metadata Reference
| Field | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Unique template name |
version | string | Yes | Semantic version |
description | string | Yes | Short description |
author | string | Yes | Author name |
category | string | No | defi, nft, dao, token, basic |
difficulty | string | No | beginner, intermediate, advanced |
premium | bool | No | Premium template flag |
price | string | No | Price or “free” |
tags | string[] | No | Searchable tags |
chains | string[] | No | Supported chains |
services | string[] | No | Required services |
license | string | No | License identifier |
homepage | string | No | Project homepage URL |
repository | string | No | Source repository URL |