swiftimg

Image hosting for Docusaurus docs

Docusaurus accepts absolute image URLs in MDX, so swiftimg drops in next to /static. The win is keeping screenshot-heavy docs out of the docs repo, where they bloat clones and slow builds.

Try swiftimg freeSee the API

Heads-up

For a small handful of stable screenshots, /static is simpler. swiftimg is best when docs include many user-supplied screenshots or product UI that changes often.

Step by step

  1. 1. Upload from the CLI

    Use `@swiftimg/cli` so screenshot uploads from CI or a shell are one command.

    Shell
    swiftimg upload screenshot.png --title "Settings panel"
  2. 2. Reference from MDX

    Standard Markdown image syntax works in any .mdx file.

    docs/intro.mdx
    ![Settings panel](https://i.swiftimg.com/abc123.png)
  3. 3. Use a custom MDX component for figure / caption (optional)

    Wrap the URL in a `<Figure>` component for captioned screenshots.

Docusaurus — FAQ

Does Docusaurus's image plugin still apply?

It processes /static images. swiftimg URLs are remote and bypass that pipeline; swiftimg's global cache handles caching instead.

Will image links survive a Docusaurus version upgrade?

Yes — they're absolute URLs, decoupled from the docs site's routing.

Can I use swiftimg in API reference auto-generated pages?

Yes — any MDX, including auto-generated API references, accepts external image URLs.

See also

Ready to host your Docusaurus images?

Start free, then unlock the full API, transforms, signed URLs, and a custom domain on the Developer plan.