Skip to main content

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 locally
dokrypt marketplace search defi

# Search the remote marketplace
dokrypt marketplace search "uniswap" --remote

Browse by Category

dokrypt marketplace browse --category defi --remote
Categories: defi, nft, dao, token, basic

View Details

dokrypt marketplace info uniswap-v3 --remote

Installing Templates

# From marketplace
dokrypt marketplace install uniswap-v3

# From a local directory
dokrypt marketplace install my-template --from ./my-template-dir
Installed templates are stored in ~/.dokrypt/marketplace/. Use installed templates with dokrypt init:
dokrypt init my-project --template uniswap-v3

Creating Templates

1. Scaffold

dokrypt template create my-defi-template

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

# template.yaml
name: my-defi-template
version: "1.0.0"
description: "My awesome DeFi template"
author: your-name
category: defi
difficulty: intermediate
premium: false
price: free
tags: [defi, ethereum, amm]
chains: [ethereum]
services: [ipfs, blockscout]
license: MIT

4. Use Template Variables

In .tmpl files, use Go template syntax:
VariableExample ValueDescription
{{ .ProjectName }}my-dappUser’s project name
{{ .ChainName }}ethereumChain name
{{ .ChainID }}31337Chain ID
{{ .Engine }}anvilNode engine
{{ .Author }}devAuthor
# dokrypt.yaml.tmpl
version: "1"
name: {{ .ProjectName }}
chains:
  {{ .ChainName }}:
    engine: {{ .Engine }}
    chain_id: {{ .ChainID }}
Files ending in .tmpl are rendered and the extension is removed. All other files are copied as-is.

5. Test Locally

dokrypt marketplace install my-template --from ./my-defi-template
dokrypt init test-project --template my-defi-template
cd test-project
dokrypt up

6. Publish

cd my-defi-template
DOKRYPT_REGISTRY_TOKEN=your-token dokrypt marketplace publish

Template Metadata Reference

FieldTypeRequiredDescription
namestringYesUnique template name
versionstringYesSemantic version
descriptionstringYesShort description
authorstringYesAuthor name
categorystringNodefi, nft, dao, token, basic
difficultystringNobeginner, intermediate, advanced
premiumboolNoPremium template flag
pricestringNoPrice or “free”
tagsstring[]NoSearchable tags
chainsstring[]NoSupported chains
servicesstring[]NoRequired services
licensestringNoLicense identifier
homepagestringNoProject homepage URL
repositorystringNoSource repository URL

Managing Installed Templates

# List installed
dokrypt marketplace list

# Remove
dokrypt marketplace uninstall uniswap-v3