npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@jackinatox/docusaurus-plugin-drawio

v0.4.1

Published

Docusaurus plugin for draw.io diagrams

Readme

@jackinatox/docusaurus-plugin-drawio

support to use draw.io in your website

npm GitHub

Note: This is not the original package. The original docusaurus-plugin-drawio by @xiguaxigua had a bug that broke compatibility with newer versions of Docusaurus. This package is based on the fix from @epruesse's pull request #28, which was never merged into the original repo. This fork exists solely to make that fix available as a published npm package.

Install

npm i @jackinatox/docusaurus-plugin-drawio

Add plugin

  plugins: [
    ['@jackinatox/docusaurus-plugin-drawio', {}],
  ],

Quick Start

in foo.mdx file

import Drawio from '@theme/Drawio'
import simpleGraph from '!!raw-loader!./drawio-graph/simple.drawio';

<Drawio content={simpleGraph} />

Select display page

if your drawio file has many pages and you want to select which display by default, you can set page props

import Drawio from '@theme/Drawio'
import simpleGraph from '!!raw-loader!./drawio-graph/simple.drawio';

<Drawio content={simpleGraph} page={1} />

Customize viewer.js file cdn address

default viewer.js cdn is https://cdn.jsdelivr.net/npm/docusaurus-plugin-drawio/viewer.min.js

  plugins: [
    ['drawio', { lib: 'http://domain/path/viewer.js' }],
  ],

Props

drawio supports many configurations, many of which I don't know what the meaning is, and I don't know the type of the corresponding value. If you know, welcome to submit a pull request

| prop | meaning | type | | ---- | ---- | ---- | | page | page to be displayed | number | | toolbar | The toolbar can be configured through this property, for example: "zoom layers tags lightbox" | string | | pageId | page to be displayed | string | | zoom | set zoom ratio | number | | maxHeight | the max height of graph | number | | title | Sets an optional title for the toolbar (or a tooltip if no toolbar is visible). | string | | forceCenter | I don't know the meaning of this configuration | boolean | | center | I don't know the meaning of this configuration | boolean | | responsive | I don't know the meaning of this configuration | boolean | | border | I don't know the meaning of this configuration | any | | move | I don't know the meaning of this configuration | any | | nav | I don't know the meaning of this configuration | boolean | | tooltips | I don't know the meaning of this configuration | any | | resize | I don't know the meaning of this configuration | boolean | | layers | Specifies a space-separated list of visible layers, for example "1 2 3" | string | | layerIds | I don't know the meaning of this configuration | any | | target | I don't know the meaning of this configuration | any | | highlight | I don't know the meaning of this configuration | string | | lightbox | I don't know the meaning of this configuration | any | | editable | I don't know the meaning of this configuration | any | | edit | I don't know the meaning of this configuration | any | | editFunc | I don't know the meaning of this configuration | any | | autoFit | I don't know the meaning of this configuration | any | | autoCrop | I don't know the meaning of this configuration | any | | autoOrigin | I don't know the meaning of this configuration | any | | allowZoomOut | I don't know the meaning of this configuration | any | | allowZoomIn | I don't know the meaning of this configuration | any | | checkVisibleState | I don't know the meaning of this configuration | any | | toolbarPosition | I don't know the meaning of this configuration | any | | toolbarNohide | I don't know the meaning of this configuration | any | | toolbarButtons | I don't know the meaning of this configuration | any |

Docs

https://xiguaxigua.com/docusaurus-plugin-drawio

How to edit draw.io file

There are many way to edit such as https://app.diagrams.net/ or vscode plugin

License

MIT