@blakeley-place/medley

中文文档
0.11.1发布于 2026/10/31MITTypeScriptES Module

Hosted onboarding and a consistent backend API for small apps

原始使用文档

Medley

Medley provides a consistent backend API and a development helper for setup and integration inspection. Hosted Medley owns persistent administration.

npm install @blakeley-place/medley
  • Vite: run the dev server and open <app-base>/medley/.
  • Electron: run your existing electron . or electron-vite dev start/dev command; a separate developer window opens.

Automatic installation supports specific host shapes, not arbitrary web or Electron tooling. See installation and removal for supported configurations and exact changes.

The helper is development-only. It checks public configuration and shows static Medley imports; runtime tracing and code-defined access inspection are not shipped. It opens hosted Medley in your browser to create/reuse an app and download medley.json. Public configuration is not a credential. Production APIs require explicit integration and authentication.

Loopsea and the Electron fixture are validation hosts, not places to implement Medley features. Their source remains independent of Medley until explicitly integrated.

Documentation

Use Node 24 for development. Run npm ci, npm test, npm run typecheck, and npm run format:check. Native Electron lifecycle checks run separately in CI.

版本与发布记录

@blakeley-place/medley 共发布 13 个版本,首次发布于 2026/10/28;过去 12 个月发布了 13 个版本。

版本发布日期距今
0.11.1latest2026/10/313 天前
0.11.02026/10/295 天前
0.10.12026/10/295 天前
0.10.02026/10/295 天前
0.9.02026/10/286 天前
0.8.12026/10/286 天前

关于 @blakeley-place/medley 的常见问题

@blakeley-place/medley 是什么?

托管入职和一致的后端API为小型应用程序

如何安装 @blakeley-place/medley?

在项目目录运行 npm install @blakeley-place/medley,或使用 pnpm add / yarn add / bun add。

@blakeley-place/medley 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@blakeley-place/medley 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@blakeley-place/medley 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=24。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@blakeley-place/medley 可以商用吗?

@blakeley-place/medley 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@blakeley-place/medley 还在维护吗?

最新版本 0.11.1 发布于 2026/10/31(3 天前);至今共发布 13 个版本,其中过去 12 个月发布了 13 个;首次发布于 2026/10/28。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。