63 releases (32 breaking)

0.40.0 Oct 7, 2024
0.38.0 Jun 8, 2024
0.37.0 Feb 1, 2024
0.36.1 Dec 6, 2023
0.17.0 Nov 22, 2020

#181 in Database interfaces

Download history 394/week @ 2024-07-13 294/week @ 2024-07-20 1166/week @ 2024-07-27 485/week @ 2024-08-03 384/week @ 2024-08-10 660/week @ 2024-08-17 739/week @ 2024-08-24 531/week @ 2024-08-31 319/week @ 2024-09-07 158/week @ 2024-09-14 400/week @ 2024-09-21 297/week @ 2024-09-28 479/week @ 2024-10-05 666/week @ 2024-10-12 455/week @ 2024-10-19 332/week @ 2024-10-26

1,944 downloads per month
Used in 9 crates (3 directly)

MIT and maybe GPL-3.0+

420KB
9K SLoC

atomic-lib

crates.io Released API docs Discord chat MIT licensed github

Status: Beta. Breaking changes are expected until 1.0.

Rust library for using Atomic Data. Powers atomic-cli and atomic-server.

Check out the docs on docs.rs. For code examples, see examples/basic.rs and the many tests in the code.

Features

  • Two stores for Atomic Data:
    • In-memory store for getting / setting data (Store). Useful for clients.
    • On disk database (Db, uses Sled), which powers atomic-server.
  • JSON-AD Parser & Serializer
  • Serialization of atomic data to JSON-AD, plain JSON, RDF, Turtle, N-Triples and JSON-LD.
  • Path traversal
  • Convert Atomic Data to Rust native types
  • Resolve / parse mappings (bookmarks)
  • Validate Atomic Schema
  • Atomic Commits (transactions / delta's / changes / updates / versioning / history)
  • Plugin system (although not very mature)
  • Collections (pagination, sorting, filtering)
  • Querying (using triple pattern fragments)
  • Invites
  • Hierarchy
  • Saving Atomic Config files.

Optional features

Some features of this library are optional, to minimize bundle size and compile times.

db

The db features adds persistence, which means that you can store stuff on an HDD / SSD. It uses [Sled], a performant, embedded key-value store.

rdf

If you need RDF serialization options (Turtle / N-Triples), use this feature.

config

Filesystem management of Atomic Config files. Used in atomic-cli and atomic-server.

Dependencies

~10–22MB
~428K SLoC