A professional-grade Electron application that helps immigration attorneys and legal professionals generate high-quality immigration letters using AI.
- 🤖 AI-Powered Content Generation: Uses OpenAI's GPT models to generate professional immigration letters
- 📁 Document Management: Support for local files and cloud storage (Google Drive, Dropbox, OneDrive)
- 🔐 Secure Authentication: Built-in user authentication with encrypted credential storage
- 📝 Template System: Pre-built templates for H-1B, Green Card applications with customizable variants
- 🎨 Modern UI: Clean, responsive interface built with React and Tailwind CSS
- 🔒 Enterprise Security: CSP headers, input sanitization, rate limiting, and secure IPC communication
- 📊 Monitoring & Logging: Integrated Sentry monitoring and comprehensive error tracking
- ✅ Testing: Unit and integration tests with Jest and React Testing Library
- Frontend: React 18, TypeScript, Tailwind CSS, Zustand
- Backend: Electron 29, Node.js
- Build Tools: Vite, electron-builder
- Security: keytar (secure credential storage), bcrypt, JWT
- AI Integration: OpenAI API
- Testing: Jest, React Testing Library
- Monitoring: Sentry, electron-log
- Node.js 18+ and npm
- Windows, macOS, or Linux
- OpenAI API key
- Clone the repository:
git clone https://github.com/eeko-systems/clerk.git
cd clerk- Install dependencies:
npm install- Set up environment variables (create
.envfile):
SENTRY_DSN=your_sentry_dsn
JWT_SECRET=your_jwt_secret
STORE_ENCRYPTION_KEY=your_encryption_key
AUTH_ENCRYPTION_KEY=your_auth_key
CLOUD_ENCRYPTION_KEY=your_cloud_key
# Email configuration for support system (optional)
EMAIL_HOST=smtp.gmail.com
EMAIL_PORT=587
EMAIL_SECURE=false
EMAIL_USER=your_email@gmail.com
EMAIL_PASS=your_app_passwordRun the application in development mode:
npm run devRun tests:
npm test
npm run test:coverageLint and format code:
npm run lint
npm run formatType checking:
npm run typecheckBuild for production:
npm run buildThis will create distributables for your current platform in the dist folder.
For development, the default admin credentials are:
- Email: admin@clerk.app
- Password: admin123
Important: Change these credentials before deploying to production.
├── src/
│ ├── main/ # Electron main process
│ │ ├── services/ # Business logic services
│ │ ├── types/ # TypeScript type definitions
│ │ ├── main.ts # Main process entry
│ │ ├── preload.ts # Preload script
│ │ └── ipc-handlers.ts # IPC communication handlers
│ └── renderer/ # React application
│ ├── components/ # React components
│ ├── services/ # Frontend services
│ ├── store/ # State management
│ ├── styles/ # Global styles
│ ├── types/ # TypeScript types
│ └── App.tsx # Main React component
├── tests/ # Test files
├── electron-builder.yml # Build configuration
└── package.json
- Content Security Policy: Strict CSP headers prevent XSS attacks
- Input Validation: All user inputs are validated and sanitized
- Rate Limiting: API calls are rate-limited to prevent abuse
- Secure Storage: Sensitive data encrypted using electron-store
- Authentication: JWT-based authentication with bcrypt password hashing
- Sandboxed Renderer: Renderer process runs in a sandbox with context isolation
- Set production environment variables
- Build the application:
npm run build - Code sign the application (platform-specific)
- Distribute via your preferred method
- Fork the repository
- Create a feature branch:
git checkout -b feature/your-feature - Commit changes:
git commit -am 'Add your feature' - Push to the branch:
git push origin feature/your-feature - Submit a pull request
This project is licensed under the MIT License - see the LICENSE file for details.
For support, email support@eeko.systems or create an issue in the GitHub repository.
© 2024 Eeko Systems. All rights reserved.