Current section
Files
Jump to
Current section
Files
README.md
<!--
SPDX-FileCopyrightText: 2026 BaseLabs Holdings LLC
SPDX-License-Identifier: MIT
-->
# Arcadic
[](https://github.com/baselabs/arcadic/actions/workflows/ci.yml)
[](https://hex.pm/packages/arcadic)
[](https://hexdocs.pm/arcadic)
[](https://api.reuse.software/info/github.com/baselabs/arcadic)
[](LICENSE)
Arcadic is an Elixir client for [ArcadeDB](https://arcadedb.com). Use it to
run Cypher or SQL, manage transactions, and stream results from an Elixir
application without a framework dependency.
- Bind query values as parameters and receive structured, redacted errors.
- Use HTTP by default, Bolt for Cypher cursors, or gRPC for cursors and bulk ingest.
- Group writes in transactions and roll back a transaction explicitly.
- Manage schema and indexes and query vector, full-text, and time-series data.
## Install
Add `{:arcadic, "~> 3.1"}` to your Mix dependencies and run `mix deps.get`.
## Query a database
With ArcadeDB listening on port 2480, set `ARCADIC_DATABASE` to an existing
database. Set `ARCADIC_USERNAME` and `ARCADIC_PASSWORD` to credentials
that can query it.
```elixir
conn =
Arcadic.connect("http://localhost:2480", System.fetch_env!("ARCADIC_DATABASE"),
auth: {System.fetch_env!("ARCADIC_USERNAME"), System.fetch_env!("ARCADIC_PASSWORD")}
)
{:ok, rows} =
Arcadic.query(conn, "SELECT :value AS value", %{"value" => 42}, language: "sql")
```
## Documentation
- **Tutorials** include [Getting started](documentation/tutorials/getting_started.livemd),
[GraphRAG](documentation/tutorials/graphrag.livemd),
[Operations](documentation/tutorials/operations.livemd), and
[Time-series](documentation/tutorials/timeseries.livemd).
- **Topics** cover [Connections and transports](documentation/topics/client/connections.md),
[Transactions and retries](documentation/topics/client/reliability.md),
[Change delivery](documentation/topics/server/change-delivery.md), and
[Time-series semantics](documentation/topics/server/time-series.md).
- **How-to guides** show how to [run statements](documentation/how-to/run-statements.md),
[stream results](documentation/how-to/stream-results.md), and
[run and recover migrations](documentation/how-to/migrate-schema.md),
[load data](documentation/how-to/load-data.md), and
[search text and vectors](documentation/how-to/search-text-and-vectors.md).
- **Reference** is the [generated API reference](https://hexdocs.pm/arcadic/api-reference.html).
See [Compatibility](documentation/topics/client/compatibility.md) for Elixir,
ArcadeDB, and dependency requirements.
## License
[MIT](LICENSE).