secure-electron-template

The best way to build Electron apps with security in mind.

Github星跟蹤圖

secure-electron-template

The best way to build Electron apps with security in mind.

If you are curious about what makes an electron app secure, please check out this page.

Picture of template

Features

Taken from the best-practices official page, here is what this repository offers!

  1. Only load secure content - (Need help!)
  2. Do not enable node.js integration for remote content - ✅
  3. Enable context isolation for remote content - ✅
  4. Handle session permission requests from remote content - ✅
  5. Do not disable websecurity - ✅
  6. Define a content security policy - ✅
  7. Do not set allowRunningInsecureContent to true - ✅
  8. Do not enable experimental features - ✅
  9. Do not use enableBlinkFeatures - ✅
  10. Do not use allowpopups - ✅
  11. <webview> verify options and params - ✅
  12. Disable or limit navigation - ✅
  13. Disable or limit creation of new windows - ✅
  14. Do not use openExternal with untrusted content - ✅
  15. Disable remote module - ✅
  16. Filter the remote module - ✅
  17. Use a current version of electron - ✅

Included frameworks

Built-in to this template are a number of popular frameworks already wired up to get you on the road running.

Roadmap

There are a number of additions that I'd like to implement in this repository, namely auto-updating and more release-focused enhancements and test suites, but those are lower priority (but I welcome PRs!).

Architecture

For a more detailed view of the architecture of the template, please check out here. I would highly recommend reading this document to get yourself familiarized with this template.

How to get started

Click the Use this template button to get started.

Alternatively, if you want to fork and contribute to the template, you can follow these commands:

git clone https://github.com/reZach/secure-electron-template.git
cd secure-electron-template
npm i
npm run dev

FAQ

Please see our faq for any common questions you might have.

主要指標

概覽
名稱與所有者reZach/secure-electron-template
主編程語言JavaScript
編程語言HTML (語言數: 4)
平台
許可證MIT License
所有者活动
創建於2020-01-02 04:48:11
推送於2024-04-14 18:01:33
最后一次提交2024-04-14 13:01:30
發布數86
最新版本名稱v22.0.0 (發布於 2022-07-27 23:51:03)
第一版名稱v4.0.0 (發布於 )
用户参与
星數1.7k
關注者數15
派生數155
提交數253
已啟用問題?
問題數99
打開的問題數15
拉請求數30
打開的拉請求數6
關閉的拉請求數10
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?