Nanoprogrammed Penultimate Musicianship

    @namchey/linkpreview

    1.4.0 • Public • Published

    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

    Install

    npm i @namchey/linkpreview

    DownloadsWeekly Downloads

    8

    Version

    1.4.0

    License

    MIT

    Unpacked Size

    1.58 MB

    Total Files

    178

    Last publish

    Collaborators

    • avatar