og
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
A web application that fetches and displays OpenGraph metadata from URLs, showing how they would appear when shared on social media platforms like X (Twitter), Facebook, Bluesky, and Mastodon.
- Fetch OpenGraph metadata from any URL
- Display preview cards similar to social media platforms
- Handle cases where no OpenGraph tags are present
- Responsive design with social media platform styling
- Error handling for invalid URLs or network issues
├── backend/
│ └── index.ts # Main API server with URL fetching
├── frontend/
│ ├── index.html # Main HTML template
│ ├── index.tsx # React frontend
│ └── components/
│ ├── App.tsx # Main app component
│ └── PreviewCard.tsx # OpenGraph preview card
└── shared/
└── types.ts # Shared TypeScript types
- Enter a URL in the input field
- Click "Preview" to fetch OpenGraph metadata
- View the preview cards showing how the URL would appear on different platforms
- If no OpenGraph tags are found, a message will indicate this
GET /
- Serves the frontend applicationPOST /api/preview
- Fetches OpenGraph metadata for a given URL