Deno DeploySimple serverless JavaScript
“We chose Deno to power Netlify Edge Functions because it's optimized for performance and doesn't force proprietary APIs onto our users.”
Serverless that’s effortless
Powered by Deno. Built-in data & infrastructure APIs. Millions of npm modules. Serverless has never been this easy.
import OpenAI from "npm:openai@4";
const openai = new OpenAI({
apiKey: Deno.env.get("OPENAI_API_KEY")
});
Deno.serve(async (req: Request) => {
const completion = await openai.chat.completions.create({
model: "gpt-3.5-turbo",
messages: [{ role: "user", content: "Tell me a dad joke" }],
});
const joke = completion.choices[0].message.content;
return new Response(joke);
});
Simple APIs that scale to billions of requests
With a few lines of TypeScript, create a server that can scale to handle billions of requests across our global edge network.
Built-in database, queues, and more
Deno Deploy has built-in APIs for key/value storage, task queues, and job scheduling. Build data-driven serverless apps incredibly fast.
const kv = await Deno.openKv();
const prefs = {
username: "ada",
theme: "dark",
language: "en-US",
};
const result = await kv.set(
["preferences", "ada"],
prefs,
);
interface Notification {
forUser: string;
body: string;
}
const kv = await Deno.openKv();
const message: Notification = {
forUser: "alovelace",
body: "You've got mail!",
};
await kv.enqueue(message);
const kv = await Deno.openKv();
kv.listenQueue((msg: unknown) => {
if (isNotification(msg)) {
console.log("Sending to user:", msg.forUser);
} else {
console.error("Unknown message received:", msg);
}
});
Deno.cron("My first cron job", "* * * * *", () => {
console.log("logs once every minute!");
});
Connect to anything with millions of npm modules
Deno Deploy is the first and only isolate cloud to natively support millions of npm modules. With the vast JavaScript ecosystem at your disposal, you can connect to almost any database or API.
Solved with Deno Deploy
Deno's advanced isolate cloud powers use cases like these every day.
Subhosting
Enable customization with JavaScript and TypeScript code within your platform by running your users' untrusted code on Deno Deploy.
API Servers
Deno Deploy is a great choice for hosting light-weight API servers and other machine-to-machine traffic, like ingesting webhooks or handling ETL jobs.
Real-time Applications
Deploy supports web standard real-time APIs like WebSocket, BroadcastChannel, and EventSource, making it a great choice for your real-time backend.
Developers ❤️ Deno Deploy
At this rate. Deno will become your project Swiss Army Knife, and you’ll never look back. https://t.co/tOQb3OouUf
— Maarten Bicknese 🇳🇱 (@MaartenBicknese) September 27, 2023
Just tried @deno_land Deploy, and the experience was so smooth and frictionless. Fast deploys, and fast responses. Next step, Fresh.
— Hubert Lin (@linhub15) August 1, 2022
Migtate my blog to @deno_deploy based on fresh web framework, Everything just works, It’s easy and simple.
— kily zhou (@keelii) July 17, 2022
Love how simple @deno_land deploy is!
— Federico Miras (@fefomiras) September 26, 2022
these @deno_land deploy times are incredible
— dd0sxx.eth (@dd0sxx) July 18, 2022
Having a lot of fun with deno deploy
— seb (@_sbmsr)June 25, 2022
Super fast, simple, and easy to get started with.
Feels incredibly minimal, yet powerful. Excited to see the ways in which people extend/use it…
Made a little website that does SSR with data fetching with Fresh and Deno KV, deployed on Deno Deploy in under 5 hours 🤯🤯
— Sahithyan (@sahithyandev) September 22, 2023
It's mind blowing, because this my first time trying out Fresh.
Fresh 🔥
What will you build with Deno Deploy?
Get started with a template or preconfigured Playground.
Full stack web app with Fresh
Build a full stack web application using Fresh, the advanced web framework from Deno.
API server with Hono
Build a light-weight API server with Hono, the spiritual successor to Sinatra and Express, built for the edge.
Static site with Vite and TSC
Build a static site with Vite and serve it on Deno Deploy. Static build includes TypeScript compilation.
Loved by developers, trusted by top engineering teams.
Get started with the world's most advanced platform for serverless JavaScript.
Deploy Now