Skip to main content


The module graph logic for Deno CLI.

Works with
This package works with Deno
JSR Score
a week ago (0.75.1)

A JavaScript/TypeScript interface to the Deno CLI's module graph logic.


To build and output a graph as a JSON structure to the console:

import { createGraph } from "jsr:@deno/graph/@{VERSION}";

const graph = await createGraph("");

console.log(JSON.stringify(graph, undefined, "  "));
Built and signed on
GitHub Actions
View transparency log

Add Package

deno add @deno/graph

Import symbol

import * as mod from "@deno/graph";