[GH-ISSUE #5026] [Feature]: Add a complete Personal Extension authoring and management guide #2780

Closed
opened 2026-10-21 05:55:21 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @SpicyMarinara on GitHub (Aug 14, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5026

Originally assigned to: @SpicyMarinara on GitHub.

What problem does this solve?

The current Personal Extensions guide explains the trust model and includes a few Browser API snippets, but it does not provide an end-to-end path for someone creating and maintaining their own extension. Authors currently have to infer the modern package format, manifest fields, runtime APIs, and update lifecycle from source code.

The maintainer architecture guide is not a substitute for user-facing author documentation, and the old author guide/examples were removed with the retired unsafe runtime without a complete replacement for the current sandboxed system.

Proposed solution

Add a complete author-facing guide for the current extension system and link it from the existing Personal Extensions guide and documentation index. It should cover:

  • a minimal sandboxed Browser Extension quickstart with an importable folder/ZIP, exact directory tree, modern manifest.json, and runnable JavaScript/CSS;
  • supported manifest fields, source paths, runtimes, capabilities, package formats, and validation limits;
  • Browser APIs for identity, logging, private storage, managed timers, cleanup, active-chat context, constrained windows, and host-rendered contributions;
  • a minimal Server Extension example, platform availability, and sandbox restrictions;
  • how to choose between a sandboxed Browser Extension, a full-page External Extension, and a Server Extension;
  • how a self-authored package moves through External Extension gates, import, code/hash review, enable/disable, edit/re-import, version updates or downgrades, revisions/rollback, export, backup/restore, and deletion;
  • debugging and troubleshooting guidance, including where Browser and Server errors appear and what common import/approval failures mean.

Restore modern, importable minimal examples that are kept in sync with the actual schema and runtime. A reader should be able to build, import, run, disable, update, and export the minimal example without reading implementation code.

If user-facing files under docs/ change, sync the translated documentation on docs-i18n or open the required follow-up issue.

Alternatives considered

Only expanding the maintainer architecture guide would leave the same audience mismatch. Expanding the existing user guide could work, but a dedicated authoring section or guide would keep installation and safety instructions readable while giving package and API details enough space.

Additional context

Relevant current sources are:

  • docs/extending/personal-extensions.md
  • docs/development/personal-extensions.md
  • packages/shared/src/schemas/personal-extension.schema.ts
  • packages/client/src/lib/personal-extension-transfer.ts
  • packages/client/src/lib/personal-extension-import.ts

The current guide is strong on trust and runtime architecture, but it omits a complete self-authored package workflow and a comprehensive author API reference. Related size-policy work is tracked separately in #5025.

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @SpicyMarinara on GitHub (Aug 14, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5026 Originally assigned to: @SpicyMarinara on GitHub. ## What problem does this solve? The current Personal Extensions guide explains the trust model and includes a few Browser API snippets, but it does not provide an end-to-end path for someone creating and maintaining their own extension. Authors currently have to infer the modern package format, manifest fields, runtime APIs, and update lifecycle from source code. The maintainer architecture guide is not a substitute for user-facing author documentation, and the old author guide/examples were removed with the retired unsafe runtime without a complete replacement for the current sandboxed system. ## Proposed solution Add a complete author-facing guide for the current extension system and link it from the existing Personal Extensions guide and documentation index. It should cover: - a minimal sandboxed Browser Extension quickstart with an importable folder/ZIP, exact directory tree, modern `manifest.json`, and runnable JavaScript/CSS; - supported manifest fields, source paths, runtimes, capabilities, package formats, and validation limits; - Browser APIs for identity, logging, private storage, managed timers, cleanup, active-chat context, constrained windows, and host-rendered contributions; - a minimal Server Extension example, platform availability, and sandbox restrictions; - how to choose between a sandboxed Browser Extension, a full-page External Extension, and a Server Extension; - how a self-authored package moves through External Extension gates, import, code/hash review, enable/disable, edit/re-import, version updates or downgrades, revisions/rollback, export, backup/restore, and deletion; - debugging and troubleshooting guidance, including where Browser and Server errors appear and what common import/approval failures mean. Restore modern, importable minimal examples that are kept in sync with the actual schema and runtime. A reader should be able to build, import, run, disable, update, and export the minimal example without reading implementation code. If user-facing files under `docs/` change, sync the translated documentation on `docs-i18n` or open the required follow-up issue. ## Alternatives considered Only expanding the maintainer architecture guide would leave the same audience mismatch. Expanding the existing user guide could work, but a dedicated authoring section or guide would keep installation and safety instructions readable while giving package and API details enough space. ## Additional context Relevant current sources are: - `docs/extending/personal-extensions.md` - `docs/development/personal-extensions.md` - `packages/shared/src/schemas/personal-extension.schema.ts` - `packages/client/src/lib/personal-extension-transfer.ts` - `packages/client/src/lib/personal-extension-import.ts` The current guide is strong on trust and runtime architecture, but it omits a complete self-authored package workflow and a comprehensive author API reference. Related size-policy work is tracked separately in #5025. ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#2780
No description provided.