fundset
v0.1.2
Published
Fundset CLI tool to initialize a new fundset project and install modules
Readme
Fundset CLI
Initialize a Fundset monorepo and add modules/layers from the Fundset registry.
Quick start
# Initialize in a new folder using the Postgres template
npx fundset init my-app -t pg
# Or initialize with the EVM template into the current directory
pnpm dlx fundset init . --template evm
# Add a module/layer later (wraps shadcn add)
npx fundset add https://fundset.vercel.app/r/fundset-evm-counter-module.jsonCommands
init
fundset init [dest] [options]- dest: target directory (defaults to
.) - -t, --template :
pgorevm. If omitted, you'll be prompted. - --registry-url : defaults to
https://fundset.vercel.app.
What it does (in order):
- Downloads
codefunded/fundset@mainas a tarball and extracts only files for the chosen template. - Runs post-install edits:
- updates root
package.jsonandpackages/web/package.json. - updates
payload.config.ts. - creates a root README for the new project.
- updates root
- Fetches registry metadata for the Counter module from
${registryUrl}/r/fundset-<template>-counter-module.json. - Installs the module via
npx -y shadcn@latest add <registry-json-url>. - Fixes shadcn imports to match the workspace.
- Installs any extra per-package dependencies returned by the registry metadata using
pnpm addinsidepackages/<pkg>. - Prints next steps.
Non-interactive usage example:
fundset init ./my-app --template pgadd
fundset add <url>Thin wrapper around shadcn add. Useful for adding modules/blocks later.
fundset add https://fundset.vercel.app/r/fundset-pg-counter-module.jsonExamples
# Create a Postgres template app in my-app/
npx fundset init my-app -t pg
# Create an EVM template app in the current directory
npx fundset init . -t evm
# Add a module after init
npx fundset add https://fundset.vercel.app/r/fundset-evm-counter-module.jsonRequirements
- Node.js 22 and a POSIX-like shell.
pnpmavailable on your PATH (the CLI uses it to install deps inside packages).- Network access to GitHub and the registry URL you pass.
Notes
- If you omit
--template, an interactive selector appears. - Default registry URL is
https://fundset.vercel.app; override with--registry-urlfor self-hosted registries. - The binary name is
fundset; the default command is theinitflow. Usefundset --helpfor details.
