fantasia-electron-preload

Community

Safely extend Electron preload APIs

Authorvishiri
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Extends or fixes renderer-facing Electron APIs exposed through the preload script and contextBridge. Use when adding IPC-like surface area, typing window.faContentBridgeAPIs, or editing files under src-electron/ contentBridgeAPIs.

Core Features & Use Cases

  • Modular API surface design: create one module per API under src-electron/contentBridgeAPIs/ and expose it safely through the preload.
  • Strong typing and access: update types in src-globals.d.ts to reflect the new window.faContentBridgeAPIs surface and keep the shape stable.
  • Safe integration workflow: import the new surface in electron-preload.ts, wire it into apiObject with a stable key, and extend type declarations accordingly.
  • Use Case: When adding IPC-like functionality or exposing new renderer-facing APIs, this skill guides the consistent pattern.

Quick Start

Define a contract in types, implement it under src-electron/contentBridgeAPIs, import and register in electron-preload.ts, and update typings.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: fantasia-electron-preload
Download link: https://github.com/vishiri/fantasia-archive/archive/main.zip#fantasia-electron-preload

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.