๐ŸŒ YOURLS Alternative Index

July 4, 2026 ยท View on GitHub

Transform the unused YOURLS root page into a Linktree-style profile page with social links, featured content, and custom branding.
Instead of showing a 403 error, visitors to your YOURLS root URL will see a beautiful, customizable link-in-bio page.

Latest Release License Listed in Awesome YOURLS!


๐Ÿš€ Features

  • Linktree-style profile page served at your YOURLS root URL (/)
  • Profile section: display name, tagline/bio, avatar image
  • Social icons row: X/Twitter, Instagram, Facebook, LinkedIn, GitHub, YouTube, TikTok, Mastodon, Bluesky, Threads, Pinterest, Twitch, Discord, Telegram, WhatsApp, and more
  • Featured link buttons: full-width cards with optional emoji, title, and URL
  • Custom colors: background, accent (buttons & icon hover), and text colors
  • Custom CSS: inject your own styles for full control
  • Enable/disable toggle: turn the page on or off without deactivating the plugin
  • Update notifications: checks GitHub for new releases and shows a badge in the admin panel
  • Simple single-file plugin โ€” no composer, no npm, no build step

๐Ÿ› ๏ธ Installation

  1. Download the plugin from the latest release.
  2. Unzip the contents into the user/plugins/alternative-index/ directory.
  3. Activate the plugin in the YOURLS admin panel under Plugins.
  4. Go to Plugins โ†’ Alternative Index and configure your page.

Requires YOURLS 1.9+ and PHP 7.4+


โš™๏ธ Usage

Basic Configuration

  1. Open the Alternative Index settings page from the Plugins menu.
  2. Enable the plugin using the toggle at the top.
  3. Fill in your Profile: name, tagline, and avatar URL.
  4. Choose your Appearance: background color, accent color, and text color.
  5. Add Social Links: select the platform and paste your profile URL.
  6. Add Featured Links: enter an optional emoji, a title, and a URL.
  7. Click Save Settings and visit your YOURLS root URL to see the result.

How it works

Visitor requestResult
YOURLS root URL (/) โ€” plugin enabledShows the Alternative Index profile page
YOURLS root URL (/) โ€” plugin disabledDefault YOURLS behavior (403 / blank)
Valid short URL (e.g. /abc)YOURLS handles it normally
Admin panelUnaffected
API / AJAX requestsUnaffected

Supported social platforms

PlatformKey
Website / Blogwebsite
Emailemail
GitHubgithub
X (Twitter)twitter or x
Instagraminstagram
Facebookfacebook
LinkedInlinkedin
YouTubeyoutube
TikToktiktok
Mastodonmastodon
Blueskybluesky
Threadsthreads
Pinterestpinterest
Twitchtwitch
Discorddiscord
Telegramtelegram
WhatsAppwhatsapp

Any other value will display a generic icon with the platform's initial letter.

Custom CSS examples

Target the main card container:

.yai-card { backdrop-filter: blur(8px); }

Make link buttons square instead of pill-shaped:

.yai-link { border-radius: 8px; }

Use a gradient background:

body { background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460); }

๐Ÿ”ง Stored Options

Option keyTypeNotes
yai_enabledint1 = active, 0 = disabled
yai_profile_namestringDisplay name
yai_taglinestringShort bio shown below the name
yai_avatar_urlstringFull URL to profile image
yai_page_titlestringBrowser tab title; defaults to profile name
yai_bg_colorstringHex color for background
yai_accent_colorstringHex color for hover states and button fills
yai_text_colorstringHex color for all text
yai_card_transparencyintCard transparency percentage when a background image is active; 100 removes the glass effect; default 55
yai_social_linksJSONArray of {platform, url} objects
yai_featured_linksJSONArray of {emoji, title, url} objects
yai_custom_cssstringRaw CSS injected into the public page
yai_show_powered_byint1 = show footer attribution

โš ๏ธ Compatibility note

This plugin and YOURLS URL Fallback both intercept the YOURLS root URL. If you have both active, Alternative Index takes precedence (it runs at priority 99 and serves a page directly โ€” URL Fallback's redirect never fires for the root URL). Use one or the other for root URL handling.


๐Ÿ“„ License

This plugin is licensed under the MIT License.


๐Ÿ’ฌ About

Lovingly developed by the usually-on-vacation brain cell of Gioxx.


๐Ÿค Contributing

Pull requests and feature suggestions are welcome!
If you find bugs or have feature requests, open an issue.
If you find it useful, leave a โญ on GitHub! โค๏ธ