basenull/ code-shot

basenull labs · code-shot

Beautiful code screenshots from a URL.

One API endpoint. Drop into a blog post, README, doc site, or OG image meta tag. No design tool, no upload, no signup.

Public-share service — anything you submit is logged, cached, and may be served to anyone with the URL forever. Don't paste secrets.

code preview

Right-click the preview → Copy image address to confirm — what you see is the live API output.

Get a permanent URL

The ?code= URL above is fine for short snippets, but breaks past ~1500 chars. Save the snippet to get a stable ?id= URL — cached forever, safe in any <img> tag.

Want unbranded images?
Pro at $9/mo removes the watermark and unlocks unlimited views per snippet.
Get Pro $9/mo →

Drop the URL anywhere

Blog post / README

<img src="https://code-shot
  .labs.basenull.com/api/img
  ?code=...&theme=dracula">

OG image / Twitter card

<meta property="og:image"
  content="https://code-shot
  .labs.basenull.com/api/img
  ?code=...&og=1">

From a script

curl -X POST \
  /api/snippets \
  -d '{"code":"...",
       "theme":"dracula"}'

Full reference at /docs.

Why code-shot

Hosted, supported API

Carbon and Ray.so are design surfaces, not APIs. Their community wrappers are unhosted and frequently broken. code-shot is the first hosted, supported, indie-priced code-screenshot endpoint.

URL is the integration

No SDK. No iframe widget. No design canvas. The image is a GET request with query params. Drop into any <img> tag, OG meta, or Markdown image.

Cached forever

Same params → same image → CDN cache hit. Your blog readers never wait for a render; we never wake up to render the same thing twice.

Public-share by design

code-shot is for code you intend to share publicly — blog posts, READMEs, doc sites, social cards. URLs are logged, cached, and addressable. Don't paste secrets.

code-shot is part of basenull labs: focused tools for developers, makers, and prosumers. Free with watermark; Pro $9/mo removes the watermark and unlocks unlimited views per snippet.