Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

Omni-Gang/BosDB-Browser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

BosDB - Browser Based Database Management Tool

BosDB License TypeScript Next.js

A modern, web-based database management tool with Git-like version control

Supporting PostgreSQL, MySQL, MariaDB, MongoDB, and Redis

Features β€’ Quick Start β€’ Pro Subscription β€’ Enterprise β€’ Documentation


Page 1

Page 2

Page 3

Page 4

Page 5


🌟 What Makes BosDB Unique?

First Database Tool with Built-in Version Control!

Unlike DBeaver, TablePlus, or any other database tool - BosDB has Git-like + SVN-like version control built-in:

  • βœ… Commit database changes like code
  • βœ… Rollback to any previous state (r-1, r-2, etc.)
  • βœ… Compare revisions and see differences
  • βœ… Branches for different development streams
  • βœ… History of all changes with full audit trail
  • βœ… Multi-user tracking - see who changed what

Perfect for teams, audits, and compliance!


✨ Features

πŸ—„οΈ Multi-Database Support

  • PostgreSQL - Full SQL support with advanced features
  • MySQL - Popular relational database
  • MariaDB - MySQL-compatible fork
  • MongoDB - Document-oriented NoSQL
  • Redis - In-memory key-value store

πŸ”₯ Core Features

  • βœ… Query Editor - Monaco editor with syntax highlighting
  • βœ… AI SQL Assistant - Get AI-powered help writing SQL queries
  • βœ… SQL Debugger - Set breakpoints and debug stored procedures
  • βœ… Execute Selected - Run only highlighted SQL
  • βœ… Multi-Tab Editor - Work on multiple queries simultaneously
  • βœ… Data Grid Editing - Inline editing like a spreadsheet
  • βœ… Table Designer - Visual table creation with columns, types, constraints
  • βœ… Query History - Automatic tracking of all queries
  • βœ… Schema Explorer - Browse databases, schemas, tables, and procedures
  • βœ… Syntax Validation - Real-time query validation with helpful warnings
  • βœ… CSV/JSON Export - Export query results to multiple formats
  • βœ… Dark/Light Mode - Fully themeable interface
  • βœ… Connection Management - Secure credential storage

🎯 Version Control (Git + SVN-like)

  • βœ… Automatic Change Tracking - Every query is tracked
  • βœ… Commit System - Commit changes with messages
  • βœ… SVN-style Revisions - r0 (current), r-1 (previous), r-2, etc.
  • βœ… Rollback - Revert to any previous state
  • βœ… Compare Revisions - See what changed between versions
  • βœ… Branch Management - Create branches for features
  • βœ… History Timeline - Visual history of all commits
  • βœ… Pending Changes - See uncommitted changes
  • βœ… Individual Commits - Commit specific changes
  • βœ… Fast Parallel Loading - 3x faster VCS page load

πŸ‘₯ Multi-User System

  • βœ… User Login - Secure authentication with passwords
  • βœ… Password Security - bcrypt hashing, strength validation
  • βœ… User Registration - New users request access
  • βœ… Admin Approval - Admins approve/reject user requests
  • βœ… Super Admin Panel - Dedicated panel for platform owners
  • βœ… Organization Scoping - Admins only manage their org users
  • βœ… Per-User Commits - Track who made each change
  • βœ… Role-Based Access - Admin, user, and super-admin roles
  • βœ… Granular Permissions - Read, Edit, Commit, Manage Schema per connection
  • βœ… Audit Trail - Complete history of who did what
  • βœ… Demo Accounts - Pre-configured accounts for instant testing

πŸ›‘οΈ Security

  • βœ… Encrypted Credentials - AES-256 encryption at rest
  • βœ… Password Hashing - bcrypt with salt rounds
  • βœ… SQL Injection Protection - Built-in query validation
  • βœ… Query Timeouts - Prevent long-running queries
  • βœ… Row Limits - Automatic result set limiting
  • βœ… Permission Enforcement - Granular access control
  • βœ… Separate Super Admin DB - Isolated super admin credentials
  • βœ… Domain Restrictions - Super admin access limited to @bosdb.com

πŸ’Ž Pro Subscription

BosDB offers a Free tier and Pro tier with advanced features:

Free vs Pro Comparison

Feature Free Pro
Database Connections 2 Unlimited
Query History 50 Unlimited
Version Control ❌ βœ…
Table Designer ❌ βœ…
Data Grid Editing Read-only Full Edit
Export Formats CSV CSV, JSON, SQL
Granular Permissions ❌ βœ…
Priority Support ❌ βœ…

Pricing

Plan Price Features
Free $0 forever Basic features
Pro Trial FREE for 1 month All Pro features, no card required
Pro Monthly $29/month All Pro features
Pro Yearly $249/year Save 29% (2 months free!)

How to Upgrade

  1. Go to /pricing in your BosDB instance
  2. Click "Start 1 Month Free Trial" (no credit card!)
  3. Or select Monthly/Yearly and enter payment details
  4. All users in your instance get Pro features! πŸŽ‰

🏒 Enterprise Deployment

BosDB uses a self-hosted model perfect for enterprise:

Each Company Gets Their Own Instance

Company A's Server                 Company B's Server
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”           β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  BosDB Instance A   β”‚           β”‚  BosDB Instance B   β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€           β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ Subscription: Pro   β”‚           β”‚ Subscription: Free  β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€           β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ Users: Alice, Bob   β”‚           β”‚ Users: Carol, Dan   β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€           β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ Their Databases     β”‚           β”‚ Their Databases     β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜           β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Benefits

  • βœ… Complete Isolation - Each company's data stays on their server
  • βœ… System-Wide Subscription - When a company buys Pro, all employees get Pro
  • βœ… No Shared Infrastructure - Your database credentials never leave your premises
  • βœ… Compliance Ready - Perfect for HIPAA, SOC2, GDPR requirements

πŸš€ Quick Start

Prerequisites

  • Node.js 18+ and npm
  • Docker (for test databases)

Installation

# Clone repository
git clone https://github.com/Omni-Gang/BosDB-Browser.git
cd BosDB-Browser

# Install dependencies
npm install

# Set up environment
cd apps/web
cp .env.example .env
# Add ENCRYPTION_MASTER_KEY=your-secret-key-here

# Start dev server
cd ../..
npm run dev

Access Application

Open http://localhost:3001 in your browser.

🎯 Demo Accounts (No Registration Required!)

Test BosDB immediately with pre-configured accounts:

Individual Account

Email:    [email protected]
Password: Demo123!

Enterprise Account

Email:    [email protected]
Password: Demo123!

Owner Account

Regular Login (/login):              [email protected] / Arush098!
Super Admin (/super-admin/login):    [email protected] / Arush098!

First Time Setup:

  1. Visit /login and select a demo account
  2. Explore all features immediately
  3. Or register your own account and get admin approval
  4. Access Super Admin panel at /super-admin/login (BosDB domain only)
  5. Start using!

🎯 Version Control System

How It Works

1. Automatic Tracking

-- Execute any query
INSERT INTO users VALUES (1, 'John');

-- Automatically tracked in "Pending Changes"

2. Commit Changes

1. Go to Version Control page
2. See pending changes
3. Click "Commit All" or commit individually
4. Enter commit message
5. Done! Your change is saved

3. View History

Version Control β†’ History Tab
- See all commits
- SVN-style revisions (r0, r-1, r-2...)
- Who made each change
- When it happened

4. Rollback

1. Click "Rollback to r-2"
2. Confirm
3. New commit created reverting to that state
4. All changes are reversible!

πŸ‘₯ Multi-User System

Employee Login

Default Admin:

  • User ID: admin
  • Password: Admin@123

Creating New Users:

  1. New employee visits /login
  2. Clicks "Register New User"
  3. Fills in details (password must be 8+ chars with uppercase, lowercase, number)
  4. Admin approves in Admin Panel (/admin)
  5. Employee can now login!

Granular Permissions

Admins can set per-connection permissions for each user:

  • Read Data - Can view table data
  • Edit Data - Can INSERT/UPDATE/DELETE
  • Commit Changes - Can commit to version control
  • Manage Schema - Can CREATE/ALTER/DROP tables

πŸ—„οΈ Supported Databases

PostgreSQL

Host: localhost
Port: 5432
Database: postgres
Username: postgres
Password: your_password

MySQL / MariaDB

Host: localhost
Port: 3306
Database: mydb
Username: root
Password: your_password

MongoDB

Host: localhost
Port: 27017
Database: mydb
Username: (optional)
Password: (optional)

Redis

Host: localhost
Port: 6379
Password: (optional)

πŸ“š Documentation


πŸ—οΈ Architecture

BosDB/
β”œβ”€β”€ apps/
β”‚   └── web/                    # Next.js frontend
β”‚       β”œβ”€β”€ src/app/            # Pages & API routes
β”‚       β”œβ”€β”€ src/components/     # React components
β”‚       β”œβ”€β”€ src/lib/            # Utilities & auth
β”‚       β”œβ”€β”€ .bosdb-vcs/         # Version control data
β”‚       β”œβ”€β”€ .bosdb-users.json   # User data
β”‚       └── .bosdb-subscription.json  # Subscription data
β”œβ”€β”€ packages/
β”‚   β”œβ”€β”€ core/                   # Core types
β”‚   β”œβ”€β”€ db-adapters/            # Database adapters
β”‚   β”œβ”€β”€ version-control/        # VCS engine
β”‚   β”œβ”€β”€ security/               # Encryption & validation
β”‚   └── utils/                  # Shared utilities

🎯 Roadmap

βœ… Completed (v0.4.0)

  • Multi-database support (5 databases)
  • Query editor with syntax highlighting
  • AI SQL Assistant - Get help writing queries
  • SQL Debugger - Debug stored procedures with breakpoints
  • Multi-Tab Editor - Multiple query tabs
  • Version control system (Git + SVN-like)
  • Fast VCS Loading - 3x faster with parallel API calls
  • Multi-user authentication with passwords
  • User approval workflow
  • Super Admin System - Separate admin panel for platform owners
  • Organization-scoped Admin - Admins only manage their org
  • Granular permissions (per-connection)
  • Table Designer
  • Data Grid with inline editing
  • Demo Accounts - Instant testing without registration
  • Pro subscription system
  • Enterprise deployment model
  • Export to CSV/JSON
  • Query history panel

🚧 In Progress

  • Import data (CSV, JSON)
  • Query builder (visual)
  • Auto-complete improvements

πŸ“‹ Planned

  • ER diagram generator
  • Performance monitoring
  • SSH tunnel support
  • Database comparison tools
  • Scheduled queries
  • Report generation

🀝 Contributing

Contributions welcome! Please read our contributing guidelines first.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

πŸ“ License

This project is licensed under the MIT License - see the LICENSE file for details.


πŸ™ Acknowledgments

  • Built with Next.js
  • Database adapters for PostgreSQL, MySQL, MongoDB, Redis
  • Version control inspired by Git and SVN
  • Monaco Editor for SQL editing

πŸ“§ Contact


Made with ❀️ by the BosDB Team

⭐ Star us on GitHub if you find this useful!

About

BosDB - Browser Based Database Management Tool

Resources

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages