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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@xy-fe/timeline-sdk

v0.0.48

Published

## 目录 * **src/engine:** 引擎代码 * **src/logic:** 逻辑层,链接 event & engine * **src/event:** 事件中心 * **src/state:** 状态中心 * **src/ruler:** 缩放轴 * **example** 测试代码

Readme

Timelime-SDK

目录

  • src/engine: 引擎代码
  • src/logic: 逻辑层,链接 event & engine
  • src/event: 事件中心
  • src/state: 状态中心
  • src/ruler: 缩放轴
  • example 测试代码

开发

  1. sdk 的调试代码在 example 目录中
  2. 每次 timeline 修改,需要 npm run build 一下,打包产物会自动被 example 中引用

在 video-markting 中调试

  1. rollup.config.js 中将 plugin 中的 terser 配置注释掉,取消打包混淆
  2. 当前包根目录 npm link,调试完成后 npm unlink
  3. video-markting 根目录 npm link @xy-fe/timeline-sdk, 调试好后 npm unlink @xy-fe/timeline-sdk 解除本地链接

引擎包升级

npm run upgrade -- -s <sdk-file-path> -v <version>

发布

npm run publish:beta: 测试包, 版本号变化为 x.y.(z+1)-beta.0, 多次运行beta数字递增。调试安装时需要显式指定 beta 标签,例如:npm install @xy-fe/timeline-sdk@beta

npm run publish:patch: 补丁, 版本号变化为 x.y.(z+1), 用于修复 bug 或进行小的改动,不影响现有功能

npm run publish:minor: 次版本, 版本号变化为 x.(y+1).0, 添加新功能,但不破坏现有功能的兼容性

npm run publish:major: 主版本, 版本号变化为 (x+1).0.0, 引入破坏性更改,即不向后兼容的改动

发布后版本号会自动变更,并将改动自动 commit 到 git,需要手动 push 一下到远程分支

验证发布

可以通过以下命令查看已发布的版本和标签:

npm view @xy-fe/timeline-sdk versions
npm dist-tag ls @xy-fe/timeline-sdk