GH Link is a Link in Bio website that can be configured with only a JSON file.
To use GH Link, follow these steps:
-
Add a
gh-config.json
file to your special repository’s root (the repo with your username). -
Configure
gh-config.json
with the following format:Note: icon is optional. If no icon is provided, the default link icon will be used.
{ "links": [ { "title": "GitHub", "description": "GitHub Official Website", "url": "https://github.com", "icon": "https://cdn-icons-png.flaticon.com/512/25/25231.png" }, { "title": "Click me", "description": "Surprise 😃", "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ" } ] }
-
Done! Visit your own link website at
gh-link.vercel.app/YOUR_USERNAME
.
To run GH Link locally, follow these steps:
-
Clone this repository:
git clone https://github.com/davidho0403/gh-link
-
Store the API keys in
.env.local
:cp .env.example .env.local
-
Install the dependencies:
npm install
-
Run the application:
npm run dev
-
Finally, visit http://localhost:3000 in your web browser.