1.4.0 • Published 4 years ago

@namchey/linkpreview v1.4.0

Weekly downloads
8
License
MIT
Repository
github
Last release
4 years ago

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
  2. Install Dependencies

    npm i
  3. Copy .env.example ---> .env if you want custom env vars

  4. Webpack Build

    //server-rendering
    npm run build:dev
    
    //client
    npm run app-dev-server
  5. Run in Development mode

    npm run dev
    //open app in browser, default is http://localhost:4040

Production

  1. Build

    npm run build
  2. Run

    npm run start

Libraries Used for Scraping

@babel/core@babel/plugin-proposal-class-properties@babel/plugin-proposal-export-default-from@babel/plugin-proposal-export-namespace-from@babel/plugin-syntax-dynamic-import@babel/preset-env@babel/preset-reactJSONStreamacceptsasyncautoprefixeraxiosaxios-response-loggerbabel-loaderbcrypt-nodejsbluebirdbody-parserbunyanchalkcheeriochunk-manifest-webpack-pluginclassnamescompression-webpack-pluginconnect-mongoconnect-rediscookiecookie-signaturecore-jscorscross-envcss-loaderdebounce-promisedebugdeep-equaldeep-freezedotenves6-promiseeslinteslint-config-airbnbeslint-plugin-reactexifexports-loaderexpressexpress-bruteexpress-brute-mongooseexpress-deviceexpress-flashexpress-sessionexpress-status-monitorfile-loaderglobhelmethtml-minifierhtml2canvashttp-graceful-shutdownhttp-proxy-middlewarei18nimmutableimports-loaderinline-environment-variables-webpack-plugininstallinvariantisomorphic-fetchjoijson-loaderjsontoxmllessless-loaderlocalforagelodashmathjsmd5method-overridemini-css-extract-pluginmongoosemongoose-deep-populatemongoose-validatormorganmultername-all-modules-pluginnode-libs-browsernodemailernormalize.cssnumeralobject-sizeofoptimize-css-assets-webpack-pluginpenthousepostcsspostcss-importpostcss-loaderpostcss-mixinspostcss-nestedpostcss-reporterpostcss-simple-varspromiseprop-typesrafrc-progressreactreact-debounce-inputreact-domreact-helmetreact-lazyloadreact-promisereact-reduxreact-routerreact-router-reduxreact-sharereact-transform-hmrredisreduxredux-devtoolsredux-loggerredux-persistredux-thunkrequestrequest-promiserimrafshortidslack-nodestringstringifystyle-loadersuqsw-precache-webpack-pluginswigterser-webpack-pluginurl-loaderuseragentuuidwarningwebpackwebpack-build-notifierwebpack-bundle-analyzerwebpack-cliwebpack-dashboardwebpack-dev-middlewarewebpack-filter-warnings-pluginwebpack-hot-middlewarewebpack-manifest-pluginwebpack-md5-hashwebpack-mergewebpack-node-externalswebpack-pwa-manifestwebpack-runtime-analyzerwebpack-visualizer-pluginyargs
1.4.0

4 years ago

1.3.1

5 years ago

1.2.1

5 years ago

1.1.0

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0-alpha-1

5 years ago