A modern desktop application built with Svelte and TypeScript that interfaces with Windows APIs. This application provides a bridge between web technologies and native Windows functionality.
This application opens local ports for communication:
Security Implications:
├── src/
│ ├── lib/
│ │ ├── api.ts # API interface definitions
│ │ ├── client.ts # WebSocket client implementation
│ │ └── winapi.ts # Windows API integrations
│ ├── App.svelte # Main application component
│ ├── app.css # Global styles
│ ├── main.ts # Application entry point
│ ├── server.ts # Backend server implementation
│ └── vite-env.d.ts # Vite environment types
├── .github/ # GitHub configuration and assets
├── .vscode/ # VS Code configuration
├── dist/ # Build output directory
├── public/ # Optional public static files
├── index.html # HTML entry point
├── package.json # Project dependencies and scripts
├── svelte.config.js # Svelte configuration
├── tsconfig.json # Base TypeScript configuration
├── tsconfig.app.json # Frontend TypeScript configuration
├── tsconfig.node.json # Vite/Node TypeScript configuration
├── tsconfig.server.json # Backend TypeScript configuration
├── vite.config.ts # Vite build configuration
└── README.md # Project documentation
Clone the repository:
git clone https://github.com/Filyus/Svelte-for-Windows.git
cd svelte-for-windows
Install dependencies:
npm install
Start the development server:
npm run dev
This will concurrently run the Vite development server for the frontend and the TypeScript backend server.
npm run dev
- Start development servers (frontend + backend) concurrentlynpm run dev:client
- Start Vite development server for frontend onlynpm run dev:server
- Start TypeScript backend server with hot reloadnpm run build
- Build both client and server for productionnpm run build:client
- Build frontend only to dist/clientnpm run build:server
- Build backend server using TypeScriptnpm run preview
- Preview the production build (both client and server)npm run check
- Run TypeScript and Svelte checksnpm run clean
- Remove the dist directoryThis project uses TypeScript for type safety and better developer experience. The codebase is structured to separate concerns between frontend components, backend services, and Windows API integrations.
Contributions are welcome! Please feel free to submit a Pull Request.
MIT License
Copyright (c) 2024 Filyus
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.