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

@spaceflow/cli

v0.40.0

Published

Spaceflow CLI 工具

Readme

@spaceflow/cli

npm version License: MIT

Spaceflow CLI 壳子入口,提供 spaceflow / space 命令。负责引导 .spaceflow/ 工作目录并启动 @spaceflow/core 运行时。

安装

pnpm add -D @spaceflow/cli

使用

# 使用 spaceflow 或 space 命令
spaceflow <command> [options]
space <command> [options]

工作原理

CLI 本身不包含任何命令实现,职责仅限于:

  1. 读取 .spaceflow/package.json 确定依赖
  2. 生成 .spaceflow/bin/index.js 入口文件
  3. 通过 execSync 启动子进程执行 @spaceflow/coreexec() 函数

所有命令(内置 13 个 + 外部扩展)均由 @spaceflow/core 提供。

内置命令

| 命令 | 说明 | | ------------ | -------------------- | | install | 安装扩展 | | uninstall | 卸载扩展 | | build | 构建扩展 | | dev | 开发模式运行 | | create | 创建新扩展 | | update | 更新扩展 | | list | 列出已安装扩展 | | clear | 清理缓存 | | runx / x | 执行扩展命令 | | schema | 生成配置 JSON Schema | | commit | AI 智能提交 | | setup | 初始化项目配置 | | mcp | 启动 MCP Server |

扩展开发

# 创建命令型扩展
spaceflow create command my-extension

# 创建 MCP 服务扩展
spaceflow create mcp my-mcp

扩展结构

import { defineExtension } from "@spaceflow/core";

export default defineExtension({
  name: "my-extension",
  commands: [
    {
      name: "my-command",
      description: "My command description",
      run: async (args, options, ctx) => {
        ctx.output.info("Hello from my command!");
      },
    },
  ],
});

编辑器集成

通过配置文件中的 support 字段,spaceflow install 会自动将扩展关联到对应编辑器目录:

| 编辑器 | 配置目录 | | ----------- | ------------ | | Claude Code | .claude/ | | Windsurf | .windsurf/ | | Cursor | .cursor/ | | OpenCode | .opencode/ |

许可证

MIT