Skip to content
rbstxtPublic

About

A feature-rich toolkit that expands what you can do in Panzoid Clipmaker 3.

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

351 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zoidium

An open-source collection of tools for extending the CM3 experience.

Zoidium is an external extension layer for Clipmaker Gen3 (CM3). It provides plugins, local-first adapters, creator tools, and packaging for browser and desktop use.

The Zoidium source code, plugins, documentation, and build tools are licensed under the MIT License. The bundled Source Code Pro, Geist, Geist Mono, JetBrains Mono, IBM Plex Sans, IBM Plex Mono, Cascadia Mono, and Fira Code fonts have their own SIL Open Font License 1.1 notice. CM3 resources fetched at runtime or build time remain subject to their respective rights holders' notices and terms.

The repository intentionally contains no CM3 runtime, effect, material, worker, shader, texture, CM3 font, icon, or download-page files. It does include the separately licensed UI font families under fonts/; they are not a Panzoid/CM3 resource. When the app is started or a deployment is built, tools/runtime-resources.js fetches the configured Clipmaker 3 and Video Editor 2 source pages and their shared same-origin resource graph into the Git-ignored .zoidium-resources/ cache. CM3-specific font presets remain in that cache, while the Zoidium extension layer uses the locally bundled font selected in Settings. No font CDN request is needed. The cache is retained between local runs; a static deployment keeps only the generated build output required by that deployment.

Quick start

Requirements: Node.js 22.12+ and pnpm 11.1.2. The repository pins pnpm in package.json.

corepack enable
pnpm install --frozen-lockfile
pnpm run setup      # download/update the CM3 resource cache
pnpm run web        # ensures the cache and serves http://127.0.0.1:8123 and http://localhost:8123
pnpm run dev        # same, then opens the browser
pnpm run desktop:start # Electron development mode; stages the cached runtime
pnpm run desktop:dev   # alias for the Electron development app
pnpm run verify     # check manifests, bundles, syntax, and tests

The local web server reads Zoidium-owned runtime files directly from the checkout, so reloading the browser picks up edits without restarting the server. If a plugin source or manifest changed, rebuild its generated bundle with pnpm run build:plugin-bundles; the next reload then uses it immediately.

Do not open the repository's index.html with file://. It is a bootstrap placeholder; the actual CM3 page is generated into the runtime stage, and workers/WASM require an HTTP origin.

Build and deployment

Build a static deployment with:

pnpm run build

The generated site is written to dist/web/ and is ignored by Git. For a static host such as Cloudflare Pages, use pnpm run build as the build command and dist/web as the output directory. pnpm run build is the deployment entrypoint and runs the same CM3-fetching builder as pnpm run build:web. wrangler.jsonc records dist/web as the Pages output directory for direct Wrangler-based deployments. Network access is required in the build environment because the CM3 source graph is fetched at build time. Do not deploy the repository root: its index.html is intentionally only a source checkout placeholder.

For a direct Cloudflare Pages deployment, run:

pnpm run deploy

This builds the fetched stage first and uploads only dist/web/. Wrangler authentication and access to the zoidium Pages project are required.

Build the desktop installer for the current runner with:

pnpm run desktop:build

The desktop build always refreshes the CM3 resource graph before creating a temporary application tree. The installer contains the fetched CM3 runtime and the Zoidium extension layer. The temporary source tree is removed after the build, and the fetched runtime is never committed to the repository. The packaged app uses a fixed loopback origin so local editor data survives a restart. Set ZOIDIUM_DESKTOP_PORT only when the default port is unavailable.

Every push to main runs the native macOS, Windows, and Linux builds in .github/workflows/release.yml and publishes their installers as a GitHub Release. Pull requests run verification but do not publish a release. The workflow currently produces unsigned installers. Add the platform signing and notarization secrets before distributing them to end users.

Set ZOIDIUM_CM3_SOURCE_PAGE or ZOIDIUM_VIDEO_EDITOR_SOURCE_PAGE to use compatible source pages during a build or local run. The defaults are:

https://panzoid.com/legacy/gen3/clipmaker.html

https://panzoid.com/legacy/gen3/videoeditor.html

Runtime lifecycle

The staging pipeline is:

  1. Fetch the configured CM3 HTML page when the cache is absent or refreshed.
  2. Discover same-origin stylesheet/script links and static runtime references.
  3. Fetch those files into the Git-ignored cache while preserving their URL paths.
  4. Add the Zoidium bootstrap to the staged index.html, deferring CM3 initialization until the extension layer is ready.
  5. Serve or package the staged tree.
  6. Keep the resource cache after the local server exits; remove only temporary build staging directories when their build process ends.

There is no checked-in resource manifest and no checked-in copy of the source page. pnpm run setup refreshes the cache from the current HTML and runtime graph; normal runs reuse that cache and automatically create it if necessary.

The extension layer supplies local account/API/adapters, plugin loading, and the in-place download bridge. CM3's legacy download navigation is intercepted by zoidium/direct-download.js. Each completed video or image page keeps its own Blob and filename, so a later render or project save cannot replace its download. Render and archive workers share one origin-private output path; Zoidium serializes those operations across tabs before they reach the workers.

tools/runtime-resources.js is the only CM3 fetch path. It downloads the configured source page, discovers same-origin files, writes them to the ignored cache, copies Zoidium-owned files into a stage, and patches the staged HTML. The browser server, Web builder, and desktop builder all use the same module.

Repository layout

Zoidium/
├── index.html                 # bootstrap placeholder; replaced in a build stage
├── LICENSE                    # MIT License for Zoidium-owned work
├── desktop/
│   └── main.cjs               # Electron process and local HTTP server
├── package.json               # pnpm scripts and Electron build configuration
├── fonts/
│   ├── fonts.css              # local UI font faces
│   ├── cascadia-mono-regular.woff2
│   ├── fira-code-regular.woff2
│   ├── geist-sans-variable.woff2
│   ├── geist-mono-variable.woff2
│   ├── ibm-plex-sans-regular.woff2
│   ├── ibm-plex-mono-regular.woff2
│   ├── jetbrains-mono-variable.woff2
│   ├── source-code-pro-regular.woff2
│   ├── LICENSE.md             # Source Code Pro SIL Open Font License
│   └── README.md              # source and license details
├── tools/
│   ├── runtime-resources.js   # fetch, cache, discover, patch, and stage CM3
│   ├── serve-with-resources.js# cache-backed browser server
│   ├── build-web.js           # static deployment builder
│   ├── build-electron.js      # fetches CM3 and builds the desktop installer
│   ├── start-electron.js      # stages CM3 and starts Electron for development
│   ├── validate-plugin-manifests.js # manifest schema checker
│   ├── check-syntax.js        # JavaScript syntax checker
│   └── verify.js               # local verification entry point
├── zoidium/
│   ├── runtime-config.js      # extension profile
│   ├── runtime-loader.js      # overlay bootstrap
│   ├── runtime-fonts.css      # applies the selected local/system UI font
│   ├── settings.js             # editor settings tab
│   ├── runtime-policy.js      # local-first policy adapters
│   └── direct-download.js     # in-place Blob download bridge
├── plugins/                   # extension sources and generated plugin bundles
└── about/                     # notices and project information

Plugins

Plugins are optional CM3 extension tools. Their source, manifests, presets, and presets live under plugins/; the runtime normally loads each enabled plugin through one generated bundle.json request.

pnpm run build:plugin-bundles
pnpm run check:plugin-manifests
pnpm run check:plugin-bundles

pnpm run build and pnpm run desktop:build run the bundle build automatically. See plugins/README.md for the bundle contract.

Scope and attribution

Zoidium is an independent open-source tool collection, not an official CM3 or Panzoid product. CM3 source files are obtained at runtime/build time from the configured upstream page and remain subject to their respective rights-holder notices and terms. Zoidium's extension code, plugins, documentation, and build tools are licensed under the MIT License. See about/acknowledgements/ for the current notices.

Related files

About

A feature-rich toolkit that expands what you can do in Panzoid Clipmaker 3.

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages