Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

deno-deploy

БесплатноБез исполняемых скриптовНе проверен

Deno Deploy is a serverless platform that runs JavaScript and TypeScript apps on Deno, with integrated builds, Deno KV databases, cron jobs and preview URLs…

TerminalSkillsот TerminalSkills★ 221 звезда на GitHub

Об этом скилле

Deno Deploy

Overview

Deno Deploy is Deno's hosting platform for JavaScript and TypeScript apps. The current platform lives at console.deno.com and runs apps on the full Deno runtime (a Linux sandbox, so subprocesses, FFI and file writes work). It builds your repository itself, serves Next.js, Astro, SvelteKit, Fresh and plain Deno.serve() apps, and exposes Deno KV and Deno.cron().

Deploy Classic (dash.deno.com), the deployctl CLI and the subhosting v1 API were shut down on 20 July 2026. Anything that uses deployctl deploy, dash.deno.com, Deno Queues or the old serve() import from deno.land/std must be migrated. Deploy Classic projects were not transferred automatically: create a new app in a new organization and redeploy.

Instructions

  • Write the server with Deno.serve(). The old serve() from https://deno.land/std/http/server.ts fails the deployment warm-up with a timeout; some old third-party libraries still call it internally, so upgrade them.
  • Deploy from the command line with the built-in subcommand, not deployctl:
    1. deno deploy create starts a wizard (organization, app name, source, build config, region). For CI, pass flags: --org, --app, --source local|github, --runtime-mode dynamic|static, --entrypoint main.ts, --framework-preset, --build-timeout, --build-memory-limit, --region us|eu|global. --dry-run validates without creating.
    2. deno deploy (run in the project directory, with --org and --app or a prior deno deploy switch) uploads the directory and builds it. Add --prod to deploy straight to production.
    3. The CLI keeps its token in the system keyring and prompts to sign in when needed.
  • Or connect a GitHub repository in the dashboard. Every push builds; the branch decides the timeline (production or development).
  • Build settings (framework preset, install command such as deno install, build command such as deno task build, entrypoint, static directory, single-page-app mode) can come from the dashboard or from a deploy section in deno.json; the file wins on every deploy.
  • Environment variables belong to contexts: Production, Development (preview and branch URLs) and Build. Manage them in the dashboard or with deno deploy env add NAME value [--secret] (set --org and --app, or run deno deploy switch first), env list, env update-value, env update-contexts, env delete, and env load .env.production. Read them with Deno.env.get("NAME"). Names cannot start with DENO_ (a few exceptions such as DENO_AUTH_TOKENS), LD_ or OTEL_; values are limited to 128 kB.
  • Deno KV: provision a database in the dashboard (Databases > Provision Database) or with deno deploy database provision my-kv --kind denokv, then assign it to the app (deno deploy database assign my-kv --app link-shortener). In code, call Deno.openKv() with no arguments. Deploy gives each timeline its own database, so preview deployments never touch production data. Existing KV data from Deploy Classic is not migrated automatically (ask [email protected]). KV queues (enqueue/listenQueue) are not supported; use an external queue.
  • Cron: declare Deno.cron(name, schedule, handler) at module top level, before Deno.serve(). Deploy reads the definitions at deploy time. Schedules are UTC. Definitions inside request handlers or conditionals are not discovered.
  • Regions: only us, eu and global (both) exist. Apps are serverless: an instance starts on demand, may run in several places at once, and is stopped after idle time with a SIGINT and 5 seconds to finish. Do not keep state in memory; use KV or a database. Instances do not share memory, so do not rely on BroadcastChannel or in-process state for cross-request coordination.
  • Logs and traces are in the dashboard (deno deploy logs for the terminal). Custom flags, including --unstable-*, cannot be passed to the runtime.

Examples

Example 1: Ship a URL shortener with KV and a cron job

User request: "Deploy a small link shortener on Deno Deploy that expires links after 30 days."

main.ts:

import { Hono } from "jsr:@hono/hono@4";

const app = new Hono();
const kv = await Deno.openKv();

Deno.cron("log-link-count", "0 * * * *", async () => {
  let count = 0;
  for await (const _ of kv.list({ prefix: ["links"] })) count++;
  console.log(`${count} short links stored`);
});

app.post("/api/shorten", async (c) => {
  const { url } = await c.req.json();
  const id = crypto.randomUUID().slice(0, 8);
  await kv.set(["links", id], url, { expireIn: 30 * 24 * 60 * 60 * 1000 });
  return c.json({ path: `/${id}` }, 201);
});

app.get("/:id", async (c) => {
  const hit = await kv.get<string>(["links", c.req.param("id")]);
  return hit.value ? c.redirect(hit.value) : c.text("Not found", 404);
});

Deno.serve(app.fetch);

Commands:

deno run -A main.ts        # local check: KV runs from a local file
deno deploy create --org northwind --app link-shorten
Полный SKILL.md на GitHub

Установить deno-deploy в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

_scores.json

FAQ

Что делает скилл deno-deploy?

Deno Deploy is a serverless platform that runs JavaScript and TypeScript apps on Deno, with integrated builds, Deno KV databases, cron jobs and preview URLs. Use when deploying a Deno, Node or framework app to console.deno.com, using the `deno deploy` command, setting environment variables per context, attaching Deno KV, or migrating off Deploy Classic and `deployctl`.

Как установить скилл deno-deploy?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл deno-deploy запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить deno-deploy с