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

@huise513/guide

v0.1.17

Published

user guide

Readme

@huise513/guide

a user guide lib

Usage

npm install @huise513/guide
<div data-guide="step1"></div>
<div data-guide="step60"></div>
<div data-guide="step90"></div>
import  { createGuide } from  '@huise513/guide';
import '@huise513/guide/dist/style.css'
const guide = createGuide({
  theme: 'default', //主题 default | dark
  flag: 'data-guide',
  props: { // 所有属性支持在step中配置
    targetClickEnable: false, //目标区域是否可以点击 
    clickTargetNext: false, //点击目标区域自动执行下一步, targetClickEnable需为true
    scrollToTarget: true, //滚动到目标区域
    showTooltip: true, //是否显示提示框
    showOperation: true, //是否显示操作按钮
    showSkip: true, //是否显示跳过
    showNextBtn: true, //是否显示下一步
    showPrevBtn: true, //是否显示上一步
    showCompleteBtn: true, //是否完成
    nextText: '下一步', //下一步按钮文案
    prevText: '上一步', //上一步按钮文案
    skipText: '跳过', //跳过按钮文案 最后一步之前都展示
    completeText: '完成', //完成按钮文案 只会在最后一步展示
    autoNext: false, //是否自动下一步
    autoNextTime: 5, //自动下一步等待时间(秒)
    position: 'top', //引导展示位置top/bottom/left/right 默认根据位置自动选择 
  },
  events: {
    onInit() {
      console.log('global onInit');
    },
    onStart() {
      console.log('global onStart');
    },
    beforeStart(next) {
      console.log('global beforeStart');
      next();
    },
    beforeSkip(next) {
      console.log('global beforeSkip');
      next();
    },
    beforeComplete(next) {
      console.log('global beforeComplete');
      next();
    },
    beforeEnter(next) {
      console.log('global beforeEnter');
      next();
    },
    beforeNext(next: Function) {
      console.log('global beforeNext');
      next();
    },
    beforePrev(prev: Function) {
      console.log('global beforePrev');
      prev();
    },
    afterEnter() {
      console.log('global afterEnter');
    },
    onSkip() {
      console.log('global onSkip');
    },
    onComplete() {
      console.log('global onComplete');
    },
    onExit() {
      console.log('global exit');
    }
  },
  steps: [
    {
      tip: `欢迎你Guide
          你好
            你好  
              开始`,
      beforeNext(next: Function) {
        console.log('beforeNext');
        next()
      },
      beforeEnter(next: Function) {
        console.log('beforeEnter');
        next();
      },
      afterEnter() {
        console.log('afterEnter');
      },
    },
    {
      id: 'step1',
      tip: '<div style="color: red;">html</div>',
      beforePrev(prev: Function) {
        console.log('beforePrev'); prev()
      },
    },
    {
      id: 'step60',
      tip: '提示文案60',
      position: 'left',
    },
    {
      id: () => document.querySelector('[data-guide="step90"]'),
      tip: '提示文案90',
    },
    {
      id: 'step40',
      tip: '提示文案40',
    }
  ],
})
// wait DomTree render complete
guide.start();

ps: 完整选项请查看源码