Awesome Open Source
Awesome Open Source

Databunker solution


Databunker is a network-based, self-hosted, GDPR compliant, secure vault for personal data or PII:

Join Databunker Slack channel

npm install @databunker/store npm install @databunker/session-store

Project demo is available at: Please add a ⭐star if you like our project.

We live in a world where the privacy of our information is nonexistent. The EU has been working to remediate this fallacy with GDPR, and the US (California) follows with a first sparrow called CCPA.

Databunker project is intended to ease the GDPR and CPRA compliance. It gives organizations easy-to-implement APIs and secure vault to store PII, and a privacy portal.

Databunker gives all of us, the real data owners, control of our data. Databunker allows us to know who is using our data, what is happening with our personal data and gives us the freedom to decide if we agree to that or not.

Databunker, when deployed correctly, replaces all the customer's personal records (PII) scattered in the organization's different internal databases and log files with a single randomly generated token managed by the Databunker service.

By deploying this project and moving all personal information to one place, you will comply with the following GDPR statement: Personal data should be processed in a manner that ensures appropriate security and confidentiality of the personal data, including for preventing unauthorized access to or use of personal data and the equipment used for the processing.

Diagram of old-style solution.


Diagram of Solution with Databunker


Getting started guide:

Databunker installation guide:


Project demo is available at:

You can access the demo UI using the following account credentials:

Phone: 4444
Captcha: type as displayed
Access code: 4444
Email: [email protected]
Captcha: type as displayed
Access code: 4444

Demo root token: DEMO

Node.js Examples

  1. Node.js example implementing passwordless login using Databunker:

  2. Node.js example with Passport.js, Magic.Link and Databunker:

  3. Secure Session Storage for Node.js apps:

Node.JS modules

  1. @databunker/store from

  2. @databunker/session-store from

Databunker benchmark results:

Production deployments

Send us a note if you are running Databunker in production mode.

This project resolves most** of the GDPR requirements for you including:

NOTE: Implementing this project does not make you fully compliant with GDPR requirements and you still need to consult with an attorney specializing in privacy.

NOTE: When we use the term "Customer" we mean the data of the end-user that his information is being stored, shared, and deleted.

Right of access

Databunker extracts customer emailcustomer phone values out of the customers' personal records. It gives your customer passwordless access to his data stored under his account. This is done by generating a random access key send by email or by SMS. Your customer can sign in into Databunker, view information stored by Databunker, and make changes in compliance with a company's policy.

login form login with email verify login with code

Right to restrict processing / Consent withdrawal

Databunker can manage all of the customer's consents and agreements in one place. Your customer can withdraw consent and as a result restrict processing in his personal portal at Databunker. For example, your customer can block newsletter service. Your backend system can use Databunker as a collection of all agreements collected using the Databunker API.

Consent management Consent withdrawal

NOTE: Data bunker can call your backend script on a consent withdrawal (callback). You will have to handle these requests and remove the customer records from other 3rd party processing companies. For example web recording services, email gateways, etc...

Privacy by design

This product, from the architecture level and down to code was built to comply with strict privacy laws such as GDPR and CCPA. Deploying this project can make your architecture privacy by design compliant. For more info, check out the following article:

Transparency and Accountability principle

Any system or customer connecting to Databunker must provide an access token to authorize any operation, otherwise, the operation will be aborted. An end customer can login to his profile with a random authorization code sent by email or SMS.

All operations with personal records are saved in the audit log.

Any customer can log in to his account at Data Bunker and view the full audit of activities performed on his profile.

Forget me

Right to be forgotten / Right to erasure

When your customer requests to exercise his right to be forgotten, his private records will be wiped out of the Data Bunker database, giving you the possibility to leave all internal databases intact while not impacting any of your other systems.

Upon customer removal request, Data bunker can call your backend script (callback) with the customer details. You will have to handle these requests and remove other customer records from 3rd party processing companies. For example from web recording services, email gateways, etc...

Forget me

NOTE: You will need to make sure that you do not have any customer identifiable information (PII) in your other databases, logs, files, etc...

Right to rectification/ Data Accuracy

Your customer can sign in to his personal account at Databunker and change his records, for example, change his name. Databunker can fire a callback operation with customer's details when a customer operation takes place.

Change profile

Right to data portability

Your customer can sign in to his personal account at Databunker and view and extract all his records stored at Databunker.

NOTE: You will need to provide your customers with a way to extract data from other internal databases.

Integrity and confidentiality

All personal data is encrypted. An audit log is written for all operations with personal records. Any request using Databunker API is done with HTTPS SSL certificate. The enterprise version supports Shamir's Secret Sharing algorithm to split the master key into a number of keys. A number of keys (that can be saved in different hands in the organization) are required to bring the system up.


Implementing this project does not make you fully compliant with GDPR requirements and you still need to consult with an attorney specializing in privacy.

Databunker use cases

Detailed information can be found at

Blog posts, articles, or other resources that talk about Databunker:


If you published an article about Databunker send us a link at [email protected]

Databunker quick start guide

Follow this article.

Contact us

If you have any questions, you can contact the development team at [email protected]

Join the project slack channel to talk with developers:

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
Go (193,702
Database (9,301
Security (8,535
Encryption (2,648
Privacy (1,918
Vault (698
Passportjs (627
Gdpr (437
Compliance (246
Tokenization (163
Related Projects