# Software Heritage

> Cite archived source code with SWHIDs, previewed on hover

Source: https://curvenote.com/integrations/software-heritage

- **Built by**: Curvenote
- **Availability**: Built in
- **Works with**: Curvenote Reader, Curvenote Sites, Curvenote CLI
- **Categories**: Link previews, Archiving & repositories

## What Curvenote can do with a Software Heritage integration

- **A card on hover**: Readers see the archived code: its origin, the file or revision, and the lines cited.
- **Nothing to set up**: Any link to it in your article gets its card.

## How it works with Curvenote

Link to it in your article and readers see a card with the archived code: its origin, the file or revision, and the lines cited when they hover over the link, without leaving the page.

Cards come from Curvenote’s link preview service, which looks each link up at its source and keeps it fresh. They appear on Curvenote Sites and in Curvenote Reader, with nothing to set up.

## Setting it up

1. Link to it in your document: a SWHID such as swh:1:rev:…, or an archive.softwareheritage.org link.

## Questions

### Where do the cards come from?

From Curvenote’s link preview service, which reads the link, looks it up at its source and caches the card. Readers’ browsers never need an account anywhere.

### What about a link without a card of its own?

If the page it points to describes itself (with Open Graph tags), the link still gets a simple card from that.

## About Software Heritage

Software Heritage archives the world’s public source code, with permanent identifiers (SWHIDs).
