Create Plugins
Learn how to create plugins for VitNode to extend its functionality.
This documentation is under construction! 🚧
We're working hard to bring you the best documentation experience.
In this section we'll guide you through the process of creating your first VitNode plugin. Whether you're building a simple feature or a complex application, VitNode's plugin system has got you covered.
By creating a plugin, you can extend the functionality like:
- 🚀 APIs: Build your own RESTful,
- 🧩 UI Components: Create reusable components for your application,
- 📄 Pages and Layouts: Define custom pages and layouts for your application,
- ⚡ Middleware: Add custom middleware to handle requests and responses,
- 🗄️ Database Models: Define your own database models and schemas,
- 🔗 Integrations: Connect with third-party services and APIs.
- ⚙️ Custom Logic: Implement any custom logic you need for your application.
- 🌟 And much more!
Create a Plugin
pnpm create vitnode-app@canary --plugin
bun create vitnode-app@canary --plugin
npx create-vitnode-app@canary --plugin
Prerequisites
Ignore (plugins)
Folders
Before diving into plugin development, please ignore all (plugins)
folders form search results in your IDE. These folders are generated by VitNode and contain the plugin code, which is not meant to be modified directly.
If you're using VS Code, this configuration is provided out-of-the-box via the .vscode/settings.json
file.