dbnexus 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1 @@
1
+ MIT License
package/README.md ADDED
@@ -0,0 +1,166 @@
1
+ # DB Nexus
2
+
3
+ > Database management tool with web UI - like Prisma Studio for any database
4
+
5
+ [![npm version](https://img.shields.io/npm/v/dbnexus.svg)](https://www.npmjs.com/package/dbnexus)
6
+ [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)
7
+
8
+ ## Features
9
+
10
+ - 🖥️ **Modern Web UI** - Beautiful interface for database management
11
+ - 🔌 **Multiple Databases** - PostgreSQL, MySQL, MariaDB, SQLite
12
+ - 🔄 **Schema Sync** - Compare and migrate schemas between databases
13
+ - 📊 **Data Sync** - Synchronize table data with conflict resolution
14
+ - 🎨 **Schema Diagram** - Visual database schema editor
15
+ - 📜 **Query History** - Track and replay queries
16
+ - 🔒 **Secure** - Encrypted credentials with AES-256-GCM
17
+ - 🛡️ **Safety First** - Production guardrails for dangerous queries
18
+
19
+ ## Installation
20
+
21
+ ### Global Installation
22
+
23
+ ```bash
24
+ npm install -g dbnexus
25
+ ```
26
+
27
+ ### Using npx
28
+
29
+ ```bash
30
+ npx dbnexus
31
+ ```
32
+
33
+ ## Usage
34
+
35
+ Start DB Nexus:
36
+
37
+ ```bash
38
+ dbnexus
39
+ ```
40
+
41
+ This will start the server and open your browser to `http://localhost:3001`.
42
+
43
+ ### Options
44
+
45
+ ```bash
46
+ dbnexus --port 8080 # Run on custom port
47
+ dbnexus --data-dir /path # Use custom data directory
48
+ dbnexus --no-open # Don't open browser automatically
49
+ dbnexus --help # Show help
50
+ ```
51
+
52
+ ### Commands
53
+
54
+ ```bash
55
+ dbnexus # Start DB Nexus (default)
56
+ dbnexus start # Explicit start command
57
+ dbnexus --version # Show version
58
+ ```
59
+
60
+ ## Data Storage
61
+
62
+ DB Nexus stores its metadata database in:
63
+
64
+ - **Linux/Mac**: `~/.dbnexus/metadata.db`
65
+ - **Windows**: `%USERPROFILE%\.dbnexus\metadata.db`
66
+
67
+ You can customize this location:
68
+
69
+ ```bash
70
+ # Using flag
71
+ dbnexus --data-dir /custom/path
72
+
73
+ # Using environment variable
74
+ DBNEXUS_DATA_DIR=/custom/path dbnexus
75
+ ```
76
+
77
+ ## Features Overview
78
+
79
+ ### Connection Management
80
+
81
+ - Add and manage multiple database connections
82
+ - Organize connections into projects and groups
83
+ - Test connection health
84
+ - Encrypted credential storage
85
+
86
+ ### Query Editor
87
+
88
+ - Execute SQL queries with syntax highlighting
89
+ - View results in a data grid
90
+ - Edit data inline
91
+ - Query history and saved queries
92
+
93
+ ### Schema Management
94
+
95
+ - Browse tables, columns, indexes, and foreign keys
96
+ - Compare schemas between databases
97
+ - Generate migration SQL
98
+ - Apply schema changes
99
+
100
+ ### Data Synchronization
101
+
102
+ - Compare data between tables
103
+ - Sync data with conflict resolution
104
+ - Bulk data operations
105
+ - Dump and restore databases
106
+
107
+ ### Schema Diagram
108
+
109
+ - Visual database schema editor
110
+ - Drag-and-drop table relationships
111
+ - Create and modify tables visually
112
+ - Export diagrams
113
+
114
+ ## Requirements
115
+
116
+ - Node.js 18 or higher
117
+ - One of: PostgreSQL, MySQL, MariaDB, or SQLite
118
+
119
+ ## Supported Databases
120
+
121
+ - **PostgreSQL** 9.6+
122
+ - **MySQL** 5.7+
123
+ - **MariaDB** 10.2+
124
+ - **SQLite** 3.0+
125
+
126
+ ## Configuration
127
+
128
+ ### Environment Variables
129
+
130
+ - `DBNEXUS_DATA_DIR` - Custom data directory
131
+ - `PORT` - Server port (default: 3001)
132
+ - `NODE_ENV` - Environment (development/production)
133
+
134
+ ## Uninstallation
135
+
136
+ ```bash
137
+ # Remove the package
138
+ npm uninstall -g dbnexus
139
+
140
+ # Remove all data
141
+ rm -rf ~/.dbnexus
142
+ ```
143
+
144
+ ## Documentation
145
+
146
+ - [Full Documentation](https://docs.dbnexus.dev)
147
+ - [GitHub Repository](https://github.com/akademskig/dbnexus)
148
+ - [Issue Tracker](https://github.com/akademskig/dbnexus/issues)
149
+
150
+ ## Contributing
151
+
152
+ Contributions are welcome! Please see our [Contributing Guide](https://github.com/akademskig/dbnexus/blob/main/CONTRIBUTING.md).
153
+
154
+ ## License
155
+
156
+ MIT © DB Nexus Team
157
+
158
+ ## Support
159
+
160
+ - 📧 Email: <admin@dbnexus.dev>
161
+ - 🐛 Issues: [GitHub Issues](https://github.com/akademskig/dbnexus/issues)
162
+ - 💬 Discussions: [GitHub Discussions](https://github.com/akademskig/dbnexus/discussions)
163
+
164
+ ---
165
+
166
+ **Like Prisma Studio, but for any database** - Manage PostgreSQL, MySQL, MariaDB, and SQLite databases with a beautiful web interface.