Skip to main content

Examples

The following example applications demonstrate how to use @electron-ipc-bridge in various scenarios, from simple setups to complex integrations with other libraries.

  • Basic Example A minimal setup using vanilla JavaScript/HTML and the standard Electron bundler. Perfect for understanding the core mechanics without extra noise. There is no frontend type-safety.

  • Electron & Vite The recommended starting point for most apps. Shows how to use the Vite plugin for automatic type generation and hot module replacement.

  • Electron, Vite & TypeDI Demonstrates advanced dependency injection using the TypeDI library.

  • Electron, Vite & NestJS A proof-of-concept showing how to integrate with NestJS for enterprise-grade architecture.

  • Kitchen Sink A comprehensive example featuring multiple controllers, complex types, and advanced decorator usage.