Link Preview
Open Graph, Twitter Card, Oembed preview. Shows visual cards that mimics link previews in social media like facebook, twitter, vk, viber and other sites that support link preview.
Motivation
There are already tools from facebook (https://developers.facebook.com/tools/debug/) and twitter(https://cards-dev.twitter.com/validator) that does the work of debugging the link preview. But we also wanted Oembed standard testing and various other debugging. We wanted a tool for our development environment that supports all kind of link preview standards. So Link Preview was made to solve these problems.It is an all in one debugger. It shows visual link previews for OpenGraph, Twitter Card and Oembed protocol. With this tool you can get somewhat similar link preview in sites like facebook, twitter, medium, etc.
Requirements
- Node.js v10.16.0
nvm install v10.16.0
Installation
````
npm i -g @namchey/linkpreview
linkpreview
//starts a server in localhost:8080
````
Development
- Clone this repo
git clone git@github.com:namchey/linkpreview.git
- Install Dependencies
npm i
-
Copy
.env.example
--->.env
if you want custom env vars -
Webpack Build
//server-rendering
npm run build:dev
//client
npm run app-dev-server
- Run in Development mode
npm run dev
//open app in browser, default is http://localhost:4040
Production
- Build
npm run build
- Run
npm run start