Deploys in seconds
lyrcloud deploy uploads your project and itβs live in about five 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}`);
},
};
lyrcloud deploy uploads your project and itβs live in about five seconds.
Request, Response, URL and fetch: the same code runs in lyrcloud dev, the playground and production.
Every function runs in its own sandbox with no access to any other customerβs code or data.
Put settings under vars in lyrcloud.json and read them from env.
Anything you console.log shows up in lyrcloud logs -f.
lyrcloud dev runs the production runtime on your machine and reloads on every save.
Register or transfer a domain with free WHOIS privacy and Lyrcloud DNS, paid by card or with Lyrpay.
Learn moreResponse caching, static files and whole static sites for your edge functions, with cache headers you control and purges from the CLI.
Learn moreRate 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 moreCreate a free account in under a minute. No credit card required.