A simple Electron app with a messaging system that allows you to send messages from the command line and display them in the app. Features a dark mode interface with theme toggle.
Install dependencies:
npm install- First, start the server:
npm run server- Then, in a separate terminal, start the Electron app:
npm startYou can send messages to the app from the command line:
# Using the npm script
npm run message "Your message here"
# Or using the CLI script directly
node cli-send.js "Your message here"Messages will immediately appear in the Electron app window.
- Dark mode UI with toggle switch
- Real-time message display with Socket.IO
- Simple CLI for sending messages
- Theme preference is saved between sessions
- Native Electron dark mode integration
main.js- Electron main processrenderer.js- Renderer process codeserver.js- Express server with Socket.IO (port 5000)cli-send.js- Command-line tool for sending messagespublic/index.html- The web page displayed in the app with theme toggle