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

sentryos-create

v1.0.0

Published

SentryOS 開發環境快速建立工具 — 一鍵生成插件或應用程式的專案骨架

Readme

sentryos-create

SentryOS 開發環境快速建立工具。一個指令即可生成插件或應用程式的完整專案骨架。

安裝

npm install -g sentryos-create
# 或直接使用 npx
npx sentryos-create [plugin|app]

使用方式

在 Monorepo 根目錄執行:

# 互動模式(推薦)
pnpm scaffold

# 直接建立 Plugin
pnpm scaffold:plugin

# 直接建立 App
pnpm scaffold:app

或直接呼叫:

node packages/sentryos-create/index.js [plugin|app]

功能

建立 Plugin

產生一個完整的 TypeScript 插件套件,位於 packages/sentryos-plugin-<name>/

生成的檔案:

packages/sentryos-plugin-<name>/
├── package.json            # 套件設定(含 sentryos-sdk 依賴)
├── tsconfig.json           # TypeScript 開發設定
├── tsconfig.build.json     # TypeScript 建置設定
└── src/
    └── index.ts            # 插件入口(含 SentryPlugin 範本)

下一步:

cd packages/sentryos-plugin-<name>
pnpm install
pnpm build

在宿主應用程式的 createSentryOS({ pluginInstances: [...] }) 中加入此插件實例:

import myPlugin from 'sentryos-plugin-<name>';

createSentryOS({
    container: document.getElementById('app')!,
    pluginInstances: [myPlugin],
});

建立 App

產生一個 SentryOS 應用程式骨架,預設位於 apps/sentryos/public/apps/<id>/

支援的 App 類型:

| 類型 | 說明 | |------|------| | Window | 視窗 GUI 應用程式 | | Console | 終端 / Console 應用程式 | | Service | 背景服務 | | Library | 共用函式庫 |

支援的執行引擎:

| 引擎 | 副檔名 | 需要插件 | |------|--------|---------| | JavaScript(預設)| .js | — | | Lua | .lua | sentryos-plugin-lua-runtime | | Python | .py | sentryos-plugin-python-runtime |

生成的檔案:

apps/sentryos/public/apps/<id>/
├── manifest.json    # App 描述與權限宣告
└── main.js          # 應用程式入口(或 .lua / .py)

下一步:

apps/sentryos/public/app.json 加入 "apps/<id>" 後,啟動開發伺服器即可看到應用程式。

詳細文件