Skip to main content

A self-hosted links website based on the style of a Discord profile.

Project description

BetterBio

a self-hosted link-in-bio style site designed to mimic a discord profile

what?

BetterBio is a "links in bio" site, akin to Carrd or Beacons, that designs to mimic the look and feel of a Discord profile.

why?

I like the idea of having a Carrd, but found the limitations of the free plan to be too.. well, limiting. I also thought it would be cool to be able to show my current Discord online status, status text and type.

how?

## from pypi You can install it from PyPI using pip with install betterbio on a Python version >=3.10

docker

docker run -d \
  -p 8080:8080 \
  -v /path/to/betterbio/data:/home/betterbio/.betterbio \
  enhancedrock/betterbio:latest

docker-compose

---
services:
  betterbio:
    image: enhancedrock/betterbio:latest
    container_name: betterbio
    volumes:
      - /path/to/betterbio/data:/home/betterbio/.betterbio
    ports:
      - 8080:8080
    restart: unless-stopped

demo

You can view my own personal betterbio @ https://enhancedrock.tech. Here's a screenshot:

configuring

BetterBio comes with a default config.json that will be copied to ~/.betterbio/config.json. (This is also where all your other BetterBio files will live)
Here's how it'll look:

{
    "bot": {
        "enabled": false,
        "token": "YOUR_DISCORD_BOT_TOKEN_HERE",
        "user_id": 123456789012345678
    },
    "theme": {
        "background_color": "#0c0c0c",
        "profile_color": "#1e1e1e",
        "text_color": "#ffffff",
        "title": "BetterBio"
    },
    "userdata": {
        "name": "Hey there!",
        "username": "hey_hey",
        "pronouns": "yeah/you",
        "bio": "This is a sample profile.\nGo take a look at ~/.betterbio/config.json to set up your own!",
        "pfp": "https://raw.githubusercontent.com/enhancedrock/enhancedrock/refs/heads/main/squishypfp.png",
        "banner": "https://raw.githubusercontent.com/enhancedrock/enhancedrock/refs/heads/main/squishypfp.png",
        "connections": [
            {
                "label": "Github",
                "url": "https://github.com/enhancedrock/BetterBio/",
                "iconurl": "https://cdn-icons-png.flaticon.com/512/25/25231.png"
            }
        ]
    },
    "port": 8080,
    "host": "0.0.0.0"
}

To use the Discord bot integration (will show your status text & emoji, your Discord join date, and if your online on your page), set bot/enabled to true, set bot/user_id to your Discord user ID, set up a bot on the Discord Developer Portal with the Presence and Server Members Intent set to on, reset the token, then copy & paste that into bot/token, and lastly invite it into a server with yourself.

For the theme settings, theme/background_color dictates the colour of the background of the page, theme/profile_color dictates the colour of your profile box itself (note: you can supply two hex codes in a list like ["#181B2F", "#08080D"] to make a gradient), theme/text_color dictates the color of text on the page, and lastly theme/title dictates the webpage's title.

For userdata, it's all relatively self-explanatory, the userdata/pfp and userdata/banner links will be used should the bot integration be disabled, and connections will show as clickable links below your bio.

port and host will dictate what port and host Flask will use. (Don't change this when using Docker.)

In your ~/.betterbio folder, you'll notice that there'll be a pages and static folder - any markdown files in the pages folder will have their contents shown to the right of your profile on a Desktop/landscape browser when selected (a about, ABOUT, readme or README page will be initially opened should one exist), and any files in the static folder will be made available at yourbetterbiohost/files. You can also place a favicon.ico in the root of ~/.betterbio, and that will be displayed instead of the default one.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

betterbio-1.0.3.tar.gz (86.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

betterbio-1.0.3-py3-none-any.whl (14.4 kB view details)

Uploaded Python 3

File details

Details for the file betterbio-1.0.3.tar.gz.

File metadata

  • Download URL: betterbio-1.0.3.tar.gz
  • Upload date:
  • Size: 86.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.4

File hashes

Hashes for betterbio-1.0.3.tar.gz
Algorithm Hash digest
SHA256 5006910ffca5a9fc78b3c0cbdef12ad366c92f419147796b8470ca2417c27fb5
MD5 30e6f02f2d925b56b26a42e10a806792
BLAKE2b-256 f4e8711966e43f8c8203ed70857476e191dcf240c0a070320613623309dc3238

See more details on using hashes here.

File details

Details for the file betterbio-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: betterbio-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 14.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.4

File hashes

Hashes for betterbio-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f9b9395f8114b3fe98e919060a60768e42e07ae371177b67049156da780bfe45
MD5 e948a4a0e5665134ae2e3527fbe623e9
BLAKE2b-256 6fbb1f5610b4287bb4a30a1d12a8abc8ebe4547b2b3e0f660bef67afe7ebbf13

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page