A powerful tool to preview how your website's link previews will appear across different social media platforms. Perfect for optimizing your website's Open Graph metadata and improving SEO performance.
- Real-time Preview: See how your links will look on Facebook, Twitter, LinkedIn, and other platforms
- Metadata Analysis: Comprehensive analysis of Open Graph tags, Twitter Cards, and other meta tags
- SEO Insights: Get recommendations to improve your social media presence
- Responsive Design: Works seamlessly across all devices
- Fast Performance: Built with modern technologies for optimal speed
- Frontend: React 18, TypeScript, Tailwind CSS, shadcn/ui
- Backend: Express.js, Node.js, TypeScript
- Development: ESLint, Prettier, Concurrently
Before you begin, ensure you have the following installed:
-
Clone the repository
git clone https://github.com/ThePhoenix08/open-graph-visualizer.git cd open-graph-visualizer
-
Install dependencies of root, frontend, backend
npm install
-
Set up environment variables for backend
cd ./backend cp .env.example .env # Edit .env with your configuration
-
Start the development server for both frontend and backend
cd .. npm run dev
-
Open your browser Navigate to
http://localhost:5173
to see the application frontend running. Application backend should be accessible athttp://localhost:5000
open-graph-visualizer/
├── frontend/ # React frontend application
│ ├── src/
│ ├── public/
│ ├── package.json
│ └── ...
├── backend/ # Express backend API
│ ├── src/
│ ├── package.json
│ ├── .env # Generate your own
│ ├── .env.example
│ └── ...
├── docs/ # Documentation
├── .github/ # GitHub templates and workflows
├── package.json # Root package.json (workspace)
├── README.md # This file
└── ...
npm run dev
- Start both frontend and backend in development modenpm run build
- Build both applications for productionnpm run start
- Start the production server
npm run format
- Format code with Prettier
Create a .env
file in the root directory:
# Backend Configuration
PORT=5000
NODE_ENV=development
MONGODB_URL= for local use: (mongodb://localhost:27017/ogv)
# Optional: Add any API keys for enhanced features
# SOME_API_KEY=your_api_key_here
# Remember to always update .env.example if adding new env var
# And relay the env through secure channels to project owner or report the source to secure one
We welcome contributions from the community! Please read our Contributing Guide to get started.
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature
) - Make your changes
- Run tests and ensure code quality (
npm run lint && npm run test
) - Commit your changes (
git commit -m 'Add amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Thanks to all contributors who help make this project better
- Inspired by the need for better social media optimization tools
- Built with amazing open source technologies
Made with ❤️ by Your Name