Skip to content
Switch branches/tags


Failed to load latest commit information.
Latest commit message
Commit time
May 24, 2021


This repository includes all the code deployed by Unlock, including smart contracts and the web app running at

Unlock is a membership protocol, built on a blockchain. It enables creators to monetize their content or software without relying on a middleman. It lets consumers manage all of their subscriptions in a consistent way, as well as earn discounts when they share the best content and applications they use.

Read more about why we're building Unlock.

License: MIT Build Status


You can try Unlock using the Ethereum blockchain on our homepage.

We are building this in the open, which means you can also run the code locally (see instructions below). You can try out the staging version - which runs the latest, in-progress code, but against the Rinkeby test network - at

Finally, you can learn more on our documentation wiki.


Thanks for your interest in contributing to Unlock! We're excited you're here. There are a variety of ways to contribute to the project. Please read more about contributing in our contributor guide. Please also check our code of conduct for all participants in our community.

Getting started

We use docker to run a set of containers which provide the required infrastructure (database, local ethereum test network, subgraph...)

  1. Check out the code from this repository

Unlock uses a mono repo which includes all the services and applications we develop.

git clone
cd unlock
  1. Install all dependencies

This will install all dependencies required for all the Unlock components (smart contracts and react app). You'll need yarn installed globally.

  1. Set up your environment variables

At the root of the repo, add a file called which includes the following variables and add your wallet address to the first line:

ETHEREUM_ADDRESS=<your ethereum address>

Make sure you change the value of ETHEREUM_ADDRESS to use your main Ethereum address (the one you use with your Metamask for example). This will let you interract with the application using your regular setup.

  1. Run the docker cluster.

Once docker has been installed on your machine, start the cluster:

$ cd docker && docker-compose up --build

This cluster includes all the required "infrastructure" to run our apps locally. When starting this script does several things: deploys the unlock smart contract, transfers eth to your address, ... etc. It is actually defined in both docker-compose.yml and docker-compose.override.yml.

  1. Run the app

This applies to any of our applications, but we'll take unlock-app as an example as it is our "main" dashboard:

cd unlock-app && yarn dev

Important: You should then head to http://localhost:3000/dashboard so you can start using the application and deploy locks locally. (going to the root will redirect you to http://localhost:3002 which is our static landing page site.)

Thank you

BrowserStack Logo

Thanks to BrowserStack for providing the infrastructure that allows us to test in real browsers.

Thank you to all the Members of our lock as well! You can easily join this list by clicking on the ❤️ Sponsor button (it's free!) at the top of this page too.