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

@lytjs/vscode-extension

v5.0.1

Published

VSCode extension for Lyt.js - provides syntax highlighting, type checking, code completion, debugging, snippets, and Emmet support

Readme

Lyt.js VSCode Extension

Lyt.js 语言支持扩展 - 提供语法高亮、类型检查、代码补全、调试、代码片段和 Emmet 支持

版本: 4.2.0

功能特性

  • 语法高亮 - 为 .lyt 文件提供完整的语法高亮
  • 代码补全 - 内置指令(v-ifv-model 等)和组件(TransitionKeepAlive 等)的智能补全
  • 代码片段 - 丰富的代码片段,快速生成常用代码结构
  • 类型检查 - 实时类型检查和诊断
  • 调试支持 - 支持 Launch 和 Attach 两种调试模式
  • Emmet 支持 - 在 .lyt 文件中使用 Emmet 缩写

安装

从 VSCode 市场安装

在 VSCode 扩展市场搜索 Lyt.js Language Support 并安装。

从源码安装

# 克隆仓库
git clone https://gitee.com/lytjs/lytjs.git
cd lytjs/packages/vscode-extension

# 安装依赖
npm install

# 编译
npm run build

# 在 VSCode 中按 F5 启动调试

命令

| 命令 | 描述 | |------|------| | Lyt.js: Show Welcome | 显示欢迎信息 | | Lyt.js: Create Component | 创建新组件 | | Lyt.js: Create Page | 创建新页面 | | Lyt.js: Create Store | 创建新 Store | | Lyt.js: Toggle Theme | 切换编辑器主题 |

代码补全

插件为 .lyt 文件提供以下补全内容:

内置指令

| 指令 | 说明 | |------|------| | v-if | 条件渲染 | | v-else | 条件渲染 - else 分支 | | v-else-if | 条件渲染 - else if 分支 | | v-each | 列表渲染 | | v-bind | 属性绑定 | | v-model | 双向绑定 | | v-on | 事件监听 | | v-show | 显示切换 |

内置组件

| 组件 | 说明 | |------|------| | Transition | 过渡动画组件 | | TransitionGroup | 列表过渡组件 | | KeepAlive | 缓存组件 | | Suspense | 异步组件加载 |

触发字符:v-@:

调试配置

Launch 模式

{
  "type": "lytjs",
  "request": "launch",
  "name": "Lyt.js: Launch Dev Server",
  "url": "http://localhost:5173",
  "webRoot": "${workspaceFolder}",
  "sourceMaps": true
}

Attach 模式

{
  "type": "lytjs",
  "request": "attach",
  "name": "Lyt.js: Attach to Dev Server",
  "port": 9229,
  "webRoot": "${workspaceFolder}",
  "sourceMaps": true
}

配置项

在 VSCode 设置中可配置以下选项:

| 配置项 | 类型 | 默认值 | 描述 | |--------|------|--------|------| | lytjs.enableTypeChecking | boolean | true | 启用 .lyt 文件的类型检查 | | lytjs.enableAutoComplete | boolean | true | 启用 .lyt 文件的代码补全 | | lytjs.snippets.enabled | boolean | true | 启用 Lyt.js 代码片段 | | lytjs.debug.port | number | 5173 | 默认调试端口 | | lytjs.debug.url | string | http://localhost:5173 | 默认调试 URL | | lytjs.emmet.enabled | boolean | true | 启用 Emmet 支持 |

开发

# 安装依赖
npm install

# 编译
npm run build

# 监听编译
npm run watch

# 代码检查
npm run lint

# 运行测试
npm test

License

MIT