Skip to content

philipjscott/rjtembed

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rjtembed

Deployed to https://embed.scotty.workers.dev/

API

/meta?fooBar=Baz will render <meta property="foo:bar" content="baz">

There are four exceptions:

/meta?title=blah will render <title>blah</title>

/meta?favicon=blah will render <link rel="icon" href="blah" type="image/png"> (only PNGs are supported)

/meta?theme=ffffff will render <meta name="theme-color" content="#ffffff">

/meta?oeKey=Value will render <link type="application/json+oembed" href=".../oembed?key=value">

Ie. use the "oe" prefix to set oembed values. All other prefixes will be used to render open graph meta tags.

Specifications

Open Graph Protocol

oEmbed

Twitter Cards

Full example

https://embed.scotty.workers.dev/meta?title=Hyperbeam&ogTitle=TestTitle&ogDescription=TestDescription&ogImage=https://hyperbeam.com/img/256x256.png&oeAuthor_name=Hyperbeam&oeAuthor_url=https://hyperbeam.com

Releases

No releases published

Packages

No packages published