New:Socket for Asana Is Now Available.Learn more
Get Started

social-preview-doctor

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

social-preview-doctor

CLI that emulates social crawlers to debug OG/Twitter previews.

latest
Source
npmnpm
Version
0.1.1
Version published
Maintainers
1
Created
Source
social-preview-doctor hero

Social Preview Doctor

Debug OG/Twitter previews with real crawler headers. Emulates real bots so you can fix previews before they ship.

Type: CLI (Node.js)

CI Release License Stars

[!IMPORTANT] Run against URLs you trust. The crawler emulation follows redirects and reports missing tags.

Highlights

  • Emulates social crawlers and headers.
  • Validates OG/Twitter tags and redirects.
  • Structured JSON output for automation.

Output

Output Preview

Example artifacts live in examples/.

Need help? Start with docs/troubleshooting.md.

Crawler presets: linkedin, twitter, facebook.

Quickstart

npx social-preview-doctor https://example.com

CI in 60s

- name: Validate social previews
  run: npx social-preview-doctor https://example.com --bot twitter --json

Demo

Demo

social-preview-doctor https://example.com --json

Compatibility

  • Node.js: 20 (CI on ubuntu-latest).
  • OS: Linux in CI; macOS/Windows unverified.
  • External deps: outbound HTTPS access.

Guarantees & Non-Goals

Guarantees

  • Uses known crawler headers for LinkedIn/Twitter/Facebook.
  • Reports redirect chains and extracted meta tags.

Non-Goals

  • Does not bypass bot blocking or WAFs.
  • Does not invalidate caches by itself.

Docs

  • Requirements
  • Usage
  • Crawler Profiles
  • Cache Busting
  • Failure Modes
  • JSON Output
  • Troubleshooting
  • Guarantees & Non-Goals
  • Constraints

More: docs/README.md

Examples

See examples/README.md for inputs and expected outputs.

Used By

Open a PR to add your org.

Contributing

See CONTRIBUTING.md.

License

MIT

FAQs

Package last updated on 05 Feb 2026

Related posts