Skip to content
المشاريع

حول

Turn raw JSON into a full backend instantly: zero-config REST API, automatic CRUD endpoints, nested relations, schema inference, authentication and ACL, transactions and JavaScript hooks, on a tailor-made high-performance storage engine. All in one Rust binary.

الأنظمة والبنية التحتية

كيف تُقاس هذه الأرقام

النمو المقاس للنجوم

خلال 24 ساعة
٠
خلال 7 أيام
٠
خلال 15 يومًا
٠
خلال شهر
جارٍ جمع السجل

تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.

README.md

الأصل

ElysianDB — Turn Raw JSON into a Full Backend Instantly

Docker Pulls Tests Coverage License: MIT JS Client

ElysianDB is a self-contained backend engine that turns raw JSON into a usable, queryable API in seconds.

It combines automatic REST API generation, advanced querying and indexing, authentication, ACLs, hooks, and optional KV and TCP interfaces into a single fast binary, on top of its own storage engine designed together with the API.

The goal is simple: remove backend boilerplate so you can focus on shipping features instead of infrastructure.

Why ElysianDB

Most projects start the same way: define models, write CRUD endpoints, add filters, pagination, authentication, indexing, caching, migrations, and admin tooling.

ElysianDB removes this entire layer.

You send JSON. You get a fully functional backend.

No ORM. No controllers to scaffold. No migrations to write. No schema to maintain unless you explicitly want one.

Here is a related and explicative article https://dev.to/taymour/why-i-built-elysiandb-2f5i

Storage Engine

ElysianDB runs on its own storage engine, Ariane, designed together with its API. It is the only engine and the default one; the configuration names it internal:

engine:
  name: internal

It provides:

  • An append-only log that holds the data, with group commit, paced checkpoints that stay out of the way of writes, and background compaction that gives the disk back within seconds, behind a durability layer tested against a power cut at every disk operation
  • Copy-on-write entity state: reads never wait for writes
  • Automatic indexes for sorts, filters, search and references (ordered, bitmap and composite forms), built in the background, chosen by selectivity and released when unused
  • A memory budget that holds the whole process, from caches to the working memory of requests and hooks, at millions of documents
  • Hooks that stay fast at scale: counting and summing loops computed on views that follow every write, ctx.query results kept per filter value and brought up to date from the changed documents, reused hook results and optional count, sum and group helpers
  • Very high throughput and low latency
  • Full compatibility with all ElysianDB features

This engine is production-ready and optimized for speed, prototyping, and controlled workloads.

What You Get Out of the Box

Instant REST API with CRUD operations, pagination, sorting, filtering, projections, and includes

Advanced query system with logical operators, nested filters, array traversal, and deterministic caching

High-performance datastore with lazy indexing and predictable execution

Optional strict schema validation with manual overrides

Nested entity creation and linking using simple JSON conventions

Built-in authentication with token, basic, or user-based modes

Access control lists enforced at the API level

Configurable JavaScript hooks to enrich or filter data at read time

Optional Admin UI served directly by the binary, with a live dashboard, monitoring charts and a log viewer

Structured logs (text or JSON), audit of admin actions, and an optional Prometheus /metrics endpoint

HTTP REST API, Redis-style TCP protocol, and key–value endpoints

All of this ships as a single binary or Docker image.

Quick Example

await fetch("http://localhost:8089/api/articles", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({ title: "Hello", tags: ["rust", "kv"], published: true })
});

const res = await fetch("http://localhost:8089/api/articles?limit=20&offset=0&sort[title]=asc");
const articles = await res.json();

No model definition. No migration. No configuration.

Querying Without SQL

ElysianDB includes a dedicated Query API that lets you express complex conditions in a single request.

You can combine filters, logical operators, sorting, pagination, projections, and counts without writing SQL or custom endpoints.

Queries are deterministic, type-aware, and executed predictably, making them easy to debug and safe to cache.

Running in Production

  • Hot backup: GET /api/backup, or elysiandb backup --url <address> --user <name> --output <folder> with the password in ELYSIANDB_PASSWORD. One consistent instant, in a stream, without stopping the server or holding writes. Archives keep format v1 and travel both ways between versions.
  • Durability: with store.crashRecovery.enabled, a kill -9 at any moment loses no confirmed write; add store.durability: fsync and neither does a power cut. Torn writes are detected by checksums and never read as valid.
  • Degraded cases: a full or failing disk refuses writes with a clear error, keeps serving reads and recovers by itself. GET /health answers once the server can serve.
  • Upgrades: folders are read without action, and the previous binary reads them back.

See Backup and Restore and Storage engine internals.

When to Use ElysianDB

Rapid prototyping and MVPs

Frontend-first development where the backend should not block progress

Internal tools and admin backends

Mocking APIs and datasets

Simple services that do not justify a full ORM or framework-heavy backend

High-performance read-heavy APIs with predictable access patterns

When Not to Use It

ElysianDB is not a relational database replacement.

It is not designed for complex cross-entity joins or heavy transactional workloads.

If you need strong relational guarantees, complex SQL queries, or decades of ecosystem tooling, a traditional relational database may be a better fit.

Official Clients

JavaScript and TypeScript client available at: https://github.com/elysiandb/client-js

Run with Docker

docker run --rm -p 8089:8089 -p 8088:8088 taymour/elysiandb:latest

The image ships with the Admin UI and a HEALTHCHECK on /health, which needs no credentials and gives a starting container 6 minutes before it judges it. Load balancers use /ready. The default configuration (docker/elysian.yaml) disables authentication and the Admin UI; mount your own file to change it:

docker run -d -p 8089:8089 -v elysian-data:/data -v $(pwd)/elysian.yaml:/app/elysian.yaml:ro taymour/elysiandb:latest

Build and Run Locally

ElysianDB is built with Cargo. Install Rust with rustup: rust-toolchain.toml pins the version, which rustup installs on the first build. The Admin UI needs Node.js 20.19 or later.

make build-admin   # optional: builds the Admin UI, embedded by the next build
make build && ./elysiandb server

make build stamps the binary with the version from git describe, returned on authenticated requests in the X-Elysian-Version header, and by /stats; outside a git checkout, from a source archive for example, it reports dev. A plain cargo build reports dev:

cargo build --release && ./target/release/elysiandb server

Or:

cargo run --release -- server

Security Notes

  • With security.authentication.enabled, every HTTP route except /health and /ready and every TCP command except PING, EXIT and AUTH requires credentials. TCP clients authenticate with AUTH <token> or AUTH <username> <password>.
  • Browsers on another origin can only call the API when that origin is listed in server.http.cors.allowedOrigins (empty by default).
  • GET /config redacts the token and the database password.

See the documentation for the details.

Philosophy

ElysianDB favors clarity over magic and determinism over flexibility.

Every query produces the same result for the same input.

There are no hidden joins, no implicit behavior, and no background mutations.

What you send is what you get.

Status

ElysianDB is actively developed and evolving.

Feedback, issues, and contributions are welcome.

استكشف مشاريع مشابهة ومرتبطة

جارٍ التحميل…