Get started with the StarForge Template Marketplace in 5 minutes.
# Build StarForge with the new feature
cargo build --release
# Add to PATH (optional)
cp target/release/starforge ~/.local/bin/starforge template initThis adds example templates to your local registry.
# Search by keyword
starforge template search defi
# Search with tags
starforge template search dex --tags ammstarforge template liststarforge template show uniswap-v2# Create project from marketplace template
starforge new contract my-dex --template uniswap-v2 --from marketplace
# Navigate and build
cd my-dex
stellar contract buildstarforge new contract my-template
cd my-templateEdit Cargo.toml:
[package]
name = "{{PROJECT_NAME}}"Edit src/lib.rs:
#[contract]
pub struct {{PROJECT_NAME_PASCAL}};cargo test
stellar contract buildcd ..
starforge template publish ./my-template \
--name my-awesome-template \
--description "Does something awesome" \
--author "Your Name" \
--tags "defi,awesome"# Others can now use your template
starforge new contract test-project \
--template my-awesome-template \
--from marketplace| Placeholder | Input: "my-project" | Output |
|---|---|---|
{{PROJECT_NAME}} |
my-project | my-project |
{{PROJECT_NAME_SNAKE}} |
my-project | my_project |
{{PROJECT_NAME_PASCAL}} |
my-project | MyProject |
# Search
starforge template search <query>
starforge template search <query> --tags <tag1,tag2>
# List
starforge template list
# Show
starforge template show <name>
# Use
starforge new contract <name> --template <template> --from marketplace
# Publish
starforge template publish <path> [options]
# Remove
starforge template remove <name>
# Initialize
starforge template init# 1. Find a template
starforge template search lending
# 2. Check it out
starforge template show lending-pool
# 3. Use it
starforge new contract my-lending --template lending-pool --from marketplace
# 4. Build and deploy
cd my-lending
stellar contract build
starforge deploy --wasm target/wasm32-unknown-unknown/release/my_lending.wasm✅ Use verified templates - Look for the ✓ badge ✅ Review code first - Always check template source ✅ Test locally - Try templates in a safe environment ✅ Add good tags - Make your templates discoverable ✅ Document well - Include a comprehensive README
Template not found?
starforge template list # Check available templatesInvalid structure?
# Ensure your template has:
# - Cargo.toml
# - src/lib.rs
# - src/ directoryGit clone failed?
# Check if git is installed
git --version
# Verify template source URL
starforge template show <template-name>These templates are available without initializing the marketplace:
| Template | Command | Description |
|---|---|---|
hello-world |
starforge new contract my-contract |
Basic contract with optional storage |
token |
starforge new contract my-token --template token |
Fungible token with mint/burn/transfer |
nft |
starforge new contract my-nft --template nft |
Non-fungible token with URI metadata |
voting |
starforge new contract my-vote --template voting |
DAO proposal and voting contract |
stablecoin |
starforge new contract my-stable --template stablecoin |
Pegged stablecoin with mint/burn |
escrow |
starforge new contract my-escrow --template escrow |
Three-party escrow with arbiter release/refund |
- Read the full documentation
- Check out usage examples
- Explore example templates
- Join the community and share your templates!
- GitHub Issues: https://github.com/YOUR_USERNAME/starforge/issues
- Documentation: https://github.com/YOUR_USERNAME/starforge