Skip to main content

SoketDB — a zero-setup, AI-smart JSON database built for developers who value speed, simplicity, and offline capability.

Project description

⚡ SoketDB v1 — Zero-Setup, AI-Smart JSON Database

No switch to turn on.
SoketDB is a lightweight, offline-first, AI-powered database that runs instantly — no setup, no dependencies, no servers.


🧠 Overview

SoketDB is a plug-and-play JSON database with an AI-driven query engine.
It lets you store, query, and sync data locally or in the cloud — without needing MySQL, PostgreSQL, or MongoDB.

Built for developers who just want to build, SoketDB merges the simplicity of JSON with the power of SQL and AI.


🚀 Features

  • Zero Setup — Works out of the box, no installations or daemons.
  • 💾 JSON-Native Storage — Every table is a readable JSON file.
  • 🧠 AI Query Engine — Translate natural language into SQL-like commands.
  • ☁️ Cloud Backup — Optional sync to Hugging Face, Google Drive, Dropbox, or AWS S3.
  • 🔐 Thread-Safe Execution — Prevents corruption in multi-threaded access.
  • 🧩 Configurable Storage — Local, hybrid, or full cloud mode.
  • 🧱 System Tables — Built-in logs, meta tracking, and analytics support.
  • 🌍 Offline-First Philosophy — Works anywhere, even without the internet.

🧰 Installation

pip install soketdb

Or install manually:

git clone https://github.com/alexaustindev/soketdb.git
cd soketdb
python setup.py install


---

🏁 Quick Start

from soketdb import database

# Initialize a new or existing SoketDB project
db = database("my_project")

# Create a table
db.execute("CREATE TABLE users (username TEXT, password TEXT)")

# Insert records
db.execute("""
INSERT INTO users DATA=[
  {"username": "alex", "password": "1234"},
  {"username": "ben", "password": "abcd"}
]
""")

# Query users
print(db.execute("SELECT username FROM users WHERE password='1234'"))


---

💡 Natural Language Queries

db.query("show all users where password is 1234") AI converts this into:

SELECT * FROM users WHERE password='1234'


---

☁️ Cloud Sync Example

db = database(
    "my_project",
    storage="huggingface",
    token="hf_xxx_your_token",
    path="alex/soketdb_storage"
)

You can also use Google Drive or Dropbox for automatic backups.


---

📊 Folder Structure

my_project/
│
├── users.json
├── plugins.json
├── system_meta.json
└── logs/


---

🧩 Supported Commands

Command	Description

CREATE TABLE	Create a new table
INSERT INTO	Add new JSON data
SELECT	Query records
UPDATE	Modify existing records
DELETE FROM	Delete specific rows
DROP TABLE	Remove a table completely



---

💬 Philosophy

> “Databases shouldn’t require a switch to turn on.
SoketDB runs, stores, and syncs  instantly.”
— Alex Austin, Creator of SoketDB




---

🧱 Use Cases

Offline-first or hybrid AI projects

Local testing without cloud DBs

Quick data persistence for tools, bots, or microservices

Lightweight web apps and scripts

AI/ML experiments needing quick storage



---

🔐 License

Licensed under the MIT License.
Copyright © 2025 Alex Austin


---

🌟 Tagline

> SoketDB  Simple. Smart. Secure.
The database that runs even when everything else is off.



---

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

soketdb-1.0.0.tar.gz (14.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

soketdb-1.0.0-py3-none-any.whl (11.8 kB view details)

Uploaded Python 3

File details

Details for the file soketdb-1.0.0.tar.gz.

File metadata

  • Download URL: soketdb-1.0.0.tar.gz
  • Upload date:
  • Size: 14.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for soketdb-1.0.0.tar.gz
Algorithm Hash digest
SHA256 d22cfdb34e56d1a8bb41140c8afe2aaf846d9dbade51716176322a15f2d79071
MD5 f2917c8e26e457549223baead70183b0
BLAKE2b-256 73a7e7936ca34f1c909a9b7068168ae2c2f5761d60d7462a5a214bf56ea9e5e5

See more details on using hashes here.

File details

Details for the file soketdb-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: soketdb-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 11.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for soketdb-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1bdf73a93ebf3deb69ba66be8eee235d38ef8e6eda13317abd5738a92fb1efc6
MD5 8d3e787d5e67be78c3bdf4069988ac39
BLAKE2b-256 5d88fe27d52deaf21f46d7002dac9d38c643639c7be29bcb80b48c8d66a1a2b4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page