Adding Components
How to add new components to your ProofKit project
After initializing a new ProofKit project, prefer agents or package-native tools such as shadcn and @proofkit/typegen for most post-init changes.
Major changes in v2!
The old proofkit add flows are being phased out. This page is now legacy guidance only.
The ProofKit package is installed in your project, and as a script in your package.json, so you can run the following command (as long as your current directory is your project root):
npm run proofkitpnpm proofkityarn proofkitbun proofkitThis will prompt you with a list of available components and features to add to your project.
Adding a Page
ProofKit includes many page templates to help you build out your web app. Use this command to select one.
npm run proofkit add pagepnpm proofkit add pageyarn proofkit add pagebun proofkit add pageIf the template you select requires data, you may be prompted to select which data source and schema to use. (If there is only one, it will be selected by default without prompting)
Adding a Data Source
If you need to connect to a new database or FileMaker file, use this command.
npm run proofkit add datapnpm proofkit add datayarn proofkit add databun proofkit add dataFor FileMaker data sources, a single "Data Source" consists of:
- A FileMaker Server
- A FileMaker File
- An OttoFMS API Key (representing a single account name with permission to the file)
If you need to change any one of these (i.e. to connect to a different file on the same server), you'll want to add a new data source.
Adding Schema
When you want to interact with data from a new table or layout, you'll need to add a schema.
npm run proofkit add schemapnpm proofkit add schemayarn proofkit add schemabun proofkit add schema