All Projects → jacktuck → Unfurl

jacktuck / Unfurl

Licence: mit
Scraper for oEmbed, Twitter Cards and Open Graph metadata - fast and Promise-based ⚡️

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to Unfurl

S
a go web freamwork for micro service, very very easy to create and deploy, with auto service registry and discover, high performance and based on http/2 no ssl
Stars: ✭ 67 (-65.28%)
Mutual labels:  microservice, micro
Micro
Asynchronous HTTP microservices
Stars: ✭ 9,987 (+5074.61%)
Mutual labels:  microservice, micro
Image search
Python Library to download images and metadata from popular search engines.
Stars: ✭ 86 (-55.44%)
Mutual labels:  scraper, metadata
Microservice learning
从零开始微服务框架使用
Stars: ✭ 31 (-83.94%)
Mutual labels:  microservice, micro
Micro Starter
[Deprecated] 🔷 Basic (opinionated) starter kit for a micro app with webpack build
Stars: ✭ 144 (-25.39%)
Mutual labels:  microservice, micro
Awesome Micro
A collection of awesome things regarding zeit's micro.
Stars: ✭ 1,053 (+445.6%)
Mutual labels:  microservice, micro
Dapeng Soa
A lightweight, high performance micro-service framework
Stars: ✭ 101 (-47.67%)
Mutual labels:  microservice, metadata
Micro Analytics Cli
Public analytics as a Node.js microservice. No sysadmin experience required! 📈
Stars: ✭ 743 (+284.97%)
Mutual labels:  microservice, micro
Micro Medium Api
Microservice for fetching the latest posts of Medium with GraphQL.
Stars: ✭ 138 (-28.5%)
Mutual labels:  microservice, micro
Go Grpc
A simpler grpc framework
Stars: ✭ 133 (-31.09%)
Mutual labels:  microservice, micro
Emby.plugins.javscraper
Emby/Jellyfin 的一个日本电影刮削器插件,可以从某些网站抓取影片信息。
Stars: ✭ 864 (+347.67%)
Mutual labels:  scraper, metadata
Micro Cluster
Run multiple micro servers and a front proxy at a time
Stars: ✭ 173 (-10.36%)
Mutual labels:  microservice, micro
Remit
RabbitMQ-backed microservices supporting RPC, pubsub, automatic service discovery and scaling with no code changes.
Stars: ✭ 24 (-87.56%)
Mutual labels:  microservice, micro
Scrape
Distributed Scraper
Stars: ✭ 65 (-66.32%)
Mutual labels:  scraper, metadata
Hemera
🔬 Writing reliable & fault-tolerant microservices in Node.js https://hemerajs.github.io/hemera/
Stars: ✭ 773 (+300.52%)
Mutual labels:  microservice, micro
Micro Jwt Auth
jwt authorization wrapper for https://github.com/zeit/micro
Stars: ✭ 97 (-49.74%)
Mutual labels:  microservice, micro
Micro Router
🚉 A tiny and functional router for Zeit's Micro
Stars: ✭ 621 (+221.76%)
Mutual labels:  microservice, micro
Avatar
💎 Beautiful avatars as a microservice
Stars: ✭ 623 (+222.8%)
Mutual labels:  microservice, micro
Micro Jaymock
Tiny API mocking microservice for generating fake JSON data.
Stars: ✭ 123 (-36.27%)
Mutual labels:  microservice, micro
Stack Rpc Tutorials
Stack-RPC 中文示例、教程、资料,源码解读
Stars: ✭ 1,736 (+799.48%)
Mutual labels:  microservice, micro

Unfurl

A metadata scraper with support for oEmbed, Twitter Cards and Open Graph Protocol for Node.js (>=v8.0.0)

Travis CI Coverage Status Known Vulnerabilities npm

The what

Unfurl (spread out from a furled state) will take a url and some options, fetch the url, extract the metadata we care about and format the result in a saine way. It supports all major metadata providers and expanding it to work for any others should be trivial.

The why

So you know when you link to something on Slack, or Facebook, or Twitter - they typically show a preview of the link. To do so they have crawled the linked website for metadata and enriched the link by providing more context about it. Which usually entails grabbing its title, description and image/player embed.

The how

npm install unfurl.js

unfurl(url [, opts])

url - string


opts - object of:

  • oembed?: boolean - support retrieving oembed metadata
  • timeout? number - req/res timeout in ms, it resets on redirect. 0 to disable (OS limit applies)
  • follow?: number - maximum redirect count. 0 to not follow redirect
  • compress?: boolean - support gzip/deflate content encoding
  • size?: number - maximum response body size in bytes. 0 to disable
  • userAgent?: string - User-Agent string is often used for content negotiation

import { unfurl } from 'unfurl.js'
const result = unfurl('https://github.com/trending')

result is <Promise<Metadata>>

type Metadata = {
  title?: string
  description?: string
  keywords?: string[]
  favicon?: string
  oEmbed?: {
    type: 'photo' | 'video' | 'link' | 'rich'
    version?: string
    title?: string
    author_name?: string
    author_url?: string
    provider_name?: string
    provider_url?: string
    cache_age?: number
    thumbnails?: [{
      url?: string
      width?: number
      height?: number
    }]
  }
  twitter_card: {
    card: string
    site?: string
    creator?: string
    creator_id?: string
    title?: string
    description?: string
    players?: {
      url: string
      stream?: string
      height?: number
      width?: number
    }[]
    apps: {
      iphone: {
        id: string
        name: string
        url: string
      }
      ipad: {
        id: string
        name: string
        url: string
      }
      googleplay: {
        id: string
        name: string
        url: string
      }
    }
    images: {
      url: string
      alt: string
    }[]
  }
  open_graph: {
    title: string
    type: string
    images?: {
      url: string
      secure_url?: string
      type: string
      width: number
      height: number
    }[]
    url?: string
    audio?: {
      url: string
      secure_url?: string
      type: string
    }[]
    description?: string
    determiner?: string
    locale: string
    locale_alt: string
    videos: {
      url: string
      stream?: string
      height?: number
      width?: number
      tags?: string[]
    }[]
  }
}

The who 💖

(If you use unfurl.js too feel free to add your project)

  • vapid/vapid - A template-driven content management system
  • beeman/micro-unfurl - small microservice that unfurls a URL and returns the OpenGraph meta data.
  • probot/unfurl - a GitHub App built with probot that unfurls links on Issues and Pull Request discussions
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].