@vibecodeapp/cloud-studio
v0.2.2
Published
Lightweight database UI for SQLite with Prisma
Readme
Cloud Studio
A lightweight database UI for SQLite databases with Prisma. Drop-in replacement for Prisma Studio.
Features
- Built with Hono and React
- Auto-refreshes every 5 seconds
- View, create, edit, and delete records
Installation
Global Installation
npm install -g @vibecodeapp/cloud-studioProject Installation
npm install --save-dev @vibecodeapp/cloud-studioUsage
Running Cloud Studio
Make sure you have:
- A Prisma project with
schema.prisma - Generated Prisma Client:
npx prisma generate
Then run:
npx cloud-studioBy default, Cloud Studio runs on port 3001. You can customize the port:
PORT=5000 npx cloud-studioAdding to package.json
Add a script to your package.json:
{
"scripts": {
"studio": "cloud-studio"
}
}Then run:
npm run studioDevelopment
Prerequisites
- Node.js 18+ or Bun
- A Prisma project with SQLite database
Setup
# Install dependencies
npm install
# Run in development mode
npm run devThis starts:
- Backend server on port 3001
- Frontend dev server on port 5173
Building
npm run buildThis creates:
dist/client/- Bundled React appdist/server/- Bundled Node.js server
Architecture
Backend (Hono)
- Port 3001
- Uses Prisma Client from project
Frontend (React + Vite)
API Endpoints
GET /api/schema- Get database schemaGET /api/tables/:table- List records (with pagination)GET /api/tables/:table/:id- Get single recordPOST /api/tables/:table- Create recordPATCH /api/tables/:table/:id- Update recordDELETE /api/tables/:table/:id- Delete record
