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

@koishi-ce/client

v1.4.2

Published

Koishi Console browser runtime

Downloads

1,705

Readme

@koishi-ce/client

简体中文 | English

Koishi 控制台的浏览器端运行时与组件基座,移植自上游 koishijs/webui 的 packages/client。它承载控制台前端的全部基础设施——根 Context、服务与插件系统、路由与活动栏、状态管理、主题、动作与菜单。

与 @koishi-ce/plugin-console(node 侧宿主)的分工:本包运行在浏览器,是前端基座;plugin-console 运行在 node,负责 WebSocket 通道与静态资源托管。驱动 vite 的构建器已拆至 @koishi-ce/console-builder,宿主 SPA 已拆至 @koishi-ce/console-app,本包只保留浏览器运行时库本体。

主要导出

  • root 与 Context:唯一根上下文实例与其类型;
  • defineExtension:控制台插件前端扩展的定义入口;
  • Service:前端侧服务基类;
  • 路由与活动:RouterService、Activity、redirectTo;
  • 状态:store(reactive 全局状态)及 socket / send / receive / connect;
  • 设置与主题:createStorage、useConfig、SettingService、useColorMode、ThemeService;
  • 动作与菜单:useMenu 与 ActionService(动作面板、菜单注册、全局快捷键分发);
  • 国际化:I18nService;
  • element-plus 的 loading / message / messageBox 服务封装;
  • Satori / Universal 命名空间与 ScopeStatus 常量。

消费形态

本包没有独立的运行时发布形态,而是作为源码被前端工程消费:src/ 由 console 打包器并成插件运行时共享块 client.js,宿主 SPA(@koishi-ce/console-app)与各插件均以 external 依赖共享同一份实例,避免多份 Vue 实例。

构建器能力(build(root, config) / createServer(baseDir) / koishi-console CLI / collectWorkspaceAliases())均在 @koishi-ce/console-builder。

许可证

AGPL-3.0。本包是上游 koishijs/webui 的社区再分发,版权归 Shigma 及 Koishijs 贡献者(上游)与 Koishi-CE 贡献者,见 NOTICE。


English

The browser-side runtime and component foundation of the Koishi console, ported from packages/client of the upstream koishijs/webui. It hosts the entire frontend infrastructure — the root Context, services and plugin system, router and activity bar, state management, themes, actions and menus.

Division of labor with @koishi-ce/plugin-console (the node-side host): this package runs in the browser as the frontend foundation, while plugin-console runs on node serving the WebSocket channel and static assets. The vite-driven builder has been split out into @koishi-ce/console-builder and the host SPA into @koishi-ce/console-app, leaving this package with the browser runtime library itself.

Key exports

root and Context (the single root context), defineExtension (entry for console plugin frontends), the frontend Service base, RouterService / Activity / redirectTo, the reactive store with socket / send / receive / connect, settings and theming (createStorage, useConfig, SettingService, useColorMode, ThemeService), actions and menus (useMenu, ActionService with global shortcut dispatch), I18nService, element-plus service wrappers (loading / message / messageBox), plus the Satori / Universal namespaces and ScopeStatus.

Consumption

The package is consumed as source rather than shipped as a standalone runtime: src/ is bundled by the console builder into the shared client.js chunk, so that the host SPA (@koishi-ce/console-app) and every plugin share a single instance via externals and never end up with duplicate Vue copies.

Builder capabilities (build(root, config), createServer(baseDir), the koishi-console CLI, collectWorkspaceAliases()) now live in @koishi-ce/console-builder.

License

AGPL-3.0. Community redistribution of upstream koishijs/webui; copyright Shigma and Koishijs contributors (upstream) and Koishi-CE contributors — see NOTICE.