@hywax/nue-kit
TypeScript icon, indicating that this package has built-in type declarations

0.2.2 • Public • Published

Nue Kit

A simple and flexible Electron app kit

npm version npm downloads License

🎯 Features

  • 👌️ Ease of Use: Simple and easy to understand API
  • 🪝 Hooks: A flexible system for working with hooks
  • 📦 Modules: A modular system for working with the application
  • 🌐 Locales: A system for working with translations
  • 💾 Store: A simple store for working with data
  • 🏭 Production Ready: Ready for production use
  • 🪄️ TypeScript Support: Full TypeScript support

✨ Installation

# Using pnpm
pnpm add @hywax/nue-kit -D

# Using yarn
yarn add @hywax/nue-kit -D

# Using npm
npm install @hywax/nue-kit -D

⚡ Usage

To fully explore all the features of Nue Kit, check out the repository for a ready-made starter template

import { BrowserWindow, app } from 'electron'
import { createNue, createStore } from '@hywax/nue-kit'

function createMainWindowApp() {
  const store = createStore()

  const mainWindow = new BrowserWindow({
    ...store.get('app.mainWindowPosition'),
    width: 800,
    height: 480,
  })

  return createNue({
    store,
    window: mainWindow,
    isProduction: false,
    singleInstance: true,
    locales: { /* ... */ },
    modules: [],
  })
}

app.whenReady().then(async () => {
  const awesomeApp = createMainWindowApp()
  await awesomeApp.hooks.callHook('electron:created', nue)
})

🏆 Contributors

A huge thank you to everyone who is helping to improve. Thanks to you, the project can evolve!

VitePress Yandex Metrika Contributors

📄 License

The Nue Kit is based on open source code, according to MIT License.

Dependencies (5)

Dev Dependencies (9)

Package Sidebar

Install

npm i @hywax/nue-kit

Weekly Downloads

4

Version

0.2.2

License

MIT

Unpacked Size

18.8 kB

Total Files

11

Last publish

Collaborators

  • hywax