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

@qcqx/lattice-web

v1.14.0

Published

Lattice 可视化前端

Readme

@qcqx/lattice-web

Lattice 可视化前端 — 基于 React Flow 的任务/项目/Spec 关系图浏览器。

功能

  • 四种视角:全局关系图、任务展开、项目展开、Spec 概览
  • 交互画布:Cytoscape 自动布局,节点点击打开详情,连线高亮
  • 实时搜索:混合检索(BM25 + 语义),侧栏即时筛选
  • 表格模式:项目/任务表格列表,支持排序分页
  • 明暗主题:跟随系统或手动切换
  • 路由驱动:URL 反映当前视角和锚点,支持浏览器前进/后退

安装

# 全局安装
npm i -g @qcqx/lattice-web

使用

# 通过 lattice CLI 启动
ltc web
# 指定端口,默认 14527
ltc web --port 8080
# 不自动打开浏览器
ltc web --no-open

启动后访问 http://localhost:14527。重复启动会检测已有服务并提示。

路由

| 路径 | 说明 | |---|---| | / | 全局关系图 | | /task | 任务视角(全部) | | /task/:taskId | 任务视角(指定) | | /project | 项目视角(全部) | | /project/:projectId | 项目视角(指定) | | /spec | Spec 概览 | | /spec/:specId | Spec 详情 | | ?mode=table | 切换表格显示 |

技术栈

React 19 · Vite 8 · antd v6 · Cytoscape · Valtio · TanStack Query · Fastify 5 · TypeBox

开发

详见 docs/development.md

# 开发模式(Vite :5173 + Fastify :14527)
pnpm dev:web

# 构建
pnpm build:web

架构

浏览器 → Fastify API → @qcqx/lattice-core → ~/.lattice/
         ↑
  Vite SPA (Cytoscape + antd)

前端通过 adapter 接口获取数据(HttpAdapter → fetch → Fastify API → core),为未来 VSCode 插件(WebviewAdapter)预留。

License

MIT