Locked.fyi is a new kind of platform, completely decentralized! Its code is open source and you can run it locally (no backend needed), or deploy your own versions of it, but, more importantly all of the data is stored on IPFS, a decentralized file storage protocol.
We believe the web needs a better business model. We also know that "free" too often means that great ideas eventually suffer from the tragedy of the commons, or that the user's privacy and attention get abused.
For this reason, locked.fyi comes with a business model, built-in. Each application and each piece of content can be monetized with Unlock, a decentralized protocol for memberships.
Creators using the platform can of course decide of the terms of their own memberships (including duration, currencies, prices... etc). But they can also use the community lock which is a lock whose membership costs a little more than $1 per year (actually less than that right now...) and whose proceeds will get shared between all creators.
We will soon write more about how this works!
This code is Open Source and available for anyone to fork, and improve (please send your changes). More importantly, you are free to run this code on your computer as well, so that you do not even have to trust us to run it forever. You need a node + yarn environment!
- Check out the code using git:
git clone [email protected]:unlock-protocol/locked.fyi.git
- Install dependencies:
yarn
- Run it:
yarn start
✅ Follow instructions given in the terminal and open your web browser!
You can also deploy this code if you want to access it from an endpoint you control. We are currently deploying it using Cloudflare's worker infrastructure, but since it's a stati HTML application it can run anywhere!
There are 2 important environment variables to set:
PUBLIC_URL
which is the base url (we usehttps://locked.fyi
)BASE_PATH
which is the base path for relative URL if you are not deploying the application at the root of a website.
To deploy using Fission, follow these instructions and make sure you set the BASE_PATH
environment variable if you are deploying this inside a sub-folder of your fission space.
- Build the project:
yarn build
- Deploy:
fission up build