Skip to main content

Libraries

Dealing with URL serialization is tough, specially if you have complex variables.

We have some libraries to make this process of creating a Flyyer URL easier for developers.

import { FlyyerRender } from "@flyyer/flyyer";
const flyyer = new FlyyerRender({  tenant: "tenant",  deck: "deck",  template: "template",  variables: { title: "Hello world!" },  meta { id: "item-name" /* for analytics reports */ },});
const url = flyyer.href();// > https://cdn.flyyer.io/render/v2/tenant/deck/template.jpeg?__v=1596906866&title=Hello+world%21
// Use this `url` in the <head /> of your HTML<meta property="og:image" content={url} /><meta name="twitter:image" content={url} />

Official#

note

These libraries are for composing and formatting parameters into Flyyer URLs, not for creating Flyyer projects. To create a project go to Getting started.