discourse/onebox — explained in plain English
Analysis updated 2026-07-28 · repo last pushed 2024-02-01
Add automatic link previews to a forum or community site where users share articles and videos.
Embed YouTube videos and Amazon product previews in a chat application without writing custom logic.
Build a blogging tool that automatically expands pasted links into rich visual cards.
| discourse/onebox | rails/solid_cache | sds/mock_redis | |
|---|---|---|---|
| Stars | 791 | 1,019 | 505 |
| Language | Ruby | Ruby | Ruby |
| Last pushed | 2024-02-01 | — | 2026-06-22 |
| Maintenance | Dormant | — | Maintained |
| Setup difficulty | moderate | easy | easy |
| Complexity | 2/5 | 2/5 | 2/5 |
| Audience | developer | developer | developer |
Figures from each repo's GitHub metadata at analysis time.
This standalone gem is deprecated and unmaintained, users should use the version in the main Discourse repository instead.
Onebox is a Ruby library that converts plain URLs into rich, visual previews. You know how when you paste a link into a chat or forum and it automatically expands into an embedded video player, image, or article preview? That's exactly what this does. It was originally built for the Discourse forum platform but was extracted into a standalone library so any Ruby application could use it. At a high level, you hand it a URL and it returns an HTML snippet with the relevant preview content. For example, a YouTube link becomes an embedded video player, and an Amazon product link becomes a preview with the product image, name, and description. It supports many popular sites out of the box and can handle pages, images, and videos. For sites that follow common web standards for embedding content (like Open Graph or oEmbed), it can often generate previews automatically. For sites that don't, developers can write custom "engines" to handle the transformation. This would be useful for anyone building a web application where users share links and you want those links to look good automatically. Forum software, social platforms, chat applications, or blogging tools could all benefit. If you're running a community site where members post links to articles, videos, or products, this saves you from building that preview logic yourself. One important note: this standalone version is deprecated and no longer maintained. The code has moved into the main Discourse repository, so anyone looking to use or contribute to it today should go there instead. The README also includes a development server so you can test how different URLs will render before integrating it into a project.
Onebox is a Ruby library that turns plain URLs into rich visual previews like embedded videos, images, and article summaries. Originally built for Discourse forums, it works in any Ruby app but is now deprecated and moved into the main Discourse repo.
Mainly Ruby. The stack also includes Ruby, Open Graph, oEmbed.
Dormant — no commits in 2+ years (last push 2024-02-01).
No license information is provided in the explanation, so the licensing terms are unknown.
Setup difficulty is rated moderate, with roughly 30min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
double-check against the repo, no cap.