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

ai-code-flow

v0.1.2

Published

AI-powered coding workflow automation

Readme

AiCode Flow

专为 Vibe Coding 设计的本地看板任务管理工具。

功能特点

  • 🎯 纯本地部署 - 数据完全存储在本地,无需联网
  • 🔄 看板管理 - TODO → InProgress → Review → Done 流程
  • 🚀 AI CLI 集成 - 自动检测并调用本地已安装的 AI 工具
  • 📝 任务管理 - 标题、描述、预估时间、标签、关联文件
  • 🎨 拖拽排序 - 优先级由拖拽位置决定
  • 💾 SQLite 存储 - 单文件数据库,易于备份

支持的 AI CLI 工具

启动时会自动检测以下工具:

快速开始

1. 安装依赖

需要安装 Rust 和 Node.js。

2. 构建前端

cd frontend
npm install
npm run build
cd ..

3. 运行后端

cargo run

服务将自动在浏览器中打开 http://127.0.0.1:3456

4. 开发模式(可选)

前后端分离开发:

终端 1(后端):

cargo run

终端 2(前端):

cd frontend
npm run dev

前端开发服务器将运行在 http://localhost:5173,并代理 API 请求到后端。

项目结构

ai-code-flow/
├── Cargo.toml              # Rust 后端配置
├── src/
│   ├── main.rs             # 入口
│   ├── api/                # HTTP API 路由
│   ├── cli/                # AI CLI 检测与执行
│   ├── db/                 # SQLite 数据库操作
│   └── ws/                 # WebSocket(预留)
├── frontend/               # React 前端
│   ├── package.json
│   ├── src/
│   │   ├── components/     # React 组件
│   │   ├── types/          # TypeScript 类型
│   │   ├── App.tsx
│   │   └── main.tsx
│   └── dist/               # 构建输出
└── README.md

API 接口

| 方法 | 路径 | 描述 | |------|------|------| | GET | /api/tasks | 获取所有任务 | | POST | /api/tasks | 创建任务 | | PUT | /api/tasks/:id | 更新任务 | | DELETE | /api/tasks/:id | 删除任务 | | POST | /api/tasks/:id/move | 移动/排序任务 | | GET | /api/clis | 获取可用的 AI CLI | | POST | /api/ai/run | 运行 AI CLI 分析任务 |

数据存储

数据存储在 ~/.aicode-flow/data.db (SQLite)。

可手动备份此文件,或使用应用内的导出功能。

技术栈

  • 后端: Rust + Axum + SQLite (rusqlite)
  • 前端: React + TypeScript + Tailwind CSS + Vite
  • 拖拽: @dnd-kit
  • 图标: Lucide React

Pre-commit Hooks

项目配置了 pre-commit hooks,在提交代码前自动运行质量检查。

安装

# 安装 pre-commit (如果尚未安装)
pip install pre-commit

# 安装项目 hooks
pre-commit install

Hook 列表

  • Rust 格式检查: cargo fmt --check
  • Rust Clippy: cargo clippy --all-targets --all-features -- -D warnings
  • 编译检查: cargo test --no-run
  • 单元测试: cargo test --all --no-fail-fast
  • 代码覆盖率: 新增代码必须达到 95% 覆盖率

使用

# 手动运行所有 hooks (不提交)
pre-commit run --all-files

# 跳过 hooks (不推荐)
git commit --no-verify

覆盖率检查

覆盖率检查使用 cargo-tarpaulin,会在首次运行时自动安装。该检查只分析被修改的 Rust 文件,确保新增代码至少有 95% 的测试覆盖率。

生成覆盖率报告:

./scripts/coverage.sh

或者直接使用 cargo-tarpaulin:

cargo tarpaulin --bin ai-code-flow --out Html --output-dir coverage
open coverage/tarpaulin-report.html

开发计划

  • [x] 基础看板功能
  • [x] AI CLI 自动检测
  • [x] 任务 CRUD
  • [x] 拖拽排序
  • [ ] 数据导出/导入
  • [ ] 任务搜索和过滤
  • [ ] 键盘快捷键
  • [ ] 暗色模式

License

MIT