@jsmrcaga/keep

0.5.2 • Public • Published

Keep

A simple credential management solution.

Roadmap

  • [X] Simple user and credential management
  • [X] Credential encrypting server-side (with 2nd encrypting password/certif)
  • [X] Front end
  • [X] Front end only encryption
  • [ ] OTP Management
  • [ ] Web authentication (fingerprint)

Installation

keep works as a CLI to make it easy to launch. In order to install it just run

npm i -g @jsmrcaga/keep

You should now have access to the CLI.

CLI

  • Start: keep start [--config ./config.json] [--port 1234]

Note that if no config is specified, ./config.json will be used as a default

API

You can also use it via its API:

const keep = require('@jsmrcaga/keep');

keep.start({ port: 1234 }, configFile).then(() => {
	// do something
}).catch(e => {
	// handle the error
});

Please note that when using as an API keep will not register global error handling. When launched via the CLI it will via process.on('unhandledRejection') and process.on('uncaughtError').

Requirements

  • Database: Keep uses MongoDB along with @jsmrcaga/mongo. You should be able to launch it just by specifiying your config via the API or the cli.

Configuration

Example:

Note that under db all properties will be forwarded to @jsmrcaga/mongo

{
	"db": {
		"username": "",
		"password": "",
		"port": 23456
	}
}

Package Sidebar

Install

npm i @jsmrcaga/keep

Weekly Downloads

0

Version

0.5.2

License

MIT

Unpacked Size

18.2 kB

Total Files

19

Last publish

Collaborators

  • jsmrcaga