Skip to content

Dynamic OpenGraph metadata and snippets

Created by: sourcegraph-bot

Problem

Links to Sourcegraph do not render well, and are not appealing to click on because we have static OpenGraph metadata. It'd be so nice to have a preview of what this leads to, and to see a visual showcase of what Sourcegraph does!

Common use cases for sharing:

  • sharing a search query

  • sharing a specific code blob

Motivation

We want Sourcegraph.com to be the go-to place for developers to search and explore code. To achieve that, we need Sourcegraph to share organically / have some degree of virality. We have target metrics for sharing.

Solution

GitHub for example has awesome OpenGraph images.

Related RFC