Skip to content
Back to skills

Deno Runtime

ASecurity

Write secure Deno services: least-privilege permissions, deno.json tasks, JSR/npm specifiers and strict checks

  • 5 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 30, 2026
developmenttypescriptdockertestingapisecurity

Works with

  • cli
  • api

Security analysis

A100/100

Scanned November 30, 2026

npx -y skills add AdityaaaTiwari/ANVIL --skill deno-runtime --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Deno Runtime?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Deno Runtime
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/adityaaatiwari-deno-runtime/badge)](https://www.skillsdirectory.com/skills/adityaaatiwari-deno-runtime)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
description: Write secure Deno services: least-privilege permissions, deno.json tasks, JSR/npm specifiers and strict checks
profile: standard
tags: deno, typescript, runtime, security
---

# Deno runtime

Use when building scripts, CLIs, or HTTP servers with Deno.

## Least-privilege permissions
- Always scope runtime flags tightly (`--allow-net=api.example.com:443`, `--allow-read=./data`, `--allow-env=PORT`). Never ship `--allow-all` / `-A` in production entrypoints or Docker CMD.
- Pin permission sets per task in `deno.json` (`tasks` or `permission` sets in Deno 2) so developers and CI run identical bounds.

## Imports and lockfiles
- Manage dependencies cleanly in `deno.json` `"imports"` using pinned `jsr:` and `npm:` versions rather than bare remote URLs (`https://...`) scattered across files.
- Commit `deno.lock` and pass `--frozen` in CI to catch unexpected dependency tree changes.

## Server lifecycle and checks
- Use `Deno.serve({ port, signal }, handler)` and handle `SIGINT`/`SIGTERM` via `AbortController` to drain active requests gracefully.
- Clean up resources (`Deno.FsFile`, streams, timers) and enable `@std/testing` leak checks (`sanitizeResources`, `sanitizeOps`).

## Verify
Run `deno fmt --check`, `deno lint`, `deno check`, and `deno test` with minimal required permission flags.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.