#holochain #holo #persistence #cas #eav


persistence for content addressable storage and entity attribute value indexes. A file system based implementation using directory hieraarchies to navigate data.

21 releases

✓ Uses Rust 2018 edition

0.0.18 Mar 10, 2020
0.0.17 Feb 13, 2020
0.0.13 Jan 17, 2020
0.0.11 Nov 11, 2019
0.0.1-alpha4 Jun 19, 2019

#273 in Database interfaces

Download history 641/week @ 2019-12-13 229/week @ 2019-12-20 293/week @ 2019-12-27 137/week @ 2020-01-03 200/week @ 2020-01-10 143/week @ 2020-01-17 67/week @ 2020-01-24 195/week @ 2020-01-31 432/week @ 2020-02-07 144/week @ 2020-02-14 147/week @ 2020-02-21 189/week @ 2020-02-28 201/week @ 2020-03-06 134/week @ 2020-03-13 137/week @ 2020-03-20 52/week @ 2020-03-27

982 downloads per month
Used in 3 crates (2 directly)


2.5K SLoC


Project Chat

Twitter Follow

License: Apache-2.0


Filesystem persistence implementations for holochain. Provides content addressable storage (CAS) and entity attribute value (index) associations using hiearchical based filesystem storage.


Add holochain_persistence_file crate to your Cargo.toml. Below is a stub for creating a storage unit and adding some content.

use holochain_persistence_file::cas::file::FilesystemStorage;
use tempfile::tempdir;

pub fn init() -> FilesystemStorage {
  let dir = tempdir().expect("Could not create a tempdir for CAS.");
  let store = FilesystemStorage::new(dir.path()).unwrap();
  store.add(<some_content>).expect("added some content");


Holochain is an open source project. We welcome all sorts of participation and are actively working on increasing surface area to accept it. Please see our contributing guidelines for our general practices and protocols on participating in the community.


License: Apache-2.0

Copyright (C) 2019, Holochain Foundation

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at


Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.


~174K SLoC