https://github.com/hydraide/hydraide
HydrAIDE - The Adaptive, Intelligent Data Engine, built in Go. Production-ready and optimized for real-time, large-scale data operations.
https://github.com/hydraide/hydraide
cluster database golang golang-sdk grpc grpc-go grpc-service protobuf python-sdk python3 sdk
Last synced: 19 days ago
JSON representation
HydrAIDE - The Adaptive, Intelligent Data Engine, built in Go. Production-ready and optimized for real-time, large-scale data operations.
- Host: GitHub
- URL: https://github.com/hydraide/hydraide
- Owner: hydraide
- License: other
- Created: 2025-03-21T13:30:43.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-12-15T21:03:26.000Z (about 2 months ago)
- Last Synced: 2025-12-19T05:06:47.081Z (about 2 months ago)
- Topics: cluster, database, golang, golang-sdk, grpc, grpc-go, grpc-service, protobuf, python-sdk, python3, sdk
- Language: Go
- Homepage: https://hydraide.io
- Size: 6.55 MB
- Stars: 238
- Watchers: 5
- Forks: 26
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
- Security: SECURITY.md
- Support: .github/SUPPORT.md
- Roadmap: ROADMAP.md
- Maintainers: MAINTAINERS.md
Awesome Lists containing this project
README

# HydrAIDE - The Adaptive, Intelligent Data Engine
[](http://www.apache.org/licenses/LICENSE-2.0)


%20Always-ff69b4?style=for-the-badge)

[](https://discord.gg/xE2YSkzFRm)
---
## π Major Update: V2 Storage Engine (Version 3.0)
**HydrAIDE 3.0 introduces a completely redesigned storage engine** that delivers:
| Improvement | Gain |
|-------------|------|
| **Write Speed** | 32-112x faster |
| **Storage Size** | 50% smaller |
| **File Count** | 95% fewer files |
| **SSD Lifespan** | 100x longer |
### β
Backward Compatible
The V2 engine is **fully backward compatible** with existing V1 data. Both engines work side-by-side:
- **V1 Engine**: Multi-chunk file storage (legacy)
- **V2 Engine**: Single-file append-only storage (recommended)
### β οΈ Migration Strongly Recommended
While V1 continues to work, we **strongly recommend migrating to V2** for optimal performance.
> **β‘ IMPORTANT: Always create a full backup before migration!**
Use `hydraidectl` to migrate your data:
```bash
# 1. Create a backup first!
# 2. Dry-run to verify (no changes made)
hydraidectl migrate --source /path/to/hydraide/data --dry-run
# 3. Run actual migration
hydraidectl migrate --source /path/to/hydraide/data --workers 4
```
π See full migration guide: [hydraidectl Migration Guide](docs/hydraidectl/hydraidectl-migration.md)
---
## π§ What is HydrAIDE?
**One engine that replaces your database, cache, and pub/sub β just save your structs.**
No schema design. No queries. No cleanup scripts.
HydrAIDE automatically handles persistence, real-time events, distribution, and memory for you.
For developers who want:
* **Less code and infrastructure** β everything in one place
* **Instant data access** with O(1) folder-based routing
* **Native reactivity** β every change emits a real-time event
* **Memory-efficient operation** β data only lives in RAM when needed
* **Safe concurrency** β built-in per-key distributed locking
With HydrAIDE, you donβt adapt to the database β **the database adapts to your intent**.
---
### βοΈ What HydrAIDE Does β In One Stack
| Feature | Description |
|-------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ποΈ **Database Engine** | A NoSQL-like, structure-first data store β no schemas, no query language. Just save your Go structs. [π read more](docs/features/database-engine.md) |
| π **Built-in Reactivity & Subscription logic** | Native real-time subscriptions on every write/update/delete. Like Redis Pub/Sub, but smarter. [π read more](docs/features/reactivity-and-subscription-logic.md) |
| β‘οΈ **O(1) access** | Deterministic, constant-time O(1) access to data β every Swamp name maps directly to a fixed folder location, ensuring instant lookup without indexing or scanning. [π read more](docs/features/o1-access.md) |
| π **Concurrency-Safe** | Per-object locking with deadlock-free critical sections. Easy and safe for business rules. [π read more](docs/features/concurrency-safe.md) |
| π‘οΈ **Built-in business lock** | Per-key, distributed locking that works across services and servers β ideal for enforcing business-level rules without race conditions. HydrAIDE automatically queues lock requests (FIFO), applies a TTL to prevent deadlocks, and releases locks safely even if a service crashes [π read more](docs/features/built-in-busines-lock.md) |
| π§ **Memory-Efficient** | Swamps live in memory only when accessed. Instant hydration, automatic disposal when idle. [π read more](docs/features/memory-efficient.md) |
| π§Ή **Zero Garbage** | No daemons. No cron jobs. No cleanup scripts. Swamps manage themselves via lifecycle logic. [π read more](docs/features/zero-garbage.md) |
| βοΈ **No More Queries** | No SELECT, no WHERE, no JOINS, no Aggregates. Your struct *is* the query. [π read more](docs/features/no-more-queries.md) |
| π°οΈ **Pure gRPC Control** | Fully gRPC-native. Works with or without SDKs. Ideal for CLI tools, edge services, and IoT nodes. [π read more](docs/features/pure-grpc-control.md) |
| π **Scaling Without Orchestrator** | Deterministic folder-based distribution. No orchestrators. Just spawn instances where needed. [π read more](docs/features/scaing-without-orchestrator.md) |
| π€― **Less Infra Headache** | No need to combine Redis + Kafka + Mongo + scheduler. HydrAIDE is the backend stack itself. [π read more](docs/features/less-infra-headache.md) |
---
## π Start HydrAIDE in 2 Minutes
The fastest way to run HydrAIDE is using the **`hydraidectl` CLI**.
No config files. No docker. No complexity.
### β
Recommended: Install with `hydraidectl`
1. **Download the CLI (Linux):**
```bash
curl -sSfL https://raw.githubusercontent.com/hydraide/hydraide/main/scripts/install-hydraidectl.sh | bash
```
π For Windows, and full install guide, see the [How to install hydraidectl](docs/hydraidectl/hydraidectl-install.md)
2. **Create a new instance:**
```bash
hydraidectl init
```
π Available command details: [hydraidectl user manual](docs/hydraidectl/hydraidectl-user-manual.md)
3. **Start HydrAIDE as a background service:**
```bash
sudo hydraidectl service --instance
```
π Read the full installation guide for more details: [How to install HydrAIDE under 2 minutes](docs/install/README.md)
---
> π³ **Prefer Docker?**
> **You can also install and run HydrAIDE using Docker.**
> π [Docker Installation Guide](docs/install/docker-install.md)
---
### π‘ Proven in the Real World
HydrAIDE already powers platforms like [Trendizz.com](https://trendizz.com), indexing millions of websites and
billions of structured relationships, with real-time search across hundreds of millions of words in under **1 seconds**,
without preloading.
Read the full story behind the hydrAIDE: [How I Made Europe Searchable From a Single Server - The HydrAIDE Story](https://dev.to/hydraide/how-i-made-europe-searchable-from-a-single-server-the-story-of-hydraide-432h)
> In production for over 2 years.
> Replaces Redis, MongoDB, Kafka, cron jobs, and their glue code.
---
## π Demo Applications & Model examples
Explore ready-to-run demo applications built in Go to better understand the HydrAIDE Go SDK and its unique data modeling approach.
- All demo apps are located in the [Example Applications in Go](https://github.com/hydraide/hydraide/tree/main/docs/sdk/go/examples/applications) folder.
- Model Examples [CRUD operations, subscriptions, etc.](https://github.com/hydraide/hydraide/tree/main/docs/sdk/go/examples/models)
- Full Go SDK Documentation: [Go SDK Documentation](docs/sdk/go/go-sdk.md)
These examples are a great starting point to learn how to:
* Structure your HydrAIDE-powered services
* Use profile and catalog models
* Handle real-time, reactive data flows efficiently
---
### β
Primary SDK: Go
HydrAIDE is written in Go, and `hydraidego` is the **official SDK powering production at scale**.
- Supports everything: save/read, locking, subscriptions, TTLs, indexes β all native
- Zero boilerplate: just write structs, and it *just works*
- Fast, typed, reactive β built to feel like part of Go itself
> π§ Designed for real-time systems.
> π₯ Used in live infrastructure today.
> π Comes with full docs, examples, and patterns.
---
## π€ ChatGPT Support: Learn & Build with HydrAIDE Faster
The HydrAIDE documentation is purposefully structured to make it **fully compatible with LLM-based assistants like ChatGPT** β so you can focus on building instead of spending hours reading.
> β οΈ HydrAIDE was **not created using ChatGPT or any LLM**.
> It is the result of years of real-world engineering experience.
> However, we believe in **leveraging AI tools wherever they can accelerate your work** β especially when learning new architectures or building production-grade systems.
### β
Turn ChatGPT into your personal HydrAIDE expert
To do that, simply create a **ChatGPT project**, and upload the following files:
| File Type | Path |
| --------------------- |-------------------------------------------------------------------------------------|
| Installation Guide | [HydrAIDE installation guide](docs/install/README.md) |
| LLM-Friendly Q\&A Set | [hydraide-questions-answers-for-llm.md](docs/hydraide-questions-answers-for-llm.md) |
| Go SDK Documentation | [go-sdk.md](docs/sdk/go/go-sdk.md) |
| Go Example Models | All `.go` files from [models](docs/sdk/go/examples/models) |
| Go SDK Core Logic | [hydraidego.go](sdk/go/hydraidego/hydraidego.go) |
Once uploaded, ChatGPT will be able to:
* answer **any question** about HydrAIDEβs architecture or APIs,
* help you **write HydrAIDE-style Go code** interactively,
* explain example models, functions, and patterns,
* and guide you through debugging, architecture design, or optimization steps.
π‘ The documentation is written to be **semantically consumable by AI**, which means ChatGPT will understand not just APIs, but **the design philosophy, naming logic, and intent** behind each HydrAIDE feature.
> A prebuilt ChatGPT is also available for the HydrAIDE Knowledge Engine. You can use it via the ChatGPT store
or directly through this link: https://chatgpt.com/g/g-688779751c988191b975beaf7f68801d-hydraide-knowledge-engine
Feel free to ask it anything! If it canβt answer your question, open an issue, or build your own custom GPT project
with enhanced responses, as we described above.
---
## π Comparisons - HydrAIDE vs Other Databases
Want to see how HydrAIDE compares to the most popular databases and engines?
Weβre building a full series of deep comparisons, mindset-first, not config-first.
* [HydrAIDE vs MongoDB](docs/comparisons/hydraide-vs-mongodb.md)
* [HydrAIDE vs Redis](docs/comparisons/hydraide-vs-redis.md)
* [HydrAIDE vs PostgreSQL](docs/comparisons/hydraide-vs-postgresql.md)
* [HydrAIDE vs MySQL](docs/comparisons/hydraide-vs-mysql.md)
* [HydrAIDE vs SQLite](docs/comparisons/hydraide-vs-sqlite.md)
* [HydrAIDE vs Elasticsearch](docs/comparisons/hydraide-vs-elasticsearch.md)
* [HydrAIDE vs Firebase / Firestore](docs/comparisons/hydraide-vs-firebase.md)
* [HydrAIDE vs DynamoDB](docs/comparisons/hydraide-vs-dynamodb.md)
* [HydrAIDE vs Cassandra](docs/comparisons/hydraide-vs-cassandra.md)
* [HydrAIDE vs ArangoDB](docs/comparisons/hydraide-vs-arangodb.md)
* [HydrAIDE vs InfluxDB](docs/comparisons/hydraide-vs-influxdb.md)
* [HydrAIDE vs ClickHouse](docs/comparisons/hydraide-vs-clickhouse.md)
* [HydrAIDE vs Neo4j](docs/comparisons/hydraide-vs-neo4j.md)
* [HydrAIDE vs TimescaleDB](docs/comparisons/hydraide-vs-timescaledb.md)
* [HydrAIDE vs Apache Kafka](docs/comparisons/hydraide-vs-apachekafka.md)
---
> π± **Every commit builds more than just code. It builds a mindset.**
> HydrAIDE is not just a tool. Itβs a way of thinking.
> If you see potential here, donβt just watch β contribute.
> Because weβre not just building a system. Weβre building a community of systems thinkers.
Ready to leave your mark? [Join us on Discord](https://discord.gg/xE2YSkzFRm) and letβs build the HydrAIDE together. π
- Start by reading the [Contributor Introduction](/CONTRIBUTORS.md), it explains why HydrAIDE exists, what kind of people weβre looking for, and how you can join.
- Then check out our [Contribution Guide](/CONTRIBUTING.md), it walks you through the practical steps.
Once you're ready, open your first issue or pull request. Weβll be waiting! π
---
## π© Contact & Enterprise
HydrAIDE is used in production at [Trendizz.com](https://trendizz.com).
Interested in enterprise licensing, SDK development, or embedding HydrAIDE in your own platform?
π§ **Peter Gebri** β [peter.gebri@hydraide.io](mailto:peter.gebri@hydraide.io)
(Founder of HydrAIDE & Trendizz)
π **Website** β [https://HydrAIDE.io ](https://hydraide.io) Currently in progress and directly linked to GitHub.
Join the movement. Build different.