@dapplet/cli
TypeScript icon, indicating that this package has built-in type declarations

1.0.67 • Public • Published

📱 Dapplet CLI

Npm package version

Install

npm install -g @dapplet/cli

🪩 Features

Initialize a new dapplet

npx dapplet

or

npx dapplet init

... and cd into your dapplet's root directory

Configure your dapplet

Editable Config File: If you're working in an environment with solidity files, you can simply edit the file to use your contracts. We use EIP-2535 "facets" and the EIP-2535 "upgrade initializer" to compile, deploy, and publish your dapplet for you.

{
  "name": "my-dapplet",
  "chainId": "11155111",
  "sources": "../contracts" /* relative path to your contracts directory */,
  "facets": ["Greeter", "Counter"] /* contracts by name and (.sol) filename */,
  "initializer": {
    "GreeterInit": {
      "constructorArgs": ["0xdd6129055002c931e8dcF93C2eFDaf2e172e1592", 100],
      "function": "init(string)",
      "args": ["Hello World!"] /* set default args */
    }
  }
}

Start up the interface

npx dapplet dev

Go through the development setup process

TODO: visual helper gif

Code your frontend

TODO: visual helper gif

Build your dapplet

npx dapplet build

Push your dapplet to IPFS

npx dapplet push

Publish a Dapplet

TODO: visual helper gif


Ethereum 🤝 Microfrontends

The Building blocks for dApps. Buildable. Shareable. Reusable. Scalable.

About

Use the CLI to build your Dapplet:

  • 🏗️ Build Frontends in Hardhat, Foundry, and more - Dapplet-CLI is designed to work with any smart contract development environment.
  • 🧱 Publish to the Dapplet Directory - Share your dapp in one simple click!
  • 🥏 Fetch existing contract code - Download any sourcify-verified contract source-code with one simple command.

Dapplet combines the best tech:

  • 💎 EIP-2535 - The Diamond Standard.
  • 🦋 Piral - React Micro-Frontends.
  • 👟 Shoelace - React Web-Components.

Build with ANY WEB FRAMEWORK

Documentation

For detailed walkthroughs, see documentation.

Contributing

Contributions are always welcome, no matter how large or small. Before contributing, please read the code of conduct and contribution policy.

Readme

Keywords

none

Package Sidebar

Install

npm i @dapplet/cli

Weekly Downloads

3

Version

1.0.67

License

GPL-3.0

Unpacked Size

677 kB

Total Files

176

Last publish

Collaborators

  • tjvsx