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

docusaurus-sylk

v0.2.0

Published

Sylk documentation toolset for Docusaurus

Readme

Docusaurus Sylk Toolset

Visit the landing page for Sylk documentation.

Docusaurus toolset for sylk schema documentation. Provides a set of components and MDX doc file generators for Docusaurus sites.

Sylk Docs Overview


Installation

This section assumes an existing Docusaurus project. For those without an existing setup, you can use docusaurus-sylk-init to scaffold a Docusaurus project with this preset installed.

NOTE: These commands should be run from your Docusaurus project directory.

Install this preset.

npm install --save docusaurus-sylk

Generate a JSON representation of your Protobuf files. This depends on the Sylk CLI. Find details and installation steps in the usage section.

sylk build

Add the preset to your project's docusaurus.config.js file. View the configuration section for all available options.

// file: docusaurus.config.js
module.exports = {
  // ...
  presets: [
    [
      'docusaurus-sylk',
      {
        sylk: {
          sylkJsonPaths: ['./sylk/sylk-docker/sylk.json'],
          sylkDocsPath: 'sylkdocs',
          sidebarPath: 'sidebarsSylkdocs.js'
        },
        docs: {
          routeBasePath: 'sylkdocs',
          sidebarPath: 'sidebarsSylkdocs.js',
        }
      }
    ]
  ],
  // ...
}

Invoke the CLI command generate-sylk-docs to generate your MDX doc files.

npx docusaurus generate-sylk-docs

Update your docusaurus.config.js to link to your new documentation from the navbar. You will need to configure one of the generated doc files as the route. A homepage will be introduced to replace this in the future.

// file: docusaurus.config.js
module.exports = {
  themeConfig: {
    navbar: {
      items: [
        // ...
        {
          to: 'sylkdocs/intro',
          activeBasePath: 'sylkdocs',
          label: 'Sylkdocs',
          position: 'left',
        }
        // ...
      ]
    }
  }
}

Boot up your Docusaurus server to view the new Protobuf documentation space.

npm run start

Configuration

// file: docusaurus.config.js
module.exports = {
  // ...
  presets: [
    [
      'docusaurus-sylk',
      {
        sylk: {
          sylkJsonPaths: ['./sylk/sylk-docker/sylk.json'],
          sylkDocsPath: 'sylkdocs',
          sidebarPath: 'sidebarsSylkdocs.js'
        },
        docs: {
          routeBasePath: 'sylkdocs',
          sidebarPath: 'sidebarsSylkdocs.js',
        }
      }
    ]
  ],
  // ...
}

sylk

Pass in all plugin options. See docusaurus-sylk-plugin for the plugin library. This preset assigns some recommended defaults for missing options.

| Option | Description | Required | Default | | --- | --- | --- | --- | | sylkJsonPaths | Path(s) to JSON file(s) generated by Sylk CLI documentation through Create project. See usage section for details. | ✅ | N/A | | sylkDocsPath | Directory where CLI will create doc files. | | ./sylkdocs | | sidebarPath | Path to file where CLI will write the generated Sidebar object. | | ./sidebarsSylkdocs.js |

docs

Pass in options for the @docusaurus/plugin-content-docs plugin. This preset assigns some recommended defaults for missing options.

| Option | Description | Required | Default | | --- | --- | --- | --- | | routeBasePath | URL base route for the Sylk docs section of your site. | | sylkdocs | | sidebarPath | Path to file where docs plugin will read the Sidebar object. | | ./sidebarsSylkdocs.js |

Usage

This toolset provides a suite of CLI commands to generate and manage documentation files for your Protobuf workspace. These generated files follow the Docusaurus convention of using MDX files and React components.

CLI Commands

generate-proto-docs

npx docusaurus generate-sylk-docs

Generate documentation for all Protobuf files within the configured sylkJsonPaths JSON file. The generated files are written to sylkDocsPath. A sidebar object is written to the configured sidebarPath. View the configuration section for details of these options.

This command must be run for every content change of sylkJsonPaths. This will overwrite all previously generated files, so they should not be modified manually. Extension support for these generated files will be coming in the future, so please reach out with your use cases.

For easy workflow you can attach this plugin to sylk CLI using extensions to project sylk.json file, this will allow the CLI build operation to interact with docusaurus-sylk-plugin.

Generating the sylkJsonPaths Files

This project depends on a snapshot of all the sylk.json files within your workspace. The formatting and generation of this snapshot currently depends on the Sylk CLI.

To use Sylk CLI we must install python3.7+ and protoc. Then the CLI can be installed with simple pip install command:

pip install sylk
# Install with docs extension
pip install sylk[docs]

Contributing

Contributions, issues and feature requests are always welcome!