<commit_before># PersDB

*multi-master replication with transformations*

Features:
* built on the principles of owning your own data
* multi-master replication with transformations
* support for browsers via IndexedDB and WebSockets
* support systems that are built with privacy by design
* [security by design](https://github.com/Netsend/persdb/wiki/privilege-separation)

Alpha status. Currently working on a MongoDB adapter.

# Installation

Note: Node.js 4.x is required.

Clone this repo and change your working dir to it:
```
$ git clone https://github.com/Netsend/persdb.git
$ cd persdb
```

Install npm modules:
```
$ npm install
```

Ensure /var/empty exists for the chrooted processes:
```
$ sudo mkdir /var/empty
```

Ensure database directory exists, i.e. /srv/persdb/mydb:
```
$ sudo mkdir -pm600 /srv/persdb/mydb
```

Create a dedicated system user for the main process:<commit_msg>fix readme<commit_after># PersDB

*multi-master replication with transformations*

Features:
* built on the principles of owning your own data
* multi-master replication with transformations
* support for browsers via IndexedDB and WebSockets
* support systems that are built with privacy by design
* [security by design](https://github.com/Netsend/persdb/wiki/privilege-separation)

Alpha status. Currently working on a MongoDB adapter.

# Installation

Note: Node.js 4.x is required.

Clone this repo and change your working dir to it:
```
$ git clone https://github.com/Netsend/persdb.git
$ cd persdb
```

Install npm modules:
```
$ npm install
```

Ensure /var/empty exists for the chrooted processes:
```
$ sudo mkdir /var/empty
```

Ensure database directory exists, i.e. /srv/persdb/mydb:
```
$ sudo mkdir -pm700 /srv/persdb/mydb
```

Create a dedicated system user for the main process:
{'fraction_non_alphanumeric': 0.0993858179787828, 'fraction_numerical': 0.00446677833612507, 'mean_word_length': 4.430303030303031, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3033728', 'n_tokens_mistral': 579, 'n_tokens_neox': 540, 'n_words': 204}