Preview how your website looks when shared on social media — before you deploy.
Getting Started
·
Features
·
API Reference
OpenGraph Viewer is a lightweight, local development tool that extracts OpenGraph and Twitter Card metadata from any URL and renders realistic previews for major social platforms. Stop guessing how your links will look — see exactly how they'll appear on Facebook, Twitter/X, LinkedIn, Discord, and Slack.
Built for developers who want to validate their meta tags during local development without deploying to production first.
- Multi-platform previews — See how your link renders on Facebook, Twitter/X, LinkedIn, Discord, and Slack simultaneously
- Localhost support — Preview metadata from your local development server (e.g.
localhost:3000) - Metadata validation — Get warnings for missing or incomplete OpenGraph tags that could affect social sharing
- Raw metadata inspector — View every meta tag extracted from the page in a detailed table
- Twitter Card variants — Renders both
summaryandsummary_large_imagecard types - Zero configuration — Just start the server and go
- Node.js v14 or later
git clone https://github.com/Frostist/OpenGraphViewer.git
cd OpenGraphViewer
npm installnpm startOpen http://localhost:3456 in your browser, enter a URL, and instantly preview how it will appear across social platforms.
OpenGraph Viewer exposes a single endpoint for programmatic use:
POST /api/fetch-og
Content-Type: application/json
Request body:
{
"url": "https://example.com"
}Response:
{
"title": "Example",
"description": "An example page",
"image": "https://example.com/og-image.png",
"imageWidth": "1200",
"imageHeight": "630",
"siteName": "Example",
"twitterCard": "summary_large_image",
"allMeta": { ... }
}| Layer | Technology |
|---|---|
| Backend | Express.js |
| HTML Parsing | Cheerio |
| Frontend | Vanilla HTML, CSS, and JavaScript |
Contributions are welcome! Feel free to open an issue or submit a pull request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
Distributed under the MIT License. See LICENSE for more information.

