# hokein/electron-sample-apps

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/hokein-electron-sample-apps).**

3,928 stars · 920 forks · JavaScript · Apache-2.0

## Links

- GitHub: https://github.com/hokein/electron-sample-apps
- awesome-repositories: https://awesome-repositories.com/repository/hokein-electron-sample-apps.md

## Description

This project is a collection of reference implementations and sample applications for desktop software development using Electron. It provides cross-platform boilerplates and practical code examples that demonstrate how to integrate web technologies with native operating system APIs.

The repository serves as a feature showcase for implementing native system integrations, such as local file system access, process management, and custom window framing. It includes demonstrations for specialized capabilities like network request interception via service workers, screen and window capture, and the management of client-side certificates.

The samples cover a broad range of functional areas, including hardware and media interfacing through 3D model rendering and PDF export, as well as system-level utilities for external process execution and sleep prevention. It also provides examples of user interface customization, such as creating custom application menus and defining draggable window regions.

## Tags

### Web Development

- [Desktop Application Boilerplates](https://awesome-repositories.com/f/web-development/desktop-application-boilerplates.md) — Provides starter implementations and project structures for building cross-platform desktop software using web technologies.
- [Electron-Based Development](https://awesome-repositories.com/f/web-development/desktop-development/electron-based-development.md) — Provides a comprehensive reference for developing cross-platform desktop applications using Electron.
- [Electron Application Examples](https://awesome-repositories.com/f/web-development/electron-application-examples.md) — Showcases specific Electron capabilities such as network request interception, screen capture, and PDF generation.
- [Interception Logic](https://awesome-repositories.com/f/web-development/browser-integration-utilities/browser-infrastructure/service-worker-controls/service-worker-libraries/interception-logic.md) — Uses service workers to capture network traffic and redirect requests for mocking purposes.
- [Network Request Interception](https://awesome-repositories.com/f/web-development/network-request-interception.md) — Implements network request interception via service workers to serve mocked responses. ([source](https://github.com/hokein/electron-sample-apps/tree/master/service-worker/mock-response))

### Development Tools & Productivity

- [Electron Desktop Applications](https://awesome-repositories.com/f/development-tools-productivity/electron-desktop-applications.md) — Provides a collection of reference implementations for building desktop applications that integrate web technologies with native system capabilities.
- [Local File System Access](https://awesome-repositories.com/f/development-tools-productivity/node-js-development-utilities/local-file-system-access.md) — Uses system file dialogs to read and write documents from the local disk. ([source](https://github.com/hokein/electron-sample-apps/tree/master/mini-code-editor))
- [External Command Execution](https://awesome-repositories.com/f/development-tools-productivity/external-command-execution.md) — Executes third-party binaries and command-line tools to perform specialized tasks from within the desktop app. ([source](https://github.com/hokein/electron-sample-apps/tree/master/mp3-encoder))

### Education & Learning Resources

- [Application Examples](https://awesome-repositories.com/f/education-learning-resources/application-examples.md) — Offers practical code samples demonstrating the implementation of native desktop features and window customizations.

### Operating Systems & Systems Programming

- [Chromium-Based Desktop Shells](https://awesome-repositories.com/f/operating-systems-systems-programming/desktop-environment-frameworks/desktop-environment-components/desktop-application-frameworks/chromium-based-desktop-shells.md) — Uses a Chromium-based engine to render web content as a native desktop user interface.
- [Native System Integrations](https://awesome-repositories.com/f/operating-systems-systems-programming/kernel-core-internals/system-programming-primitives/system-abstractions/native-interoperability-bindings/native-system-integrations.md) — Implements interfaces that connect a web-based UI to native OS APIs, local file systems, and system notifications.
- [Native API Bridges](https://awesome-repositories.com/f/operating-systems-systems-programming/os-level-integrations/native-api-bridges.md) — Provides a native API bridge to link web interface events with low-level operating system functions.
- [Desktop Hardware Integrations](https://awesome-repositories.com/f/operating-systems-systems-programming/desktop-hardware-integrations.md) — Integrates screen capture, 3D rendering, and physical printing within a desktop environment.
- [Local Content Management](https://awesome-repositories.com/f/operating-systems-systems-programming/local-content-management.md) — Provides examples of reading local files, browsing directories, and generating PDF exports from a desktop view.

### Programming Languages & Runtimes

- [Node.js Runtime Integration](https://awesome-repositories.com/f/programming-languages-runtimes/node-js-runtime-integration.md) — Integrates a Node.js runtime to enable access to the local file system and operating system.

### Software Engineering & Architecture

- [Inter-Process Communication](https://awesome-repositories.com/f/software-engineering-architecture/inter-process-communication.md) — Implements inter-process communication between the main system process and renderer processes.
- [Multi-Process Architectures](https://awesome-repositories.com/f/software-engineering-architecture/multi-process-architectures.md) — Utilizes a multi-process architecture to isolate system tasks from user interface rendering.

### Part of an Awesome List

- [File and Directory Management](https://awesome-repositories.com/f/awesome-lists/devtools/file-and-directory-management.md) — Demonstrates how to list and navigate local file system contents to provide a native desktop exploration experience. ([source](https://github.com/hokein/electron-sample-apps/tree/master/file-explorer))
- [Miscellaneous Tools](https://awesome-repositories.com/f/awesome-lists/more/miscellaneous-tools.md) — Sample applications for API usage.

### Content Management & Publishing

- [PDF Exports](https://awesome-repositories.com/f/content-management-publishing/content-formats-exporting/export-formats/pdf-exports.md) — Generates PDF documents from a view and saves them to the local file system. ([source](https://github.com/hokein/electron-sample-apps/tree/master/printing))

### Graphics & Multimedia

- [3D Object Viewers](https://awesome-repositories.com/f/graphics-multimedia/3d-mesh-rendering/3d-object-viewers.md) — Loads 3D objects from files and enables interactive rotation and zooming. ([source](https://github.com/hokein/electron-sample-apps/tree/master/webgl))
- [Application Window Capture](https://awesome-repositories.com/f/graphics-multimedia/application-window-capture.md) — Enables capturing and streaming specific application windows or displays as video sources. ([source](https://github.com/hokein/electron-sample-apps/tree/master/desktop-capture))

### User Interface & Experience

- [Application Menu Systems](https://awesome-repositories.com/f/user-interface-experience/application-menu-systems.md) — Defines custom hierarchical menu structures and binds them to trigger programmatic application actions. ([source](https://github.com/hokein/electron-sample-apps/tree/master/menus))
- [Custom Window Title Bars](https://awesome-repositories.com/f/user-interface-experience/custom-window-title-bars.md) — Removes system title bars and borders to implement custom-designed window frames and control bars. ([source](https://github.com/hokein/electron-sample-apps/tree/master/frameless-window))
- [Desktop UI Customizers](https://awesome-repositories.com/f/user-interface-experience/desktop-ui-customizers.md) — Creates custom window frames and layouts that deviate from standard operating system borders.
- [Frameless Window Draggables](https://awesome-repositories.com/f/user-interface-experience/frameless-window-draggables.md) — Designates specific user interface regions as draggable handles to allow movement of frameless windows. ([source](https://github.com/hokein/electron-sample-apps/tree/master/frameless-window))
- [Embedded Web Renderers](https://awesome-repositories.com/f/user-interface-experience/web-based-rendering-engines/embedded-web-renderers.md) — Embeds remote web pages within isolated processes to ensure security and stability. ([source](https://github.com/hokein/electron-sample-apps/tree/master/webview/browser))
