Skip to content

TUAN130294/vibecodekit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

42 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Universal Development Kit for Vibecoder πŸš€

Complete full-stack toolkit for rapid development with AI-powered workflows, automation, and real-time analytics.

Includes: Node.js + TypeScript backend, React + Next.js frontend, Python automation/ML, n8n workflows, PostgreSQL/MongoDB/Redis, GraphQL, AWS deployment, and comprehensive UI/UX guidance.

✨ What's New - Universal Kit 2.0

🎯 Modular Architecture (LEGO System)

  • Lite Mode - Serverless deployment, $0/month, 5 minutes setup
  • Pro Mode - Docker with all services, $20-50/month
  • Smart CLI Init - Choose only what you need with npm run init
  • Auto Cleanup - Removes unused modules to keep project clean

πŸ’° Serverless First (NEW!)

  • Zero Cost Start - Vercel + Supabase free tier
  • Scale Gradually - $0 β†’ $20 β†’ $100+ as you grow
  • Easy Upgrade - Lite β†’ Pro in 2 hours with migration guide

🎯 Phase 1: Core 80%

  • Frontend Rules: React, Next.js 14, Tailwind CSS best practices
  • AI Agent System: Code reviewer, test generator, refactoring assistant
  • Code Templates: React components, API endpoints, full CRUD features
  • Database Support: MongoDB (Mongoose), Prisma ORM (in addition to TypeORM)
  • GraphQL: Complete GraphQL API setup with Apollo Server
  • Deployment: Serverless (Vercel), Docker, AWS (EC2, ECS, Lambda)
  • Code Protection: Prevent AI from breaking critical code
  • Human-Friendly DX: Clean project structure, hidden AI configs

🎁 Features

Frontend Development

  • βœ… React 18+ - Functional components, hooks, TypeScript
  • βœ… Next.js 14 - App Router, Server Components, RSC
  • βœ… Tailwind CSS - Utility-first styling with design system
  • βœ… TypeScript - Strict type checking, enhanced DX
  • βœ… Component Templates - Ready-to-use templates for rapid development

Backend Development

  • βœ… Node.js + Express - REST API with TypeScript
  • βœ… GraphQL - Apollo Server with type-safe resolvers
  • βœ… Authentication - JWT, middleware, role-based access
  • βœ… API Templates - REST and GraphQL endpoint generators

Database & ORM

  • βœ… PostgreSQL - Primary relational database
  • βœ… TypeORM - Entity-based ORM with migrations
  • βœ… Prisma - Modern ORM with excellent TypeScript support
  • βœ… MongoDB - NoSQL with Mongoose ODM
  • βœ… Redis - Caching and session store

AI Agent System πŸ€–

  • βœ… Code Reviewer - Automated code review with best practices
  • βœ… Test Generator - Auto-generate unit, integration, E2E tests
  • βœ… Refactoring Assistant - Intelligent refactoring suggestions
  • βœ… Feature Workflow - End-to-end feature development automation
  • βœ… Documentation Generator - Auto-generate docs from code

Code Generation Templates

  • βœ… React Components - Component + tests + stories
  • βœ… Custom Hooks - Reusable hooks with tests
  • βœ… Next.js Pages - Server/Client components
  • βœ… REST APIs - Full CRUD endpoints with validation
  • βœ… GraphQL Resolvers - Type-safe resolvers
  • βœ… Full CRUD Features - Frontend + Backend + Tests in one command

Automation & ML

  • βœ… n8n Workflows - No-code automation platform
  • βœ… Python Workers - Background tasks, ML inference
  • βœ… Scheduled Jobs - Cron-based automation
  • βœ… Event-Driven - Webhook and queue processing

Deployment & DevOps

  • βœ… AWS Deployment - EC2, ECS, Lambda, Elastic Beanstalk
  • βœ… Docker - Multi-service orchestration
  • βœ… GitHub Actions - CI/CD pipelines
  • βœ… Monitoring - CloudWatch logs and metrics

Testing

  • βœ… Jest - Unit and integration tests
  • βœ… React Testing Library - Component tests
  • βœ… Playwright - E2E tests
  • βœ… Supertest - API endpoint tests

UI/UX Pro Max Kit 🎨

  • βœ… 57 Design Styles - Pre-designed style systems
  • βœ… 95 Color Palettes - Professional color schemes
  • βœ… 56 Font Pairings - Typography combinations
  • βœ… 24 Chart Types - Data visualization components
  • βœ… 98 UX Guidelines - Best practice patterns

Credits

πŸš€ Quick Start

Option 1: Lite Mode (Serverless - Recommended for Beginners)

Cost: $0/month | Setup: 5 minutes

# 1. Install dependencies
npm install

# 2. Run smart initializer
npm run init
# Choose: Lite Mode
# Select features you need

# 3. Start development
npm run dev:lite
# Opens http://localhost:3000

# 4. Deploy for free (when ready)
npm run deploy:vercel

Windows Users:

  • Double-click vibekit/scripts/INIT_PROJECT.bat to initialize
  • Double-click vibekit/scripts/RUN_WEB.bat to start coding

πŸ“š Lite Mode Guide:


Option 2: Pro Mode (Docker - For Production)

Cost: $20-50/month | Setup: 20 minutes

# 1. Install dependencies
npm install

# 2. Run smart initializer
npm run init
# Choose: Pro Mode
# Select all features you need

# 3. Start with Docker (all services)
npm run dev:pro
# Starts: PostgreSQL, Redis, Next.js app
# OR
npm run dev:full
# Starts: All above + Python workers + n8n

# 4. Deploy to server
npm run deploy:docker

πŸ“š Pro Mode Guides:


🎯 What's the Difference?

Feature Lite Mode Pro Mode
Cost $0/month $20-50/month
Setup Time 5 minutes 20 minutes
Stack Next.js + Supabase Docker + All Services
Scale Auto (serverless) Manual (VPS)
Best For MVPs, Learning, Side Projects Production, Teams, High Traffic

πŸ’‘ Recommendation:

  • Start Lite β†’ Deploy for free β†’ Get users β†’ Upgrade to Pro when needed

πŸ“– Next Steps

  1. Initialize Project: npm run init or double-click vibekit/scripts/INIT_PROJECT.bat
  2. Start Coding: npm run dev:lite or double-click vibekit/scripts/RUN_WEB.bat
  3. Explore Kit Guide: Open http://localhost:3000/kit-guide
  4. Generate Features: Use Prompt Generator & Plan Generator tools

πŸ“– Full Documentation:

πŸ“ Project Structure

.
β”œβ”€β”€ .cursor/rules/              # AI coding rules & best practices
β”‚   β”œβ”€β”€ frontend/               # React, Next.js, Tailwind
β”‚   β”‚   β”œβ”€β”€ react.md
β”‚   β”‚   β”œβ”€β”€ nextjs.md
β”‚   β”‚   └── tailwind.md
β”‚   β”œβ”€β”€ backend.md              # Node.js, Express patterns
β”‚   β”œβ”€β”€ api/                    # API design & GraphQL
β”‚   β”‚   └── graphql.md
β”‚   β”œβ”€β”€ database/               # Database patterns
β”‚   β”‚   β”œβ”€β”€ database.md         # PostgreSQL + TypeORM
β”‚   β”‚   β”œβ”€β”€ mongodb.md          # MongoDB + Mongoose
β”‚   β”‚   └── prisma.md           # Prisma ORM
β”‚   β”œβ”€β”€ deployment/             # Deployment guides
β”‚   β”‚   └── aws.md
β”‚   β”œβ”€β”€ testing.md              # Testing strategies
β”‚   β”œβ”€β”€ security.md             # Security best practices
β”‚   └── uiuxpro.md              # UI/UX guidelines
β”‚
β”œβ”€β”€ .agent/                     # AI agent system
β”‚   β”œβ”€β”€ config.json             # Agent configuration
β”‚   β”œβ”€β”€ skills/                 # Specialized agent skills
β”‚   β”‚   β”œβ”€β”€ code-reviewer.md
β”‚   β”‚   β”œβ”€β”€ test-generator.md
β”‚   β”‚   └── refactoring.md
β”‚   └── workflows/              # Automated workflows
β”‚       └── feature-workflow.md
β”‚
β”œβ”€β”€ .vibecoder/                 # Vibecoder configuration
β”‚   β”œβ”€β”€ config.json             # Main config
β”‚   └── prompts/                # Prompt templates
β”‚       └── code-generation.md
β”‚
β”œβ”€β”€ templates/                  # Code generation templates
β”‚   β”œβ”€β”€ react/                  # React templates
β”‚   β”‚   β”œβ”€β”€ component/          # Component template
β”‚   β”‚   β”œβ”€β”€ hook/               # Custom hook template
β”‚   β”‚   └── page/               # Next.js page template
β”‚   β”œβ”€β”€ api/                    # API templates
β”‚   β”‚   └── rest-endpoint/      # REST endpoint template
β”‚   └── fullstack/              # Full-stack templates
β”‚       └── crud-feature/       # Complete CRUD template
β”‚
β”œβ”€β”€ src/                        # Backend source code
β”‚   β”œβ”€β”€ entities/               # Database models (TypeORM)
β”‚   β”œβ”€β”€ services/               # Business logic
β”‚   β”œβ”€β”€ controllers/            # Route handlers
β”‚   β”œβ”€β”€ middleware/             # Express middleware
β”‚   β”œβ”€β”€ routes/                 # API routes
β”‚   └── config/                 # Configuration
β”‚
β”œβ”€β”€ app/                        # Frontend (Next.js App Router)
β”‚   β”œβ”€β”€ api/                    # API routes
β”‚   β”œβ”€β”€ components/             # React components
β”‚   └── (routes)/               # Page routes
β”‚
β”œβ”€β”€ memory-bank/                # Project documentation
β”‚   β”œβ”€β”€ project-brief.md        # Project overview
β”‚   β”œβ”€β”€ tech-stack.md           # Technology choices
β”‚   β”œβ”€β”€ architecture.md         # System architecture
β”‚   β”œβ”€β”€ api-specs.md            # API documentation
β”‚   β”œβ”€β”€ implementation-plan.md  # Development roadmap
β”‚   β”œβ”€β”€ decisions.md            # Technical decisions
β”‚   └── progress.md             # Current status
β”‚
β”œβ”€β”€ docs/                       # Additional documentation
β”‚   β”œβ”€β”€ quick-start.md          # Quick start guide
β”‚   └── n8n-workflow-sample.json # Sample n8n workflow
β”‚
β”œβ”€β”€ tests/                      # Test files
β”‚   β”œβ”€β”€ unit/                   # Unit tests
β”‚   β”œβ”€β”€ integration/            # Integration tests
β”‚   └── e2e/                    # End-to-end tests
β”‚
β”œβ”€β”€ ui-ux-pro-max-skill-main/   # UI/UX design system
β”‚   β”œβ”€β”€ styles/                 # 57 design styles
β”‚   β”œβ”€β”€ palettes/               # 95 color palettes
β”‚   β”œβ”€β”€ fonts/                  # 56 font pairings
β”‚   β”œβ”€β”€ charts/                 # 24 chart types
β”‚   └── guidelines/             # 98 UX patterns
β”‚
└── services/
    └── python-worker/          # Python automation worker

πŸ€– Using AI Agent System

Code Review

# Review current file
/review

# Review with auto-fix
/review --fix

# Security-focused review
/review --security

# Review entire PR
/review --pr

Generate Code

# Generate React component
/generate component UserCard

# Generate API endpoint
/generate api products

# Generate full CRUD feature
/generate crud products

# Generate tests
/generate-tests

Automated Workflows

# Run full feature development workflow
/workflow feature "Add user profile page"

# Workflow includes:
# - Requirements analysis
# - Implementation plan
# - Code generation
# - Test generation
# - Code review
# - Documentation

Refactoring

# Get refactoring suggestions
/refactor

# Auto-apply safe refactorings
/refactor --auto

# Focus on performance
/refactor --performance

πŸ’» Development

Commands

# Development
npm run dev              # Start dev server
npm run worker           # Start background worker

# Building
npm run build            # Production build
npm start                # Start production server

# Testing
npm test                 # Run unit tests
npm run test:e2e         # Run E2E tests
npm run test:watch       # Watch mode

# Code Quality
npm run lint             # ESLint
npm run format           # Prettier
npm run type-check       # TypeScript

# Database
npx prisma migrate dev   # Create & apply migration
npx prisma studio        # Open database GUI
npx prisma generate      # Generate Prisma client

# Python (if using)
black src/               # Format Python code
pylint src/              # Lint Python code
python -m pytest src/    # Run Python tests

Environment Variables

# .env.local
DATABASE_URL="postgresql://user:pass@localhost:5432/db"
JWT_SECRET="your-secret-key"
NODE_ENV="development"

# Optional
MONGODB_URI="mongodb://localhost:27017/db"
REDIS_URL="redis://localhost:6379"
AWS_REGION="us-east-1"

🚒 Deployment

AWS Elastic Beanstalk (Easiest)

eb init
eb create production
eb deploy

Docker + AWS ECS

docker build -t my-app .
docker push to ECR
# Deploy to ECS Fargate

AWS Lambda (Serverless)

amplify init
amplify add hosting
amplify publish

πŸ“– Full guide: See .cursor/rules/deployment/aws.md

πŸ“š Documentation

Quick References

Development Guides

Agent & Templates

🎨 UI/UX Pro Max Kit

Access 57 design styles, 95 color palettes, 56 font pairings, and 98 UX patterns:

ui-ux-pro-max-skill-main/
β”œβ”€β”€ styles/          # Complete design styles
β”œβ”€β”€ palettes/        # Color schemes
β”œβ”€β”€ fonts/           # Typography pairings
β”œβ”€β”€ charts/          # Data visualization
└── guidelines/      # UX best practices

Usage: Pick a style, palette, and font pairing. Document in your PRs.

πŸ§ͺ Testing

Unit Tests (Jest)

// Component test
import { render, screen } from '@testing-library/react';
import { UserCard } from './UserCard';

test('renders user name', () => {
  render(<UserCard user={mockUser} />);
  expect(screen.getByText('John Doe')).toBeInTheDocument();
});

E2E Tests (Playwright)

test('user can sign up', async ({ page }) => {
  await page.goto('/signup');
  await page.fill('[name="email"]', 'test@example.com');
  await page.click('button[type="submit"]');
  await expect(page).toHaveURL('/dashboard');
});

API Tests (Supertest)

import request from 'supertest';
import { app } from '../app';

test('GET /api/users returns users', async () => {
  const res = await request(app).get('/api/users');
  expect(res.status).toBe(200);
  expect(res.body.data).toBeInstanceOf(Array);
});

πŸ”’ Security

  • βœ… JWT Authentication - Secure token-based auth
  • βœ… Rate Limiting - Prevent abuse
  • βœ… CORS - Configured allow-list
  • βœ… Helmet - Security headers
  • βœ… Input Validation - Zod schemas
  • βœ… SQL Injection Prevention - Parameterized queries
  • βœ… XSS Protection - Sanitized inputs
  • βœ… Secrets Management - AWS Secrets Manager support

πŸ› οΈ Troubleshooting

Database Connection Issues

# Test connection
npx prisma db pull

# Reset database
npx prisma migrate reset

# Check DATABASE_URL
echo $DATABASE_URL

Port Already in Use

# Mac/Linux
lsof -ti:3000 | xargs kill -9

# Windows
netstat -ano | findstr :3000

TypeScript Errors

# Regenerate Prisma types
npx prisma generate

# Check TypeScript config
npm run type-check

Docker Issues

# View logs
docker-compose logs

# Restart services
docker-compose restart

# Clean rebuild
docker-compose down -v
docker-compose up --build

More help: See memory-bank/progress.md for current status and blockers.

πŸ“¦ Tech Stack

Frontend

  • React 18 + TypeScript
  • Next.js 14 (App Router)
  • Tailwind CSS
  • React Query / SWR
  • Zustand / Context API

Backend

  • Node.js 18+
  • Express.js
  • TypeScript
  • Apollo Server (GraphQL)

Database

  • PostgreSQL (primary)
  • MongoDB (alternative)
  • Redis (caching)
  • TypeORM / Prisma (ORM)

Testing

  • Jest
  • React Testing Library
  • Playwright
  • Supertest

DevOps

  • Docker
  • GitHub Actions
  • AWS (EC2, ECS, Lambda)
  • CloudWatch

Automation

  • n8n (workflows)
  • Python (ML/data processing)

🀝 Contributing

This is a starter kit. Customize it for your needs:

  1. Update branding and naming
  2. Add/remove features based on requirements
  3. Extend templates for your patterns
  4. Configure agents for your workflow

πŸ“„ License

MIT License - Use freely for personal and commercial projects.

πŸ”— Resources


Ready to build? πŸš€

npm run dev

Then use Vibecoder commands like /generate component or /workflow feature to accelerate development!

About

No description, website, or topics provided.

Resources

Stars

7 stars

Watchers

2 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors