Plugins

Create a Plugin

Scaffold a VitNode plugin, register its package in your host app, and serve its first TanStack Start page.

A plugin is the starting point for a VitNode feature. It keeps routes, API modules, data, translations, and AdminCP extensions together in one installable package. Nice boundaries; fewer archaeological digs later.

Plugins need a workspace

Run the generator from a repository with turbo.json. When creating an app, turn on Turborepo first; a plain single-folder app has nowhere for plugins/*.

Generate the package

Run this at the workspace root and enter a package name such as @acme/site-notes when prompted:

Create a VitNode plugin
bun create vitnode-app@canary --plugin

Run/Restart it and visit the route

Start the plugin in development
bun dev

Check the generated page

Visit the route printed in the console, such as http://localhost:3000/site-notes. You should see a page with a title and a link to the plugin's README.

Generated plugin page with title and link to README

Add the next capability