Skip to content

This is an electron build for a proof of concept for a desktop app that builds itself out based on your requirements of it

License

Notifications You must be signed in to change notification settings

spark-engine-opensource-projects/Self-Building-Desktop-App

Repository files navigation

Dynamic App Builder

An AI-powered Electron desktop application that generates and executes interactive web components using Claude (Anthropic's AI).

Features

  • AI Code Generation - Generate complete UI components from natural language prompts
  • Secure Execution - Sandboxed code execution with resource limits
  • Smart Caching - Similarity-based caching for faster responses
  • Dynamic Database - AI-powered SQLite database creation and management
  • Data Visualization - Built-in charts, graphs, and data analysis tools
  • TypeScript Support - Full TypeScript definitions and compilation
  • Production Ready - Comprehensive logging, monitoring, and error recovery

Quick Start

# Install dependencies
npm install

# Start the application
npm start

# Run in development mode
npm run dev

Prerequisites

  • Node.js 14.0.0 or higher
  • npm 6.0.0 or higher
  • Anthropic API key (Get one here)

Usage

  1. Launch the application with npm start
  2. Enter your Anthropic API key
  3. Describe what you want to build in natural language
  4. Review and execute the generated code

Example Prompts

  • "Create a todo list with add/remove functionality"
  • "Build a calculator with modern UI"
  • "Make an interactive dashboard with charts"

Scripts

Command Description
npm start Start the application
npm run dev Development mode with DevTools
npm run build Build for production
npm test Run test suite
npm run test:coverage Run tests with coverage
npm run type-check TypeScript type checking

Documentation

Detailed documentation is available in the /docs directory:

Project Structure

src/
├── main.js              # Main Electron process
├── preload.js           # Secure IPC bridge
├── config/              # Configuration files
├── handlers/            # IPC handlers
├── modules/             # Feature modules
├── renderer/            # UI components
├── types/               # TypeScript definitions
└── utils/               # Core utilities

Security

This application implements comprehensive security measures:

  • Sandboxed code execution
  • Input validation and sanitization
  • Content Security Policy enforcement
  • Secure API key storage
  • XSS and SQL injection prevention

See SECURITY.md for details.

Contributing

Please read CONTRIBUTING.md for contribution guidelines.

License

MIT License - see LICENSE for details.

Acknowledgments

About

This is an electron build for a proof of concept for a desktop app that builds itself out based on your requirements of it

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •