npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

electron-toolkit

v1.0.24

Published

Tools to make launching Electron apps easier

Downloads

97

Readme

Electron Toolkit

"Command Line Gui Tools" to make launching Electron apps easier and faster

  • GUI for electron-builder - package and build your app
  • App Icon Generator - generate app icons for all platforms
    • .ico for Windows
    • .icns for macOS
    • .png for Linux
  • Screen Capturer - create assets for mockups, store listings, online marketing...
    • Take screenshots
    • Record videos
  • Website Builder - go public and launch a website for your app
    • Lean template for desktop apps
    • Responsive design
    • Custom styling options

Screenshots

Overview | :-------------------------:| alt text |

Electron Builder GUI | Icon Generator
:-------------------------:|:-------------------------: alt text | alt text

Screen Capturer | Website Builder :-------------------------:|:-------------------------: alt text | alt text |

Getting Started

  1. Install electron-toolkit inside your Electron app directory
npm install electron-toolkit --save-dev
  1. Add the electron-toolkit script to your package.json file
{
  ...
  "scripts": {
    "electron-toolkit": "electron ./node_modules/electron-toolkit"
  }
}
  1. Make sure Electron and Electron Builder are installed.
npm install electron --save-dev
npm install electron-builder --save-dev
  1. Now you can run electron-toolkit directly from your project directory
npm run electron-toolkit

Supported Platforms

  • Windows (32/64 bit)
  • OS X (also known as macOS)

Usage

See Wiki

Security Checklist

  • [x] Only display secure (https) content:

<webview :src="'https://' + url" :preload="preloadScript" ></webview>

  • [x] Disable the Node integration in all renderers that display remote content (setting nodeIntegration to false in webPreferences)
  • [x] Enable context isolation in all renderers that display remote content (setting contextIsolation to true in webPreferences)
  • [ ] Use ses.setPermissionRequestHandler() in all sessions that load remote content
  • [x] Do not disable webSecurity. Disabling it will disable the same-origin policy.
  • [ ] Define a Content-Security-Policy , and use restrictive rules (i.e. script-src 'self')
  • [ ] Override and disable eval , which allows strings to be executed as code.
  • [x] Do not set allowRunningInsecureContent to true.
  • [x] Do not enable experimentalFeatures or experimentalCanvasFeatures unless you know what you're doing.
  • [x] Do not use blinkFeatures unless you know what you're doing.
  • [x] WebViews: Do not add the nodeintegration attribute.
  • [x] WebViews: Do not use disablewebsecurity
  • [x] WebViews: Do not use allowpopups
  • [x] WebViews: Do not use insertCSS or executeJavaScript with remote CSS/JS.
  • [x] WebViews: Verify the options and params of all <webview> tags before they get attached using the will-attach-webview event
app.on('web-contents-created', (event, contents) => {
  contents.on('will-attach-webview', (event, webPreferences, params) => {
    // Strip away preload scripts if unused or verify their location is legitimate
    delete webPreferences.preload
    delete webPreferences.preloadURL

    // Disable node integration
    webPreferences.nodeIntegration = false

    // Verify URL being loaded
    if (!params.src.startsWith('https://yourapp.com/')) {
      event.preventDefault()
    }
  })
})

Want to contribute?

We welcome and encourage all sorts of contributions that help us make this project more awesome. Contact me [email protected].

License

  1. License for electron-toolkit

    MIT License Copyright (c) 2017 Philipp Langhans & Alina Sinelnikova / Hytag,inc

  2. License for website template (inside Website Builder)

    Copyright (c) 2017 Hytag, inc

    The License grants you, free of charge, an ongoing, non-exclusive, worldwide license to use, copy, modify, manipulate the template to create a website for your commercial or non-commercial end product. You are not allowed to sublicense, and/or sell the template.