Socket
Book a DemoInstallSign in
Socket

create-polkadot-dapp

Package Overview
Dependencies
Maintainers
2
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

create-polkadot-dapp

Create Polkadot DApp in one command:

1.2.0
latest
npmnpm
Version published
Weekly downloads
5
150%
Maintainers
2
Weekly downloads
 
Created
Source

create-polkadot-dapp

Create Polkadot DApp in one command:

npx create-polkadot-dapp@latest

Templates

  • react-papi-tailwind:
    React front-end app with PAPI ReactiveDOT + dotconnect for chain and wallet interactions.
    Tailwind CSS + Tailwind UI.
    Vite for dev tooling.
  • react-solidity-hardhat modern smart contract + react app template, with:
  • react-solidity-remix (deprecated) a monorepo for smart contracts for AssetHub and a React, Tailwind CSS and ethers

Planned templates

  • papi-nodejs: pure server-side application with polkadot-api

Development

How to spawn template from local copy

cd <path-to-create-polkadot-dapp>
yarn install && yarn build
cd <path-where-to-spawn-the-app>
npx --yes --package=<path-to-create-polkadot-dapp>/dist create-polkadot-dapp

Adding new template

Add sources to templates/ directory. These will be copied to target directory.
Add new configuration to src/templateConfigs/ and export it from index.ts. The exported name must match the directory name in templates/.

Note on .gitignore

yarn pack doesn't include .gitignore files into the package, even if manually included into files section in package.json.
To circumvent this, we're placing gitignore (without the dot) files in the templates instead, and renaming the files after spawning.

Back sync

It can be more convenient to develop template code outside of create-polkadot-dapp.
Use yarn back-sync --source <spawned_repo_path> --template <template_name> to sync files from a spawned repo back into the template.
back-sync uses .gitignore to filter out files that need syncing.

FAQs

Package last updated on 15 Jul 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.