Easily crawl a website's metadata and generate SVG as a service.
You can render the bookmark.style card as a SVG in the GitHub README.md now.
[![onetab.group](https://svg.bookmark.style/api?url=https://onetab.group&mode=light)](https://onetab.group)
Card Style | Light Mode | Dark Mode |
---|---|---|
Twitter Like | ||
Notion Like |
The hex color in the URL can not contain the #
character, so you can write like this #000000
to 000000
type GradidentColor = {
formColor: string
viaColor?: string
toColor: string
}
curl https://svg.bookmark.style/api?url=$URL&formColor=$FROM_COLOR&viaColor=$VIA_COLOR&toColor=$TO_COLOR
https://svg.bookmark.style/api?url=https://onetab.group&mode=light&fromColor=fa4&toColor=a4f
https://svg.bookmark.style/api?url=https://onetab.group&mode=light&fromColor=fa4&viaColor=4af&toColor=a4f
Enter a valid $URL
as params
curl https://svg.bookmark.style/api?url=$URL
type Params = {
url: string
mode?: 'light' | 'dark'
style?: 'vertical' | 'horizontal'
formColor?: string
viaColor?: string
toColor?: string
}
curl https://svg.bookmark.style/api?url=https://onetab.group&mode=light
Deploy your Metafy
on your own instance with one-click.
- 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
- html-escaper - A simple module to escape/unescape common problematic entities.
- esno - TypeScript / ESNext node runtime powered by esbuild
MIT xiaoluoboding