Skip to content
 
 

Repository files navigation

Metafy on Vercel

Easily scrape metadata from websites as a service.

Usage

Enter a valid $URL as params

curl https://yourworker.yourdomain.workers.dev/?url=$URL

Example

Input

curl https://yourworker.yourdomain.workers.dev/?url=https://newstral.com

Output

{
  "title": "One Tab Group: Your all-in-one tab/tab group manager for Chrome.",
  "description": "onetab.group is a chrome extension that allows you to manage your tabs & tab groups in one place. One-click to aggregate all tabs & tab groups into one session.",
  "author": "",
  "image": "https://onetab.group/preview.jpg",
  "feeds": [],
  "date": "",
  "lang": "",
  "logo": "https://onetab.group/logo.png",
  "video": "",
  "keywords": "",
  "jsonld": "",
  "url": "https://www.onetab.group/",
  "type": "link"
}

Deploy your own instance

GitHub Actions

  1. clone the repo
  2. define a secret CLOUDFLARE_API_TOKEN ( if the value is "public", anyone can access your service )

Vercel

Deploy your Metafy on your own instance with one-click.

Deploy with Vercel

Tech Stack

  • vercel - Develop. Preview. Ship. For the best frontend teams.
  • metascraper - metascraper, easily scrape metadata from an article on the web.
  • typescript - Typed JavaScript at Any Scale.
  • got - 🌐 Human-friendly and powerful HTTP request library for Node.js
  • esno - TypeScript / ESNext node runtime powered by esbuild

License

MIT xiaoluoboding

About

Page Metadata Scraper with Cloudflare workers

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages