Layer on top of node.js to deal with user profiles in persona. Inspired in great deal by node-prohibition (code looks rather similar).
Stores emails in SHA1 so you never actually store the email.
The purpose of this is to avoid Privacy Terms/Policy. If you need the email you can just ask the user for it. This is intended for apps that do NOT require emails to work.
Important things to keep in mind:
- Display names are not unique(1)
- Might be broken somewhere, open an issue if so! =)
(1) Can be solved by storing a list of used display names
Personality format (JSON)
$ npm install
var Personality = ;var personality =meta:age: nullcity: nulldb: './db';
meta is a list of extra fields you'd like to use in your api (optional).
db is the path where your leveldb database is located (mandatory).
Create new profile
var profile =hash: 'email@example.com'display: 'rsole';personality;
Get an existing profile
Update an existing profile
var profile =display: 'rsole_'meta:city: 'Barcelona'personality;
Delete an existing record