Skip to content

iamvikshan/linktree

οΏ½ Custom Domain for Linktree Profile



Transform your Linktree profile with a personalized domain name!
Linktree doesn't offer custom domains on free plans, so this proxy lets you use your own domain.

Note

🍱 Migrated from Bento - This project originally supported Bento, which was sunset on February 13th, 2026 after being acquired by Linktree. We've migrated to support Linktree profiles instead!

πŸ“– Table of Contents


Tip

  • To make changes, navigate to your official Linktree profile and make them there.
  • You do not need to re-deploy the appβ€”it will pull those changes before you can even save them! ⚑

In other words, as long as your deployment is smooth, you will never think about it. Just share your custom domain link, but use Linktree as normal! HOW COOL IS THAT! πŸŽ‰

✨ Features

  • 🌐 Easy custom domain setup
  • ☁️ Multiple deployment options
  • πŸ”’ SSL support
  • ⚑ Bun-powered (fast cold starts, low memory)
  • πŸ”§ Apache2/Nginx compatibility
  • πŸ”„ Real-time sync with Linktree profile
  • 🐳 Docker ready

πŸ“‹ Prerequisites

Before you begin, ensure you have:

  • πŸ’» A computer/VPS running Windows, Linux, macOS, or Ubuntu 20.04+, or a Docker image
  • 🟨 Bun v1.1.36 or later
  • οΏ½ A Linktree account
  • 🌐 A custom domain name
  • 🌐 Apache2 or Nginx (required for VPS reverse proxy)
  • πŸ”’ Certbot (required for SSL on VPS)

Tip

πŸ’° Get $300 free credit on Vultr to try your app! Claim now

πŸ’» Recommended VPS Providers

Provider Offer Link
πŸ”₯ Ionos Special discount available Get Discount
⚑ Vultr $300 free credit Claim Credit
🌊 DigitalOcean $200 free credit Sign Up
🏠 Hostinger Discounted rates View Deals
πŸͺ¨ BigRock VPS Special offers Check Offers
🐊 HostGator Exclusive deals Get Deals

Note

🀝 Need help with setup? I'm an Ionos Partner and can assist you! Contact me at Vikshan

πŸš€ Installation

🏠 Local/VPS Installation

  1. Clone and install dependencies:
git clone https://github.com/iamvikshan/bento.git
cd bento
bun i
  1. Create environment variables:
# Create .env file with your Linktree username
echo "LINKTREE_USERNAME=your_username" > .env

# Optional: set a custom port (default: 3000)
echo "PORT=3000" >> .env

Note

If LINKTREE_USERNAME is not set, it defaults to vikshan

  1. Start the application:
bun start
  1. Run tests (optional):
bun test

Important

πŸ”§ When using a VPS, make sure to set up a reverse proxy using Apache2 or Nginx:

☁️ Cloud Deployment Options

First step: ⭐ Star and fork this repository

πŸš€ Deploy to Zeabur

  1. Create a Zeabur account
  2. Select "Deploy from GitHub" in your dashboard
  3. Configure environment variables:
    • LINKTREE_USERNAME: Your Linktree username

Note

πŸ—‘οΈ Remove the .env file if you're setting variables in Zeabur dashboard to avoid conflicts

🌟 Deploy to Koyeb (Recommended)

  1. Create a Koyeb account
  2. Deploy from your GitHub repository OR click here to automatically create using this repo as template
  3. Set required environment variables

Warning

πŸ’° Custom domains require a paid Koyeb plan

πŸš‚ Deploy to Railway

  1. Create a Railway account if you don't have one
  2. Click here to deploy using this repo as a template
  3. Railway will automatically detect the project and set up the necessary environment
  4. You'll be prompted to configure environment variables:
    • LINKTREE_USERNAME: Your Linktree username
  5. Click "Deploy" to start the deployment process
  6. Once deployed, you'll get a URL to access your Linktree profile with a custom domain

Note

πŸ’Έ Railway provides a free tier with limited resources. For production use, consider upgrading to a paid plan. You can also configure a custom domain with your Railway deployment. Refer to the Railway documentation for more details on custom domains and other features.

🟣 Deploy to Heroku

  1. Create a Heroku account
  2. Click here to deploy using this repo as a template, or use your own fork
  3. Configure custom domain in Settings β†’ Domains
  4. Enable auto-deploys in Deploy β†’ Deployment method

πŸ”§ Additional Deployment Options


Caution

⚠️ Known Issues:

  1. πŸ–ΌοΈ Some dynamic content may not work perfectly through the proxy
  2. πŸ”— External link click tracking may not work (clicks still work, just not tracked)

🀝 Contributing

Contributions are always welcome! If you find bugs or have suggestions:

  1. 🍴 Fork the repository
  2. 🌿 Create your feature branch (git checkout -b feature/AmazingFeature)
  3. πŸ’Ύ Commit your changes (git commit -m 'Add some AmazingFeature')
  4. πŸ“€ Push to the branch (git push origin feature/AmazingFeature)
  5. πŸ”„ Open a Pull Request

Tip

πŸ’– If this project helped you, please consider:

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.


πŸ“Š Activity Graph

Repository Activity


πŸ’ͺ Powered By


Made with ❀️ by Vikshan

Give this project a ⭐ if it helped you!

About

Add custom domain to your bento profile

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Contributors