electron

Implement secure Electron desktop app patterns for chunked bulk photo uploads.

Updated Oct 6, 2025
One-click install
npx skills add https://github.com/nathanielcrowell12-spec/photo-vault --skill electron
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: electron
Source: https://github.com/nathanielcrowell12-spec/photo-vault/tree/main/.claude/skills/electron
Command: npx skills add https://github.com/nathanielcrowell12-spec/photo-vault --skill electron

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates the creation of cross-platform desktop applications with secure file handling and native performance.

Core Features & Use Cases

  • Chunked Upload Automation: Handle large photo uploads without memory issues by automatically streaming files in chunks.

Quick Start

Use the electron skill to create a secure file picker that allows photographers to select multiple large photo files for batch upload to their galleries.

Frequently Asked Questions about electron

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I handle large photo uploads in a desktop app without running out of memory?

Chunked uploads stream files in 6MB segments instead of loading entire files into memory. This approach processes large photos incrementally, preventing memory exhaustion and enabling reliable bulk uploads regardless of file size.

What security patterns should I use when building an Electron desktop app?

Disable nodeIntegration, use contextBridge with secure preload scripts, and implement main/renderer process isolation. These patterns prevent code injection and unauthorized system access while maintaining safe communication between processes.

How do I implement file uploads from an Electron app to a remote server?

Use preload scripts to expose file-picker APIs, stream selected files in chunks to your backend, and implement retry logic with error handling. This workflow covers file selection, authentication, streaming uploads, and recovery from network failures.

Can I use Electron for cross-platform desktop applications with native file handling?

Yes. Electron enables cross-platform desktop apps with native file pickers, protocol handlers, and auto-updater workflows. It provides direct filesystem access and system integration while maintaining security through proper process isolation.

What happens if an upload fails partway through a large file transfer?

Robust error handling and retry mechanisms detect failures and resume from the last successful chunk rather than restarting the entire upload. Proper resource cleanup ensures failed transfers don't leave orphaned processes or memory leaks.