axiodb 7.33.229 → 7.33.230

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.
Files changed (2) hide show
  1. package/README.md +83 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -33,6 +33,7 @@ SQLite is great, but it requires native bindings that break in Electron and cros
33
33
  - ✅ Built-in InMemoryCache with automatic invalidation
34
34
  - ✅ Multi-core parallelism with Worker Threads
35
35
  - ✅ Built-in web GUI at `localhost:27018`
36
+ - ✅ **NEW:** AxioDBCloud - TCP remote access for Docker/Cloud deployments
36
37
 
37
38
  ---
38
39
 
@@ -51,6 +52,7 @@ SQLite is great, but it requires native bindings that break in Electron and cros
51
52
  - **Transaction Support:** ACID-compliant transactions with savepoints, rollback, and Write-Ahead Logging (WAL)
52
53
  - **Single Instance Architecture:** Unified management for unlimited databases, collections, and documents
53
54
  - **Web-Based GUI Dashboard:** Visual database administration, query execution, and real-time monitoring at `localhost:27018`
55
+ - **AxioDBCloud Remote Access:** TCP-based client for connecting to AxioDB from anywhere—Docker, Cloud, or local network
54
56
  - **Zero-Configuration Setup:** Serverless architecture—install and start building instantly
55
57
  - **Custom Database Path:** Flexible storage locations for better project organization
56
58
 
@@ -89,6 +91,87 @@ await session.withTransaction(async (tx) => {
89
91
 
90
92
  ---
91
93
 
94
+ ## ☁️ AxioDBCloud - Remote Database Access (NEW!)
95
+
96
+ **Host AxioDB in Docker, connect from anywhere!** AxioDBCloud provides TCP-based remote access to your AxioDB instance with the exact same API as local embedded mode.
97
+
98
+ ### 🌟 Why AxioDBCloud?
99
+
100
+ - **🚀 Deploy Once, Connect Everywhere:** Host AxioDB in Docker/Cloud, connect from multiple clients
101
+ - **🔄 Zero Code Changes:** Same API as embedded AxioDB - just change the client class!
102
+ - **⚡ TCP Protocol:** Fast binary protocol with automatic reconnection
103
+ - **🔐 Production Ready:** Connection pooling, heartbeat monitoring, error recovery
104
+ - **📦 Docker Support:** One-command deployment with included Dockerfile
105
+
106
+ ### Quick Start - Server (Docker)
107
+
108
+ ```bash
109
+ # Pull and run the AxioDB Docker container
110
+ docker run -d \
111
+ --name axiodb-server \
112
+ -p 27018:27018 \
113
+ -p 27019:27019 \
114
+ -v axiodb-data:/app \
115
+ theankansaha/axiodb
116
+
117
+ # Ports:
118
+ # 27018 - HTTP GUI Dashboard
119
+ # 27019 - TCP Remote Access (AxioDBCloud)
120
+ # Volume: /app is the main data directory
121
+ ```
122
+
123
+ **Or run locally with Node.js:**
124
+
125
+ ```javascript
126
+ const { AxioDB } = require('axiodb');
127
+ const db = new AxioDB(false, 'MyDB', '.', true); // Enable TCP on port 27019
128
+ ```
129
+
130
+ ### Quick Start - Client
131
+
132
+ ```javascript
133
+ const { AxioDBCloud } = require('axiodb');
134
+
135
+ // Connect to remote AxioDB (same API as embedded!)
136
+ const client = new AxioDBCloud("axiodb://localhost:27019");
137
+ await client.connect();
138
+
139
+ // Use exactly like embedded AxioDB
140
+ const db = await client.createDB("ProductionDB");
141
+ const users = await db.createCollection("Users");
142
+
143
+ // All operations work identically
144
+ await users.insert({ name: "Alice", role: "admin" });
145
+ const results = await users.query({ role: "admin" })
146
+ .Limit(10)
147
+ .Sort({ createdAt: -1 })
148
+ .exec();
149
+
150
+ await client.disconnect();
151
+ ```
152
+
153
+ ### Features
154
+
155
+ ✅ **35+ Commands** - Full CRUD, aggregation, indexing
156
+ ✅ **Auto-Reconnect** - Exponential backoff with up to 10 retry attempts
157
+ ✅ **Heartbeat Monitoring** - PING/PONG every 30 seconds
158
+ ✅ **Request Correlation** - UUID-based request/response matching
159
+ ✅ **Connection Pooling** - Supports 1000+ concurrent connections
160
+ ✅ **TypeScript Support** - Full type definitions included
161
+ ✅ **Zero Breaking Changes** - Existing AxioDB code works unchanged
162
+
163
+ ### Use Cases
164
+
165
+ - **Microservices:** Share one AxioDB instance across multiple services
166
+ - **Desktop Apps:** Electron apps connecting to local/remote database
167
+ - **Development:** Team members sharing a development database
168
+ - **Docker Deployments:** Container-based production deployments
169
+ - **Cloud Hosting:** Deploy to AWS, Azure, Google Cloud, DigitalOcean
170
+
171
+ 👉 **[Full AxioDBCloud Documentation](https://axiodb.in/cloud)** - Setup guides, API reference, Docker examples
172
+
173
+ ---
174
+
92
175
  ## 🏆 Performance Comparison
93
176
 
94
177
  ### AxioDB vs SQLite
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "axiodb",
3
- "version": "7.33.229",
3
+ "version": "7.33.230",
4
4
  "description": "The Pure JavaScript Alternative to SQLite. Embedded NoSQL database for Node.js with MongoDB-style queries, zero native dependencies, built-in InMemoryCache, and web GUI. Perfect for desktop apps, CLI tools, and embedded systems. No compilation, no platform issues—pure JavaScript from npm install to production.",
5
5
  "main": "./lib/config/DB.js",
6
6
  "types": "./lib/config/DB.d.ts",