Giter Club home page Giter Club logo

irmin's Introduction

Irmin

Irmin is a distributed database with built-in snapshot, branch and revert mechanisms. It is designed to use a large variety of backends, although it is optimized for append-only store.

Irmin is written in pure OCaml. It can thus be compiled to Javascript -- and run in the browsers; or into a Mirage unikernel -- and run directly on top of Xen.

Build Status

Install

Irmin is packaged with opam:

opam install irmin

Usage

Irmin comes with a command-line tool called irmin. See irmin --help for further reading. Use either irmin <command> --help or irmin help <command> for more information on a specific command.

To get the full capabilites of Irmin, use the API:

$ ledit ocaml
# #require "irmin.backend";;
# module G = IrminGit.Make(IrminGit.Memory);;
# module S = G.Make(IrminKey.SHA1)(IrminContents.String)(IrminTag.String);;
# let () =
    S.create () >>= fun t ->
    S.update t ["foo"; "bar"] "hi!"

Tutorial

A tutorial is available on the wiki.

Issues

To report any issues please use the bugtracker on Github.

Install from source

If you need to install Irmin from source, first you need to have libssl on your system. For instance, on Debian/Ubuntu: apt-get install libssl-dev.

Then, install the OCaml dependencies using OPAM:

opam install ezjsonm ocamlgraph lwt sha \
             re dolog mstruct core_kernel \
             uri cohttp ssl core_kernel \
             cmdliner alcotest git crunch

You can then download the source code of Irmin, uncompress it, and run the usual steps:

make PREFIX=$(opam config var prefix)
make install

Due to a bug in [oasis], the uninstall target from source is quite unreliable. Instead, use:

ocamlfind remove irmin
rm $(which irmin)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.