Getting Started
Welcome to Universal DevTools Kit! This guide will help you get started with building custom DevTools.
Installation
Install the Vite plugin:
bash
pnpm add -D @u-devtools/viteBasic Setup
Add the plugin to your vite.config.ts:
typescript
import { defineConfig } from 'vite'
import { devtools } from '@u-devtools/vite'
export default defineConfig({
plugins: [
devtools({
// Your plugin configuration
})
]
})Create Your First Plugin
Use the CLI to scaffold a new plugin:
bash
pnpm create u-devtools-pluginOr create a plugin manually:
typescript
import { definePlugin } from '@u-devtools/kit/define-plugin'
export default definePlugin({
name: 'my-plugin',
clientPath: './src/client.ts',
setupServer(rpc, ctx) {
// Server-side logic
}
})Next Steps
- Learn about the Architecture
- Read the Plugin Development Guide
- Explore the API Reference