@namchey/linkpreview
Open Graph, Twitter Card, Oembed Scrapper. Shows visual cards that mimics link previews in social media like facebook, twitter, vk and other sites that support link preview.
Last updated 5 months ago by deepakbhattarai .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @namchey/linkpreview 
SYNC missed versions from official npm registry.

Link Preview Logo

Link Preview

npm version Build Status Maintainability Test Coverage

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.

https://linkpreview.dev/

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

  1. Node.js v10.16.0
nvm install v10.16.0

Installation

````
npm i -g @namchey/linkpreview
linkpreview
//starts a server in localhost:8080
````

Development

  1. Clone this repo
git clone git@github.com:namchey/linkpreview.git
  1. Install Dependencies
npm i
  1. Copy .env.example ---> .env if you want custom env vars

  2. Webpack Build

//server-rendering
npm run build:dev

//client
npm run app-dev-server

  1. Run in Development mode
npm run dev
//open app in browser, default is http://localhost:4040

Production

  1. Build
npm run build
  1. Run
npm run start

Libraries Used for Scraping

Current Tags

  • 1.3.1                                ...           latest (5 months ago)

6 Versions

  • 1.3.1                                ...           5 months ago
  • 1.2.1                                ...           9 months ago
  • 1.1.0                                ...           a year ago
  • 1.0.2                                ...           a year ago
  • 1.0.1                                ...           a year ago
  • 1.0.0-alpha-1                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 1
Last Month 3
Dependencies (147)
Dependents (1)

Copyright 2014 - 2017 © taobao.org |