
Research
/Security News
Toptalβs GitHub Organization Hijacked: 10 Malicious Packages Published
Threat actors hijacked Toptalβs GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
gitdb-database
Advanced tools
A production-ready CLI tool for managing a NoSQL database using GitHub repositories as storage
Production-ready NoSQL database that stores data in Git repositories with advanced features like GraphQL, AI-powered queries, version control, and performance optimizations.
SDK / Language | Docs / Repo | Package Registry |
---|---|---|
JavaScript/TS | gitdb-client (npm) | Docs |
Go | gitdb-go-client (GitHub) | GoDoc |
PHP | gitdb-php-client (GitHub) | Packagist |
Rust | gitdb-client (crates.io) | Docs |
Python | gitdb-client (PyPI) | Docs |
Ruby | gitdb-client (RubyGems) | Docs |
Command | Usage & Options | Description |
---|---|---|
Connect | gitdb connect -t <token> -o <owner> -r <repo> | Connect CLI to a GitHub repo as your database |
List Collections | gitdb collections | List all collections (tables) |
Create Collection | gitdb create-collection <name> | Create a new collection |
Delete Collection | gitdb delete-collection <name> | Delete a collection and all its documents |
List Documents | gitdb documents <collection> | List all documents in a collection |
Create Document | gitdb create-doc <collection> <json-data> | Add a new document to a collection |
Read Document | gitdb read-doc <collection> <id> | Read a document by its ID |
Update Document | gitdb update-doc <collection> <id> <json-data> | Update a document by its ID |
Delete Document | gitdb delete-doc <collection> <id> | Delete a document by its ID |
Find Documents | gitdb find <collection> <query> | Find documents matching a MongoDB-style query |
Find One Document | gitdb findone <collection> <query> | Find a single document matching the query |
Version History | gitdb version history <collection> | Show Git commit history for a collection |
Rollback Version | gitdb version rollback <collection> --commit <hash> | Roll back a collection to a previous commit |
Start Server | gitdb server | Start the GitDB server (REST/GraphQL API) |
Start Server (bg) | gitdb server-start | Start the server in the background |
Stop Server | gitdb server-stop | Stop the server |
Server Status | gitdb server-status | Check the server status |
Enable SuperMode | gitdb supermode enable --cache-size <n> | Enable performance optimizations |
Show GraphQL Schema | gitdb graphql schema | Show the current GraphQL schema |
Interactive Shell | gitdb shell | Start an interactive shell for running commands |
Shell: Set Token | set token <token> | Set GitHub token (in shell) |
Shell: Set Owner | set owner <owner> | Set repository owner (in shell) |
Shell: Set Repo | set repo <repo> | Set repository name (in shell) |
Shell: Use Collection | use <collection> | Switch to a collection (in shell) |
Shell: Show Collections | show collections | List all collections (in shell) |
Shell: Show Docs | show docs | List documents in current collection (in shell) |
Shell: Insert | insert <JSON> | Insert a document (in shell) |
Shell: Find by ID | find <id> | Find document by ID (in shell) |
Shell: Find by Query | findone <json-query> | Find document by query (in shell) |
Shell: Count | count [json-query] | Count documents (optionally by query, in shell) |
Shell: Update | update <id> <JSON> | Update document by ID (in shell) |
Shell: Delete | delete <id> | Delete document by ID (in shell) |
Shell: Help | help | Show help (in shell) |
Shell: Exit | exit | Exit the shell |
repo
permissions.npm install -g gitdb-database
gitdb connect -t <token> -o <owner> -r <repo>
gitdb connect -t <token> -o <owner> -r <repo>
gitdb connect -t ghp_abc123 -o myuser -r mydb-repo
gitdb collections
β List all collectionsgitdb create-collection <name>
β Create a new collectiongitdb delete-collection <name>
β Delete a collectiongitdb documents <collection>
β List all documents in a collectiongitdb create-doc <collection> <json-data>
β Add a new documentgitdb read-doc <collection> <id>
β Read a document by IDgitdb update-doc <collection> <id> <json-data>
β Update a documentgitdb delete-doc <collection> <id>
β Delete a document by IDgitdb find <collection> <query>
β Find documents matching a MongoDB-style querygitdb findone <collection> <query>
β Find a single document matching the querygitdb version history <collection>
β Show Git commit history for a collectiongitdb version rollback <collection> --commit <hash>
β Roll back a collection to a previous commitgitdb server
β Start the GitDB server (REST/GraphQL API)gitdb server-start
/ gitdb server-stop
/ gitdb server-status
β Manage the server processgitdb supermode enable --cache-size <n>
β Enable performance optimizationsgitdb graphql schema
β Show the current GraphQL schemagitdb shell
β Start an interactive shell for running commandsrepo
permissions.gitdb connect -t <token> -o <owner> -r <repo>
gitdb create-collection users
gitdb create-collection products
gitdb create-doc users '{"name":"Alice","email":"alice@example.com"}'
gitdb create-doc products '{"name":"Laptop","price":999.99}'
gitdb find users '{"age":{"$gt":25}}'
gitdb update-doc users <id> '{"email":"new@email.com"}'
gitdb delete-doc products <id>
gitdb version history users
gitdb version rollback users --commit <hash>
gitdb server
http://localhost:7896/api/v1/collections/users
http://localhost:7896/graphql
Inside gitdb shell
, you can use:
set token <token>
set owner <owner>
set repo <repo>
use <collection>
create-collection <name>
show collections
show docs
insert <JSON>
find <id>
findone <json-query>
count [json-query]
update <id> <JSON>
delete <id>
help
exit
import { GitDBClient } from 'gitdb-client';
const client = new GitDBClient({
owner: 'your-github-username',
repo: 'your-repo',
token: 'your-github-token',
});
// Insert a document
await client.insert('users', { name: 'Alice', email: 'alice@example.com' });
// Query documents
const users = await client.findOne('users', { name: 'Alice' });
// Update a document
await client.update('users', users[0].id, { age: 31 });
// Delete a document
await client.delete('users', users[0].id);
If you want a deep-dive into any specific command, workflow, or integration, just ask!
FAQs
A production-ready CLI tool for managing a NoSQL database using GitHub repositories as storage
The npm package gitdb-database receives a total of 75 weekly downloads. As such, gitdb-database popularity was classified as not popular.
We found that gitdb-database demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.Β It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
Threat actors hijacked Toptalβs GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
Research
/Security News
Socket researchers investigate 4 malicious npm and PyPI packages with 56,000+ downloads that install surveillance malware.
Security News
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.