Developer platform

Write a fetch handler. Live in seconds.

Deploy JavaScript fetch handlers from the lyrcloud CLI. Each function runs in its own isolated sandbox and goes live at https://<name>.dev.lyr.

export default {
  async fetch(request, env, ctx) {
    const url = new URL(request.url);
    if (url.pathname === '/api/time') {
      return Response.json({ now: new Date() });
    }
    return new Response(`Hi from ${url.hostname}`);
  },
};
{} Edge Functions

What you get

Deploys in seconds

lyrcloud deploy uploads your project and it’s live in about five seconds.

Standard Web APIs

Request, Response, URL and fetch: the same code runs in lyrcloud dev, the playground and production.

Isolated by design

Every function runs in its own sandbox with no access to any other customer’s code or data.

Variables

Put settings under vars in lyrcloud.json and read them from env.

Live logs

Anything you console.log shows up in lyrcloud logs -f.

Local dev

lyrcloud dev runs the production runtime on your machine and reloads on every save.

Works with the rest of Lyrcloud

🌐

Domains

Register or transfer a domain with free WHOIS privacy and Lyrcloud DNS, paid by card or with Lyrpay.

Learn more
⚑

Global CDN

Response caching, static files and whole static sites for your edge functions, with cache headers you control and purges from the CLI.

Learn more
πŸ”’

Application Security

Rate limits, IP rules, a firewall for common attacks, bot checks and secure headers for your edge functions, set in lyrcloud.json and enforced before your code runs.

Learn more

Try Edge Functions free.

Create a free account in under a minute. No credit card required.