electron-native-modules

Community

Package native Node.js modules for Electron.

Authorbradtaylorsf
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill addresses the complexities of packaging native Node.js modules (like better-sqlite3, sharp, keytar) within Electron applications, ensuring they compile and run correctly across different platforms.

Core Features & Use Cases

  • Cross-Platform Compatibility: Provides configurations for esbuild and electron-builder to handle native module compilation and inclusion.
  • Module Management: Details specific patterns for common native modules, including database, image processing, and secure storage.
  • Use Case: When building an Electron app that requires a high-performance SQLite database (better-sqlite3) or image manipulation (sharp), this skill guides you through the necessary build and packaging steps to avoid runtime errors.

Quick Start

Configure your electron-builder.config.cjs file to include native modules and set npmRebuild to true.

Dependency Matrix

Required Modules

None required

Components

references

💻 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: electron-native-modules
Download link: https://github.com/bradtaylorsf/alphaagent-team/archive/main.zip#electron-native-modules

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 223,000+ vetted skills library on demand.