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

@vte-js/vscode

v1.0.3

Published

IDE support for Vue Token Engine <style token> blocks

Readme

VTE VS Code Extension

基于 VTE Language Server 的 VS Code 扩展,为 Vue Token Engine 的 <style token> 块提供完整的 IDE 支持。

功能

核心功能

  • 语法高亮$token.path 语法的语法高亮
  • 悬停预览:鼠标悬停显示 token 值、颜色预览、引用链
  • 自动补全:输入 $ 后自动补全 token 路径,颜色 token 显示色块图标
  • 跳转定义:Ctrl/Cmd + 点击跳转到 token 定义

智能功能

  • 诊断警告:无效 token 显示黄色波浪线警告
  • 快速修复:自动建议相似的 token 路径
  • 重命名:F2 重命名 token,自动更新所有引用
  • Code Lens:显示 token 使用次数(当前文件和项目级)

视觉增强

  • 内联色块:颜色 token 旁边显示色块
  • 内联值显示:非颜色 token 后面显示解析后的值(灰色斜体)
  • 颜色标尺:右侧标尺显示颜色标记

文档支持

  • 大纲视图:显示所有 class 和选择器
  • class 支持:悬停和跳转支持 template 中的 class 名称
  • class 样式预览:悬停在 class 名称上显示 CSS 样式(带语法高亮)

架构

@vte-js/language-server  ← IDE 无关核心
└── @vte-js/vscode       ← VS Code 适配器(本包)

安装

开发模式

cd packages/vte-vscode
npm install
npm run build

然后在 VS Code 中:

  1. F5 启动调试
  2. 选择 "Run Extension"
  3. 在新窗口中打开 VTE 项目

项目级配置

在项目根目录创建 .vscode/settings.json

{
  "css.validate": false,
  "scss.validate": false,
  "less.validate": false
}

使用

快捷键

| 操作 | 快捷键 | |------|--------| | 自动补全 | 输入 $ | | 悬停预览 | 鼠标悬停 | | 跳转定义 | Ctrl/Cmd + 点击 | | 重命名 | F2 | | 快速修复 | Ctrl/Cmd + . | | 大纲视图 | Ctrl/Cmd + Shift + O |

Code Lens

每个 token 首次出现的位置显示使用次数:

2 usages in file    5 usages in project
.btn {
  background: $semantic.color.primary;
}

Class 操作

<template>
  <button class="btn">Click me</button>
</template>

<style token>
.btn {
  background: $semantic.color.primary;
}
</style>

悬停在 class 名称上会显示 CSS 样式和可点击的 token 链接。

配置

{
  "vte.tokenFile": "design-tokens.ts"
}

License

ISC