axiodb 9.6.5 → 9.7.6

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 +54 -15
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -470,6 +470,60 @@ When you outgrow AxioDB (1M+ documents, distributed systems), migrate to Postgre
470
470
 
471
471
  ---
472
472
 
473
+ ## ⚖️ AxioDB vs lowdb, nedb, better-sqlite3
474
+
475
+ | Feature | lowdb | nedb | better-sqlite3 | AxioDB |
476
+ |---------|-------|------|---------------|--------|
477
+ | **Maintained** | ✅ | ❌ Abandoned | ✅ | ✅ |
478
+ | **Native bindings** | ✅ None | ✅ None | ❌ Yes (C/node-gyp) | ✅ None |
479
+ | **Storage** | Single JSON file | Single file / in-memory | Single .db file | File-per-document |
480
+ | **Query language** | JS/Lodash | JS objects | SQL strings | JS objects (MongoDB-style) |
481
+ | **Built-in caching** | ❌ | ❌ | ❌ | ✅ InMemoryCache |
482
+ | **Worker Threads** | ❌ | ❌ | ❌ | ✅ |
483
+ | **ACID Transactions** | ❌ | ❌ | ✅ | ✅ |
484
+ | **AES-256 Encryption** | ❌ | ❌ | ❌ | ✅ |
485
+ | **Aggregation Pipelines** | ❌ | Partial | ❌ | ✅ MongoDB-compatible |
486
+ | **TypeScript support** | ✅ | Partial | ✅ | ✅ Full |
487
+ | **Electron compatible** | ✅ | ✅ | ❌ (requires rebuild) | ✅ |
488
+ | **Sweet spot** | <5K docs | <100K docs | 10M+ (relational) | 10K–500K docs |
489
+ | **Built-in GUI** | ❌ | ❌ | ❌ | ✅ localhost:27018 |
490
+
491
+ ---
492
+
493
+ ## ❓ FAQ
494
+
495
+ **Q: What is AxioDB?**
496
+ An embedded NoSQL database for Node.js. Pure JavaScript, zero native dependencies. `npm install axiodb` and you have a database — no server, no node-gyp, no electron-rebuild.
497
+
498
+ **Q: Is AxioDB a replacement for MongoDB?**
499
+ No. AxioDB is embedded (runs inside your app). MongoDB is a client-server database for multi-user systems. Use AxioDB for desktop apps, CLI tools, and local-first apps up to 500K documents. Use MongoDB when you need a shared networked database.
500
+
501
+ **Q: Does AxioDB work with Electron?**
502
+ Yes — this is the primary use case it was built for. Zero native dependencies means no `electron-rebuild`, no platform-specific `.node` files, no compilation step.
503
+
504
+ **Q: What is the difference between AxioDB and better-sqlite3?**
505
+ `better-sqlite3` uses C native bindings and requires `node-gyp` compilation. AxioDB is pure JavaScript — no compilation, works across all platforms including Electron without a rebuild step. AxioDB also uses MongoDB-style JSON queries instead of SQL strings.
506
+
507
+ **Q: What is the difference between AxioDB and lowdb?**
508
+ `lowdb` stores everything in a single JSON file — it gets slow above 1,000–5,000 records because every read parses the entire file. AxioDB uses file-per-document storage, InMemoryCache, Worker Threads, and auto-indexing — optimized for 10K–500K documents with O(1) lookups by documentId.
509
+
510
+ **Q: What is the difference between AxioDB and nedb?**
511
+ NeDB is abandoned since 2016. AxioDB is actively maintained with TypeScript, ACID transactions, Worker Threads, AES-256 encryption, custom field indexing, built-in GUI, and AxioDBCloud remote access.
512
+
513
+ **Q: How many documents can AxioDB handle?**
514
+ Optimized for 10,000–500,000 documents. For 1M+, use PostgreSQL or MongoDB. documentId lookups take ~1ms on 10K documents with InMemoryCache.
515
+
516
+ **Q: Does AxioDB support TypeScript?**
517
+ Yes. Full type definitions are included — no separate `@types` package needed.
518
+
519
+ **Q: Does AxioDB work in the browser?**
520
+ No. AxioDB requires Node.js (v20+) and the filesystem. Server-side and desktop only.
521
+
522
+ **Q: What is AxioDBCloud?**
523
+ TCP-based remote access for AxioDB. Deploy AxioDB in Docker, connect from multiple clients with the exact same API. Supports 1,000+ concurrent connections with auto-reconnect.
524
+
525
+ ---
526
+
473
527
  ## 🔮 Future Roadmap
474
528
 
475
529
  - **Data Export & Import:** Seamless data migration with support for JSON, CSV, and native AxioDB formats
@@ -542,18 +596,3 @@ If you find AxioDB helpful, consider:
542
596
 
543
597
  ---
544
598
 
545
- ## 🤝 Contributing
546
-
547
- We welcome contributions from the community! Whether it's code improvements, documentation updates, bug reports, or feature suggestions, your input helps make AxioDB better. Please read the [CONTRIBUTING.md](CONTRIBUTING.md) file for guidelines on how to get started.
548
-
549
- ---
550
-
551
- ## 📜 License
552
-
553
- This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.
554
-
555
- ---
556
-
557
- ## 🙌 Acknowledgments
558
-
559
- Special thanks to all contributors and supporters of AxioDB. Your feedback and contributions make this project better!
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "axiodb",
3
- "version": "9.6.5",
3
+ "version": "9.7.6",
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",