Skip to content
LLRHookPublic

About

Free hosted Discord bot that fixes link previews for X, Instagram, TikTok, Facebook Reels, Bluesky, Reddit, Twitch clips, YouTube and articles, with tweet and caption translation. Admin opt-in; self-hosting optional.

Topics

Resources

Contributing

Stars

4 stars

Watchers

0 watching

Forks

Latest commit

 

History

366 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Linky

Linky's smiling chain-link avatar

CI Deploy

Linky fixes social links in Discord: X/Twitter, Instagram, TikTok, YouTube, Bluesky, Reddit, Twitch clips and Facebook Reels. It also previews public articles and MyAnimeList entries using the page's title, excerpt and image when available, and public PDFs with their title, page count and size. Add it to your server for automatic previews or to your account for links you choose to fix. The hosted bot is free; you do not need to run a server or supply API keys. Self-hosting is optional for these features. Erome video and image albums require your own Linky instance and hosting; they are not included in the public hosted bot.

Visit the Linky website for setup guides and troubleshooting.

See the product roadmap for planned improvements and the dated competitor research for the evidence behind them. Planned features are not available until marked shipped.

Add to Discord

Add Linky to your server

Add Linky to your account to use /fix link: and a message's Apps → Fix with Linky action in servers or DMs. Each request handles up to three supported links, or five YouTube community posts together within Discord's shared card limits. Share community posts separately from other supported links and YouTube videos. It keeps the source message; YouTube videos use native previews without API statistics. Personal installation does not watch your DMs or enable automatic fixing in servers.

You must be the server owner or have Administrator or Manage Server permission in that server to enable Linky.

  1. Choose your server and authorize Linky.
  2. Open a text channel in that server, type /setup, select Linky's /setup command from the command picker and send it.
  3. The private setup card shows whether Linky is active in this channel. Choose your posting mode, platforms and channels, then select Enable server. Menu selections save automatically.
  4. Check the card’s effective scope, missing permissions and Reply/Replace examples. Test here explicitly posts one sample if X or YouTube is enabled; it checks preview delivery, not replacement or playback. Then send your own supported link. If the preview does not appear, run /diagnose link: there to check permissions, settings, URL support and recent provider observations.

If Linky's /setup command is missing from the picker, follow the setup troubleshooting guide.

New servers stay inactive until an admin enables them. Changing preferences alone never enables a server. Choose specific channels or All channels; selected parent channels include their accessible threads. Disable server stops automatic processing. /setup enabled:true and /setup enabled:false also work and preserve channel selections. Setup, settings, help and diagnostics are private; saved choices survive restarts. Linky sends nothing when it joins. Discord may display its own system join notice.

The default Replace mode uses View Channel, Read Message History, Send Messages, Send Messages in Threads, Embed Links, Attach Files and Manage Messages. The invite requests these permissions. Reply mode does not require Manage Messages or copy the original attachments. If a link stays unchanged, check channel/category overrides for the Linky role. Private threads must also be accessible to the bot.

Server preferences

With Manage Server permission, run /settings without options to see the effective configuration. Use /settings mode:reply to keep original messages and add replies, or /settings mode:replace to restore the default. Replace mode credits the author and preserves attachments before removing the original.

Each platform has a /settings switch, such as /settings instagram:false. translate_tweets controls English tweet translation. youtube_display selects preview, counts, or counts-and-comment. Preview-only leaves native YouTube video messages untouched and makes no video API calls; counts skips comment requests. Existing servers retain Replace mode and counts plus comment until an admin changes them. A server cannot enable an operator-disabled feature.

Use /autofix enabled:false to stop automatic fixing of your messages in this server, including its threads. The response is private and the preference survives restarts. /autofix enabled:true restores automatic fixing wherever the server allows it. Manual /fix, Apps → Fix with Linky and an explicit Retry remain available; turning automatic fixing back on does not scan old messages.

Put !nolinky in a message to skip automatic fixing. Links inside <angle brackets>, code or spoilers are also left alone. Anyone who can see a preview can open its Original post link and Details; the details response is private to the person who clicks. Only the original sharer can use Remove on an automatic preview; only the requester can remove a manual preview. This also applies to moderators and administrators using the button. Discord's native moderation remains available. Retry preview and Load next item are available to channel members with current view/send permission who are not timed out. Using them does not transfer ownership of Remove. Replies follow edits and deletions of their source while their ownership record is retained (up to 30 days).

Supported links

Platform Preview service Posts
X/Twitter One Linky block with the author, text and media for a lone post with photos, videos or GIFs, otherwise fixupx.com, with vxtwitter.com recovery Post URLs on X and Twitter, including /i/web/status/ and media paths
Instagram oginstagram.com (OGInstagram): one Linky block with the author and media for a lone post, otherwise its caption-free g.oginstagram.com gallery Posts, reels and TV links, including resolvable /share/ links
TikTok tnktok.com Videos, photos and mobile share links
YouTube Native video preview, optional Data API statistics and public-page community cards HTTPS watch, youtu.be, Shorts, live and embed links; valid start timestamps retained; public /post/ text and image posts
Bluesky One Linky block with the author, text and images for a lone post with images, otherwise bskx.app, with fxbsky.app recovery Public /profile/actor/post/id URLs
Reddit vxreddit.com; rxddit.com resolves blocked app-share redirects only Public post URLs, redd.it links and resolvable /r/name/s/ or /u/name/s/ mobile shares; profile and community index pages stay unchanged
Twitch clips fxtwitch.seria.moe Clip URLs, including channel /clip/ links; streams and VODs stay unchanged
Facebook facebed.com Public Reel and page video URLs (/reel/ID, /page/videos/ID) and resolvable /share/r/ or /share/v/ mobile shares; photo posts, /watch and fb.watch links stay unchanged
Articles, PDFs and MyAnimeList Page metadata in a Linky card; Bing News headlines (or labelled URL titles) for blocked Telegraph articles; PDF document cards Public HTTPS pages with Open Graph article metadata or Article JSON-LD, public PDF files, MyAnimeList anime/manga entries, and supported dated Telegraph article links; up to three together
Truth Social Linky post card under the Articles setting, from Truth Social's status API (any account, with bounded MP4 uploads and playable-link fallback; an optional Cloudflare relay covers hosts it refuses), the Trump's Truth archive (for @realDonaldTrump) or Truth Social's page metadata (text and first image) Public truthsocial.com/@user/ID and /@user/posts/ID posts; if the API refuses the host and no relay is set, video-only posts by other accounts may stay unchanged
Erome (self-host only) Your own media gallery, with attachment fallback HTTPS /a/album-id albums; video and supported JPEG/PNG images, additional items on demand; follows Replace or Reply mode

Instagram, Reddit, TikTok and Facebook mobile shares follow a bounded, cookie-free HTTPS lookup to an allowed public post on the same platform. TikTok /t/, vm. and vt. shares resolve to the exact video or photo ID before previewing. If Reddit rejects an app-share lookup, Linky can send the share path without tracking parameters to FixReddit (rxddit.com) to resolve it, then use vxReddit for the preview. A failed or unsafe redirect cannot authorize deletion from an unrelated preview.

The September 29 Hostinger check reproduced Reddit's HTTP 403 and resolved the reported app share through the fallback. Its vxReddit video played in a GAMBA Discord control. This is one tested public post, not a guarantee for every share. Full Reddit /comments/ URLs and redd.it links avoid the share-resolution request. Private or unavailable posts can still fail.

Supported links must use HTTPS and point to posts, public articles, PDFs or supported MyAnimeList entries. Social tracking query strings are removed; article queries, valid YouTube start timestamps and surrounding text are retained. Automatic fixing starts with new messages from people; editing an unrelated old message does not start a repost. Bots and webhooks are ignored.

Public article previews show the publisher's headline, a labelled publisher, an excerpt of up to 300 characters, and an image and publication date when available. When The Telegraph refuses bot access to a dated article, Linky looks up Bing News's entry for that exact article URL and shows its headline, excerpt and thumbnail, labelled Headline via Bing News; if Bing News has no entry, the card is labelled Title from URL, with a readable title taken from the link and no excerpt, image or publication time. Public PDFs get a PDF document card with the document's declared title, its first-page heading or its file name (the footer says which), the declared author, page count, size and creation time. MyAnimeList anime and manga entries use the same compact card with a synopsis and cover when available, labelled Source with Anime or Manga metadata. They work automatically in enabled channels and through /fix or Apps → Fix with Linky, without an API key. Share up to three article or MyAnimeList links together, separately from social or other links: authored cards can suppress Discord's other native previews. Linky preserves the original when neither metadata nor a supported fallback is available, a page returns an unavailable response, or any page in the set cannot be prepared. It does not summarize, fact-check, translate or bypass paywalls. /settings articles:false or the setup Platforms menu disables article, PDF and MyAnimeList entry previews. Truth Social pages carry no per-post metadata, so its public posts use a Linky card with the author, text, first image or uploaded video, counts and post time under the same setting. A single automatic or manual video post plays inside its panel; unavailable uploads keep the poster and Play video link. LinkedIn posts, including lnkd.in share links, get a card with the author, post text, first image, counts and post time; video posts upload their MP4 so Discord plays it in the message, inside the post's panel for a single automatic repost or manual fix. See article support and limits.

On your own instance, Erome needs media delivery because its video CDN can reject Discord's direct fetch. Linky starts with the first video from the first album, or a supported image when the album has no video. By default, Erome requires an age-restricted server channel or a thread in one. An admin with Manage Server permission can allow ordinary channels using /settings erome_channels:all; select age-restricted to restore the default. The same channel policy applies to /fix and Fix with Linky. DMs are excluded. The setting does not enable Linky in new channels or turn Erome on when disabled; /setup controls automatic channel scope and /settings erome:false disables automatic Erome previews. Linky does not scan the video's content.

A self-hosted instance with original-media hosting configured delivers eligible Erome originals as playable media galleries without re-encoding: MP4, up to 24 MiB, five minutes, 60 fps and native 1080p. Larger or incompatible media uses attachment preparation, with a 64 MiB input limit and compression when needed to fit Discord. Smaller sources stay at their original resolution. JPEG/PNG image albums are supported within separate limits. On a hosted gallery, eligible channel members can use Load next item to append one item at a time, up to ten items and 192 MiB total. Existing items stay if the next one fails. Controls expire after 24 hours or a restart; Original post opens the full album. Automatic Erome previews follow the server's posting mode: Replace removes the source message after confirmation and ownership checks; Reply keeps it. Standalone prepared Erome video and image attachments share a Components V2 panel with their text, including manual fixes. Messages that must copy source attachments or retain other preview types keep attachment delivery before replacement; see the media presentation audit. Failed previews, manual fixes and retries keep the source. Availability and speed depend on the source, hosting services and Discord.

Slow requests show their current stage, and Details gives the person who clicks a private outcome and timing report. Details on private replies and DMs remain restricted to their requester. Media jobs rotate fairly between servers and reuse validated results where possible. See delivery reliability and retention, Erome limits and regional hosting.

A message whose only link is one X post with photos, videos or GIFs, its own or in a quoted post, appears as one block in any language: the sharer credit, the author, the post text, each quoted post's text and every item together, with Original post and Remove, and no second native card. English posts keep their own text. With English translation enabled, other languages show the translation with a small source-language label; with it disabled, they show the original text. Linky confirms within 10 seconds that Discord has loaded every item of the block, or that Discord's media proxy already serves it; otherwise it deletes the block and posts the usual card for that link instead, which is checked the same way as any other card. Text-only posts, several links, polls, broadcasts, posts with media from other sites, more than ten items and text too long for one block keep the native preview. /fix and Apps → Fix with Linky behave the same way; a manual card that replaces an unconfirmed block is a new reply.

When English translation is enabled, translated tweet text replaces the original with a small source-language label. This also applies to /fix and Apps → Fix with Linky: server requests honor the server's translate_tweets setting, and DMs use the operator's translation setting. Photos, playable videos and quoted posts retain their media, including translated quotes beneath an outer post with no text. Video posts that cannot be one block show the captions above the native preview, and a shared post without media of its own shows its directly quoted post's photos or video in its card, so the message keeps one link. Long translations continue across cards or include a text attachment; manual fixes keep the native preview if the required attachment cannot be sent. Unsupported posts and failed translations keep the native preview. Preview availability and translation quality depend on the listed services and FxEmbed.

Instagram posts never show their caption. A message whose only link is one Instagram post appears as one block: the sharer credit, the author and every photo and video, with Original post and Remove. Linky confirms Discord has loaded every item; otherwise the source is kept with a Retry preview notice. Several links, or a post OGInstagram cannot describe, use its caption-free gallery card instead. /fix and Apps → Fix with Linky behave the same way. See Instagram media.

A message whose only link is one Bluesky post with images, its own or in a quoted post, appears as one block: the sharer credit, the display name and @handle linked to the profile, the post text, the quoted post's text and every image, with Original post and Remove. Linky reads the post from Bluesky's public AppView. Video posts, link cards, posts without images, posts with content labels, quotes of quotes and posts the AppView does not return keep the bskx.app card. As for X, a block whose images Discord does not confirm within 10 seconds is replaced by that card. /fix and Apps → Fix with Linky behave the same way.

Public YouTube /post/ links can show the creator, text and ordered images without an API key. Linky reads the public YouTube page without signing in. Polls, quizzes, video attachments, unavailable posts and unrecognized page formats keep their source. These cards have no video counts or top-comment button. Public-page changes can break extraction independently of the video API. Up to five community posts can share one preview, within the ten-card limit. Community cards cannot reliably appear alongside native fixer or YouTube video previews in the same message. For that combination, Linky keeps the original and explains how to share the posts in separate messages, without looking them up or offering a futile Retry. Automatic guidance retains the sharer's Remove control; manual guidance is private.

When enabled, YouTube keeps one native video message with compact counts on buttons. Click counts for exact values or Top comment for a private, attributed excerpt selected by YouTube's relevance order. Missing fields are omitted; comment failure can still leave counts available. A missing API key or failed video lookup leaves the native YouTube message untouched. YouTube buttons expire after 24 hours; cleanup is retried across restarts while preserving the video, source text and other controls. A cleanup record is retired if removal still fails more than seven days after expiry; stale buttons can remain visible but no longer authorize statistics access.

Before removing an original, Linky waits for a useful preview tied to each rewritten post, checks attachments, and rechecks the source and settings. Known videos require video metadata; translated text delivered as a caption does not need a separate native embed. Failed previews try an alternate provider when available, in the same message. X, Reddit, Facebook and Twitch Gateway checks allow up to ten seconds for large-video previews; Instagram and TikTok allow up to eight seconds for cold media. Checks return as soon as a matching useful preview appears, or return unconfirmed when every unresolved post has a recognised error card for that post from the provider currently being attempted; other platforms retain the four-second window. One bounded REST reconciliation follows a missed event. Repeated, attributable recovery evidence can temporarily reorder providers; an unavailable post alone does not establish an outage. If no provider confirms, the original stays with a Retry preview notice; retrying posts a reply and keeps the source. Manual fixes check previews and try alternates in the same response, reading their own reply, so a user-installed fix in a DM or a server without Linky is confirmed too. Instagram, TikTok, Reddit, Twitch and Facebook currently have no verified alternate provider. Preview metadata cannot guarantee playback in every Discord client.

Attachment names, descriptions, spoilers and reply context are preserved. Replies name the original author and show a short excerpt in small italic text. Replies to Linky reposts name the person who shared that post and quote its content. Link-only messages use their existing preview text when available. Excerpts hide spoilers and omit link targets; messages that cannot be read in the same channel show "Original message unavailable." Missing permissions, failed copies and size limits leave the original intact. Polls, stickers, forwards, pinned messages and thread starters are skipped. If Discord refuses source deletion because of moderator 2FA (60003) or missing permissions (50013), Linky keeps the verified preview as a tracked reply copy with Remove/Details controls and reports a permission outcome. Other deletion failures can leave both messages without final controls. Reply mode keeps the source and its attachments.

On fresh automatic posts, Shared by can notify the original sharer in both Replace and Reply mode. Replace also allows explicit user tags that Discord recognized in the source; Reply allows only the sharer. Quoted replies, provider text, role tags and @everyone/@here never add recipients. Manual fixes, retries, refreshes, failure notices and progress updates stay quiet. Linky preserves @silent. Recipient settings control actual alerts, and the original may already have notified someone before the repost.

Reliability and operations

Restarts and updates let running deliveries finish first. The hosted bot then fixes links posted while it was offline, up to two minutes old, in the 20 channels where it most recently saw a link. Self-hosters can turn this on with CATCH_UP_ENABLED; see self-hosting.

Delivery Details remain available in Discord for up to seven days. A separate, private operator archive on Hostinger keeps sanitized attempt outcomes and timings for 30 days, bounded by a 64 MiB cap. It contains no Discord user, server, channel or message IDs, message text, captions, source URLs or credentials. The random attempt ID can connect an operator investigation to a Details report. Capacity and storage failures can shorten coverage and are surfaced in the report.

After building, run npm run report:deliveries -- --days 7 on the bot host to compare outcomes, latency and problem stages. This is an operator command, not a Discord command or a public log page. See operator reliability for storage, reports and daily review. Metadata confirmation is not proof of playback. npm run check:providers checks provider metadata for a public link corpus without Discord; see preview providers.

Self-hosting and development

The hosted bot is free to add for the seven social platforms above, public article previews and available translations. Run your own instance for Erome or your own extensions; self-hosting does not automatically add support for arbitrary websites. The self-hosting guide covers Node/Docker setup, environment variables, API keys, quotas, persistent data, logs, deployment and rollback. The optional Discord coding integration is disabled on the hosted bot.

npm ci
npm run validate

npm run validate runs CI's build, worker, test, deployment-safeguard and audit commands and reports every result; see CONTRIBUTING.md for the Node version and Windows notes.

CI tests Node.js 22, 24 and 26, deployment safeguards and the production container, with the dependency audit and secret scan as separate jobs; the CI gate check passes only when every job passes. See CONTRIBUTING.md for live checks and SECURITY_AUDIT.md for dependency, secret-scan and supply-chain results. The bot deploys to Hostinger after the tested main commit passes CI; website deployment is separate. Deployment labels the image with its full source commit and checks the running image before confirming success; a mismatch restores the previous image and configuration. Read the latest image label with docker image inspect linky:latest --format '{{ index .Config.Labels "org.opencontainers.image.revision" }}'. See self-hosting for running-image inspection and the initial rollout's empty-label limitation.

PERFORMANCE_AUDIT.md records measured local CPU costs, the delivery module boundaries and remaining measurement gaps. Its synthetic timings are separate from provider delays and Discord playback checks.

VERIFICATION.md is the release-readiness protocol: it runs the CI commands verbatim, maps every shipped change to its proving test and re-ticks the privacy and safety constraints above. Known defects are tracked in bugs.md, planned work in features.md, and verified fixes and features are migrated into CHANGELOG.md.

MIT license.

Setup

Once per clone, set up the tracker merge driver and pre-commit lint (Claude Code sessions do this automatically):

python3 .cycle/trackers.py install
python .cycle\trackers.py install

Replies and comments on X, Bluesky, YouTube and LinkedIn

Replies are off by default. Server admins can enable /settings replies:true (or disable with replies:false). Eligible single X and Bluesky posts, including public server /fix previews, show Replies (N) after publication is confirmed. Replies opens a public thread under Linky's post: up to ten direct, non-sensitive X replies or 25 eligible Bluesky replies, most liked first. Eligible single YouTube videos offer Comments (N) for up to 25 top-level comments in relevance order, as detailed below. Existing threads are linked again; no refresh or paging is offered.

The click sends the public post ID to https://api.fxtwitter.com/2/conversation/{id}. Linky fetches one page without cookies or credentials, with a five-second timeout and a 256 KiB limit; parsed results stay in memory for five minutes (failures for 30 seconds). The header distinguishes the source count, returned entries, hidden entries and shown replies. Copied text escapes Markdown and mentions and replaces embedded links with [link]; Open reply opens X. Remove deletes Linky's own copied replies and renames/archives the thread as Replies removed; members' messages and other Linky previews stay. Retry and source changes also clean up the old thread.

Each comment has an author heading and a divider before the next comment. X and Bluesky include the handle as plain text, with a separate Profile link beside Open reply in the subtext; available provider avatars appear beside the text. Replies show up to four images or video posters on approved provider hosts. Unavailable media is noted with the source link. Discord loads these URLs through its media proxy; Linky does not fetch or upload the files. Pages pack under 40 components, 3,800 text characters and ten comments per message.

The invite includes Create Public Threads and Send Messages in Threads. Existing installs may need a server admin to grant Create Public Threads in the bot role and channel overrides. /diagnose reports both permissions when replies are enabled. This feature applies to server text and announcement channels; multi-link posts, threads, forum/media posts, voice/stage chat, DMs and personal installation contexts have no Replies button.

Linky remembers up to 100,000 parent message IDs in reply-creation-history.json before creating reply/comment threads. This respects moderator deletion even after restart when Discord clears the parent's thread flag. At capacity, the oldest parent snowflake is evicted (message age, not insertion order); at an assumed 1,000 new thread parents per day across the bot, this retains about 100 days. A moderator-deleted thread on a very old post outside retained history (evicted or too old to record) can be recreated. The JSON file contains IDs only, with at most 2,300,002 bytes written; files over the 2,400,002-byte read limit are quarantined. Existing deleted threads from before this history was introduced cannot be recovered from Discord's cleared flag.

Bluesky replies use the same off-by-default /settings replies:true opt-in and public thread controls. A single eligible unlabelled post (image block or bskx.app card) with a positive AppView replyCount shows Replies (N). Opening it sends only the post identity to https://public.api.bsky.app/xrpc/app.bsky.feed.getPostThread with depth=1 and parentHeight=0: no credentials, no redirects, a five-second timeout and a 1 MiB response cap. An oversized response gives a private too-many-replies notice. Successful parsed pages stay in memory five minutes; failures stay 30 seconds, with at most 100 entries and eight requests in flight. Linky shows up to 25 direct replies sorted by likes then newest, skipping author-hidden, blocked, unavailable and labelled replies (including labels on authors). The header reports the fresh source count, returned, hidden and shown entries separately. Reply links use DID identities; text, packing, quiet flags, permissions, cooldowns and cleanup follow the shared X replies behaviour. Nested replies, authenticated access and the unstable V2 endpoint are excluded.

Bluesky reply dates use the earlier of the author creation time and AppView indexing time for both newest-first ties and the displayed time.

YouTube comments threads: with /settings replies:true, a configured YOUTUBE_API_KEY, and /settings youtube_display:counts-and-comment, single-video posts with a positive comment count include Comments (N). Clicking opens a public thread with up to 25 top-level comments in YouTube relevance order. Each uncached click costs 1 YouTube Data API quota unit; parsed comments are cached for 5 minutes in a separate cache of at most 100 videos. Counts-only mode does not offer comments. Cleanup starts when the YouTube controls expire after 24 hours, removing copied comments and renaming and archiving the thread while preserving members' messages. Transient failures retry through the existing durable queue, but records are dropped after more than seven days of failed cleanup. If the parent is deleted while the bot is offline, the missing parent provides no thread evidence and copied pages may remain. Lost access can also prevent deletion; removal within 24 hours is not guaranteed. Comments link to the video.

LinkedIn comments threads

The existing /settings replies:true option also enables LinkedIn comments. See the comments source, limits, retention and cleanup.

About

Free hosted Discord bot that fixes link previews for X, Instagram, TikTok, Facebook Reels, Bluesky, Reddit, Twitch clips, YouTube and articles, with tweet and caption translation. Admin opt-in; self-hosting optional.

Topics

Resources

Contributing

Stars

4 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages