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

@public-tauri/raycast-convert

v1.0.1

Published

Convert Raycast extensions into Public Tauri plugins.

Downloads

62

Readme

@public-tauri/raycast-convert

将 Raycast 插件转换为 Public Tauri 插件。

当前阶段暂时只支持 Raycast no-view 命令;Raycast view 插件的适配正在进行中。

仓库根目录提供了以下脚本:

pnpm raycast:convert <raycast-plugin-dir> --out <public-plugin-dir> [--build]
pnpm raycast:convert:production <raycast-plugin-dir> --out <public-plugin-dir> [--build]

该包也提供 CLI:

raycast-convert <raycast-plugin-dir> --out <public-plugin-dir> [--build] [--mode development|production]

功能

转换器读取一个 Raycast 插件目录,并生成一个 Public Tauri 插件目录。

生成的插件包含:

  • package.json,包含 publicPlugin manifest。
  • .raycast-build/public-main.ts,浏览器侧桥接入口。
  • .raycast-build/server.ts,Node 侧命令运行入口。
  • tsdown.config.ts,用于打包转换后的插件。
  • raycast-conversion-report.json,记录已转换命令、跳过命令和 warnings。
  • assets/,当 Raycast 插件存在资源目录时会复制过来。

如果传入 --build,转换器会在生成的 Public Tauri 插件目录中安装依赖,并执行 tsdown 构建。

转换流程

Raycast 插件源码
-> 生成 Public Tauri 插件文件
-> 写入 package.json 和 tsdown.config.ts
-> 在生成的插件目录执行 pnpm install
-> pnpm exec tsdown --config tsdown.config.ts

原始 Raycast 插件源码目录不会被安装依赖,也不会被修改。

模式

development

默认模式。

用于在当前 monorepo 内开发和调试。生成的 package.json 会让 @public-tauri/api 指向本地开发代码:

{
  "dependencies": {
    "@public-tauri/api": "file:/path/to/public-tauri/packages/api"
  }
}

production

用于生产环境或打包应用内转换。生成的插件依赖已发布的 API 包:

{
  "dependencies": {
    "@public-tauri/api": "latest"
  }
}

Raycast API 映射

生成的 tsdown.config.ts 会将 Raycast API 映射到 Public Tauri 的兼容层:

alias: {
  '@raycast/api': '@public-tauri/api/raycast',
  '@raycast/utils': '@public-tauri/api/raycast/utils',
}

原 Raycast 插件中的其它依赖会保留。

当前支持范围

目前暂时只转换以下类型的 Raycast 命令:

{
  "mode": "no-view"
}

其它 command mode 会被跳过,并写入 raycast-conversion-report.json。这不是该包的长期边界,Raycast view 插件的适配正在进行中。

限制

  • 暂时不转换 Raycast React UI 命令。
  • 命令入口文件需要符合常见 Raycast 布局,例如 src/<command>.tssrc/<command>.tsxsrc/<command>/index.ts
  • 运行时能力取决于 @public-tauri/api/raycast 提供的兼容层。