Antagents DB Tool is a revolutionary AI-native Backend-as-a-Service platform that transforms natural language into production-ready database architectures. Build complete database schemas, APIs, and real-time applications by simply describing what you need in plain English.
- Natural Language Schema Generation: Describe your database in plain English
- Intelligent Query Building: Convert natural language to optimized SQL
- Smart API Generation: Auto-generate REST and GraphQL APIs from your schema
- Code Optimization: AI-driven performance and security improvements
- Real-time Database: PostgreSQL with real-time subscriptions
- Authentication: Multi-provider auth (OAuth, JWT, MFA, Magic Links)
- File Storage: S3-compatible storage with CDN integration
- Edge Functions: Serverless functions with TypeScript support
- WebSocket Support: Real-time data synchronization
- Auto-generated APIs: REST and GraphQL endpoints from database schema
- Multi-tenant Architecture: Complete data isolation
- Row Level Security: Fine-grained access control
- Compliance Ready: SOC 2, GDPR, CCPA support
- Comprehensive Monitoring: APM, logging, and analytics
- High Availability: 99.9% uptime SLA
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Frontend (Next.js 14) β
β Dashboard β Schema Designer β API Explorer β Analytics β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β
βΌ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β API Gateway (Express) β
β REST API β GraphQL β WebSocket β Auth β Rate Limiting β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β
βββββββββββββ΄ββββββββββββ
βΌ βΌ
βββββββββββββββββββββββββββ βββββββββββββββββββββββββββββββ
β AI Services β β Core Services β
β Schema Gen β Query AI β β Database β Storage β Auth β
βββββββββββββββββββββββββββ βββββββββββββββββββββββββββββββ
β β
βββββββββββββ¬ββββββββββββ
βΌ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Data Layer β
β PostgreSQL β Redis β S3 Storage β Elasticsearch β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
- Node.js 18+ (required)
- pnpm 8+ (required - install with
npm install -g pnpm) - Docker & Docker Compose (required for database services)
- Git
- Clone the repository
git clone https://github.com/pratiksahu/antagents-db-tool.git
cd antagents-db-tool- Update pnpm to latest version (if needed)
npm install -g pnpm@latest- Install dependencies
# Install all workspace dependencies
pnpm install
# If you encounter issues, try:
pnpm install -r- Set up environment variables
cp .env.example .env
# The default .env.example is pre-configured for local development
# Update DATABASE_URL and REDIS_URL if using different credentials- Create required directories
mkdir -p infrastructure/docker/postgres
mkdir -p database/dev-scripts- Create PostgreSQL initialization script
cat > infrastructure/docker/postgres/init.sql << 'EOF'
-- Initial database setup for Antagents DB Tool
CREATE DATABASE antagents_test;
CREATE DATABASE antagents_staging;
CREATE EXTENSION IF NOT EXISTS "uuid-ossp";
CREATE EXTENSION IF NOT EXISTS "pgcrypto";
CREATE EXTENSION IF NOT EXISTS "pg_trgm";
GRANT ALL PRIVILEGES ON DATABASE antagents_development TO antagents;
GRANT ALL PRIVILEGES ON DATABASE antagents_test TO antagents;
GRANT ALL PRIVILEGES ON DATABASE antagents_staging TO antagents;
EOF- Start Docker services (PostgreSQL, Redis, etc.)
# Start PostgreSQL and Redis containers
docker-compose up -d postgres redis
# Verify containers are running
docker ps
# If you encounter network issues, the docker-compose.yml has been updated with proper network configuration- Quick Start - Simple Backend Server
# For a quick demo, run the simple backend server
node simple-server.js
# Server will be available at http://localhost:4000
# Health check: http://localhost:4000/health
# API Status: http://localhost:4000/api/v1/status- View the Frontend Demo
# Open the demo dashboard in your browser
open index.html
# Or manually open: /Users/kumarpratik/Sites/ai/openbase/index.htmlFor full development with all features:
# Install missing workspace packages dependencies
cd apps/backend
pnpm add express cors dotenv
cd ../frontend
pnpm add next react react-dom
# Start development servers
cd ../..
pnpm dev- Backend API: http://localhost:4000
- Health: http://localhost:4000/health
- Status: http://localhost:4000/api/v1/status
- Frontend Demo: Open index.html in browser
- PostgreSQL: localhost:5432
- Database: antagents_development
- User: antagents
- Password: antagents_dev
- Redis: localhost:6379
- pgAdmin: http://localhost:5050 (if started)
- MinIO Console: http://localhost:9001 (if started)
Issue: pnpm version incompatible
npm install -g pnpm@latestIssue: Docker containers fail to start
# Stop all containers
docker-compose down
# Remove volumes if needed
docker-compose down -v
# Restart
docker-compose up -d postgres redisIssue: Module not found errors
# The project uses workspace packages that need to be created
# For quick start, use the simple-server.js instead
node simple-server.jsIssue: Permission denied on Docker volumes
# Ensure directories exist with proper permissions
mkdir -p infrastructure/docker/postgres
mkdir -p database/dev-scriptsantagents-db-tool/
βββ apps/
β βββ frontend/ # Next.js 14 application
β βββ backend/ # Node.js/Express API server
βββ packages/
β βββ shared/ # Shared utilities and constants
β βββ types/ # TypeScript type definitions
β βββ ui-components/ # Reusable UI components
β βββ database/ # Database models and migrations
βββ tools/
β βββ cli/ # CLI tool for project management
β βββ scripts/ # Development and deployment scripts
βββ infrastructure/
β βββ docker/ # Docker configurations
β βββ kubernetes/ # K8s manifests
β βββ terraform/ # Infrastructure as Code
βββ docs/ # Documentation
# Development
pnpm dev # Start all services in development mode
pnpm build # Build all packages
pnpm test # Run tests
pnpm lint # Run linting
pnpm format # Format code with Prettier
# Database
pnpm db:migrate # Run database migrations
pnpm db:seed # Seed development data
pnpm db:reset # Reset database
# Docker
pnpm docker:up # Start Docker services
pnpm docker:down # Stop Docker services
pnpm docker:logs # View Docker logs
# Type Generation
pnpm generate:types # Generate TypeScript types from database# Run all tests
pnpm test
# Run specific test suites
pnpm test:unit # Unit tests
pnpm test:integration # Integration tests
pnpm test:e2e # End-to-end tests
# Watch mode
pnpm test:watch
# Coverage
pnpm test:coverage- Build the application
pnpm build- Deploy with Kubernetes
kubectl apply -f infrastructure/kubernetes/- Or deploy with Docker
docker-compose -f docker-compose.production.yml up -d- Vercel: Optimized for Next.js frontend
- AWS: EKS, RDS, S3, CloudFront
- Google Cloud: GKE, Cloud SQL, Cloud Storage
- Azure: AKS, Azure Database, Blob Storage
- Self-hosted: Docker, Kubernetes
We welcome contributions! Please see our Contributing Guide for details.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Built with Next.js, Node.js, and PostgreSQL
- UI components from shadcn/ui
- AI powered by OpenAI and Anthropic
- Documentation: docs.antagents.ai
- Discord: Join our community
- Email: support+db-tool@antagents.ai
Built with β€οΈ by the Antagents Team