An open-source and safe platform for sharing environment variables and secrets
Introduction · Deploy Your Own · Setting Up Locally · Tech Stack · Contributing · License
1hash is a safe platform for sharing environment variables and secrets
Here's a quick demo:
1hash-demo.mp4
You can deploy your own version of 1hash to Vercel with one click:
To set up 1hash locally, follow these steps:
- Create a
.env
file that looks like theenv.sample
file - Create a new Redis database on Upstash
- Copy these credentials into
.env
fileUPSTASH_REDIS_REST_URL
UPSTASH_REDIS_REST_TOKEN
- Now you need configure Passage for authentication. Log in to Passage
- Create an application in the Passage Console with the following settings:
- Authentication origin:
http://localhost:3000
(change this to your production URL if you decide to deploy) - Redirect URL:
/encrypt
- Authentication origin:
- Once the application has been created, copy the Application ID from the console into a
.env
file - Run
npm install
ornpm install --legacy-peer-deps
in your terminal to install dependencies - Run
npm run dev
start the app - Open http://localhost:3000 to view the app 🍰
1hash is built on the following stack:
- Next.js – framework
- Upstash - data store
- Passage – authentication provider
- Vercel – depoloyments
- TailwindCSS – styles
Here's how you can contribute:
- Open an issue if you believe you've encountered a bug.
- Make a pull request to add new features/make quality-of-life improvements/fix bugs.
Licensed under the MIT license.