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

@rick-zhang/docusaurus-preset-tech

v3.9.2

Published

A custom Docusaurus preset with enhanced components, styles, and plugins for technical documentation

Readme

@rick-zhang/docusaurus-preset-tech

一个增强的 Docusaurus 预设包,包含丰富的自定义组件、样式和插件,专为技术文档网站设计。

功能特性

  • 快速开发*: 基于 Docusaurus 3.9.2
  • 完整的样式系统*: 包含完整的 CSS 样式,开箱即用
  • 丰富的自定义组件库*: 包含多种实用的 React 组件
  • 增强插件集合*: 内置多种实用插件
  • 优化的主题配置*: 预设了最佳的主题配置
  • 响应式设计*: 支持移动端和桌面端
  • 主题切换*: 支持明暗主题切换
  • 数学公式支持*: 内置 KaTeX 支持,支持 LaTeX 数学公式
  • 思维导图*: 支持 Markmap 思维导图
  • 图片增强*: 支持图片缩放和画廊功能
  • TypeScript 支持*: 完整的类型定义和类型安全

安装

npm install @rick-zhang/docusaurus-preset-tech
# 或
yarn add @rick-zhang/docusaurus-preset-tech

快速开始

方式一:使用 createPresetConfig(推荐)

import {createPresetConfig} from '@rick-zhang/docusaurus-preset-tech/lib/index';
import type {Config} from '@docusaurus/types';

const config: Config = createPresetConfig({
  title: '我的技术文档',
  tagline: '使用 @rick-zhang/docusaurus-preset-tech 构建的技术文档网站',
  organizationName: 'your-org',
  projectName: 'your-project',
  baseUrl: '/',
  url: 'https://your-domain.com',
});

export default config;

方式二:使用标准 preset

import type {Config} from '@docusaurus/types';
import preset from '@rick-zhang/docusaurus-preset-tech';

const config: Config = {
  title: '我的技术文档',
  tagline: '使用 @rick-zhang/docusaurus-preset-tech 构建',
  organizationName: 'your-org',
  projectName: 'your-project',
  baseUrl: '/',
  url: 'https://your-domain.com',
  
  presets: [
    [
      '@rick-zhang/docusaurus-preset-tech',
      {
        debug: false,
        docs: {
          path: 'docs',
          sidebarPath: 'sidebars.ts',
        },
        blog: {
          path: 'blog',
        },
      },
    ],
  ],
};

export default config;

使用组件

import {
  Markmap,
  APITable,
  BrowserWindow,
  ColorGenerator,
  Tweet,
  TweetQuote,
} from '@rick-zhang/docusaurus-preset-tech/components';

文档

更多详细文档请参考:文档网站

许可证

MIT

作者

Rick Zhang