CrossNote is a cross-platform note-taking and knowledge-management application that runs on Android, iOS, Windows, and Linux, with installable executable files for desktop and mobile platforms.
PROJECT: CrossNote ROLE: Act as a senior software architect, cross-platform full-stack developer, UI/UX designer, desktop/mobile engineer, QA engineer, DevOps engineer, and security engineer. GOAL: Build a complete, production-ready cross-platform note-taking and knowledge-management application called CrossNote. TARGET USERS: Students, writers, developers, researchers, and professionals who need to capture notes, organize knowledge, sync content across devices, and access their notes offline on Android, iOS, Windows, and Linux. BUSINESS CONTEXT: CrossNote helps users capture ideas, organize notes into notebooks and tags, search content quickly, attach files, sync securely across devices, and work offline. It provides native-feeling applications for mobile and desktop with installable executable files. CORE FEATURES: 1. User registration, login, logout, password reset, profile management, and multi-device session management. 2. Create, edit, delete, restore, duplicate, archive, and pin notes. 3. Organize notes into notebooks, folders, tags, favorites, and trash. 4. Rich-text note editor with headings, lists, checkboxes, code blocks, tables, links, images, and file attachments. 5. Markdown support with live preview and Markdown import/export. 6. Full-text search across note titles, content, tags, and attachments. 7. Offline-first architecture: users can create and edit notes without an internet connection. 8. Secure cloud synchronization with conflict detection, merge resolution, and version history. 9. End-to-end encryption option for private notes. 10. File attachments including images, PDFs, documents, audio, and videos. 11. Note sharing through secure links with optional password protection and expiration date. 12. Collaboration on shared notebooks with role-based permissions. 13. Reminders, due dates, checklists, and task-style notes. 14. Dark mode, light mode, custom themes, and font-size accessibility settings. 15. Global keyboard shortcuts, command palette, and quick-capture window on desktop. 16. Import notes from Markdown, plain text, HTML, and Evernote-compatible export files. 17. Export notes to Markdown, PDF, HTML, plain text, and JSON. 18. Automatic backups and local encrypted backup export. 19. Cross-platform sync status indicator showing synced, pending, conflicted, and offline items. 20. Admin dashboard for user management, storage usage, subscription plans, and abuse monitoring. USER STORIES: - As a student, I want to organize notes into notebooks and tags so that I can find information quickly. - As a writer, I want to write notes offline so that I can continue working without an internet connection. - As a professional, I want to sync notes across Android, iOS, Windows, and Linux so that my content is always up to date. - As a privacy-focused user, I want to encrypt my private notes so that only I can read them. - As a team member, I want to collaborate on shared notebooks so that we can work together efficiently. - As a desktop user, I want an installable executable file so that I can install CrossNote on Windows or Linux. - As a mobile user, I want installable Android and iOS applications so that I can access my notes on my phone. TECH STACK: - Cross-platform application: Flutter + Dart - Desktop packaging: Flutter Windows executable and Linux AppImage, DEB, or RPM - Mobile packaging: Android APK/AAB and iOS IPA/App Store deployment package - Backend: Node.js + NestJS + TypeScript - Database: PostgreSQL with Prisma ORM - Local database: SQLite with Drift - Authentication: JWT authentication with refresh tokens - File storage: AWS S3 or Cloudinary - Real-time sync: WebSockets or Socket.IO - Background sync: WorkManager for Android, Background Tasks for iOS, and system scheduler for desktop - State management: Riverpod - Validation: Freezed and custom validators - Testing: Flutter test, integration_test, and Patrol - Deployment: GitHub Actions, Fastlane, Docker, and cloud platform such as Railway, Render, or AWS ARCHITECTURE: - Use a clean, modular, scalable architecture. - Separate UI, presentation logic, domain models, repositories, local data source, remote data source, sync engine, encryption layer, and external integrations. - Use offline-first design with local SQLite as the source of truth. - Use background synchronization with conflict detection and deterministic merge rules. - Use a repository pattern to abstract local and remote data sources. - Use versioned sync records and timestamps to prevent data loss. - Use dependency injection for testability and maintainability. - Make the application scalable, maintainable, and production-ready. USER INTERFACE: - Build a modern, clean, responsive, and platform-adaptive UI. - Create a mobile layout with bottom navigation, note list, note editor, search, and settings. - Create a desktop layout with sidebar navigation, multi-pane view, command palette, keyboard shortcuts, and resizable panels. - Build a notebook and tag management screen. - Build a rich-text editor with formatting toolbar, Markdown preview, attachments, checkboxes, and search within note. - Build a sync status screen showing pending changes, conflicts, last sync time, and sync errors. - Build a settings screen for account, appearance, sync, encryption, backups, storage, and shortcuts. - Include empty states, loading states, error states, and offline indicators. - Support dark mode, light mode, and system theme. - Ensure accessibility, large-text support, keyboard navigation, and screen-reader compatibility. SECURITY & PRIVACY: - Never hardcode API keys, passwords, tokens, encryption keys, or secrets. - Use secure environment configuration and provide a .env.example file. - Store sensitive data using platform secure storage: Android Keystore, iOS Keychain, Windows Credential Manager, and Linux Secret Service where available. - Encrypt local databases and sensitive files at rest. - Use end-to-end encryption for optional private notes. - Validate and sanitize all user input on client and server. - Protect against SQL injection, XSS, CSRF, insecure file uploads, and malicious attachment handling. - Hash passwords using bcrypt or Argon2. - Implement role-based access control and server-side authorization checks. - Require explicit confirmation before deleting notes, notebooks, attachments, backups, or account data. - Do not expose sensitive data, stack traces, tokens, encryption keys, or internal errors in logs or API responses. - Apply rate limiting to authentication and file-upload endpoints. - Use secure cookies, token expiration, refresh-token rotation, and device-session revocation. - Scan uploaded files for malicious content where applicable. DATA MODEL: - User: id, name, email, passwordHash, avatarUrl, plan, emailVerified, createdAt, updatedAt. - Device: id, userId, deviceName, platform, appVersion, lastSyncAt, isActive, createdAt. - Notebook: id, ownerId, title, description, color, icon, isShared, createdAt, updatedAt, deletedAt. - Note: id, ownerId, notebookId, title, content, contentType, isPinned, isArchived, isEncrypted, createdAt, updatedAt, deletedAt, lastModifiedDeviceId, syncVersion. - Tag: id, ownerId, name, color, createdAt, updatedAt. - NoteTag: id, noteId, tagId. - Attachment: id, noteId, uploaderId, fileUrl, localFilePath, fileName, fileSize, mimeType, checksum, createdAt. - NoteVersion: id, noteId, versionNumber, snapshotJson, createdBy, createdAt. - SharedNotebook: id, notebookId, userId, role, invitedBy, joinedAt. - ShareLink: id, noteId, notebookId, slug, passwordHash, expiresAt, viewCount, createdBy, createdAt. - Reminder: id, noteId, userId, remindAt, repeatRule, status, createdAt. - SyncConflict: id, userId, noteId, localSnapshot, remoteSnapshot, resolutionStatus, createdAt, resolvedAt. - Backup: id, userId, fileUrl, size, checksum, createdAt. - AuditLog: id, userId, action, resourceType, resourceId, metadata, ipAddress, createdAt. PLATFORM BUILD REQUIREMENTS: - Build a Windows executable installer for x64 and ARM64 where applicable. - Build a Linux AppImage, DEB package, and RPM package. - Build an Android APK for direct installation and an Android App Bundle for Google Play. - Build an iOS IPA package and provide App Store deployment instructions. - Ensure the application works on Android, iOS, Windows, and Linux. - Include platform-specific permissions, icons, splash screens, and app metadata. - Provide signed build instructions and release configuration. - Include automatic update support for desktop applications where feasible. - Ensure offline functionality works without requiring a backend connection. TESTING & QUALITY: - Write unit tests for note CRUD, sync logic, conflict resolution, encryption, Markdown parsing, search, and backup/export. - Write integration tests for authentication, notebooks, notes, attachments, sharing, reminders, and synchronization. - Write end-to-end tests for creating notes offline, editing notes, syncing across devices, sharing notes, restoring deleted notes, and exporting notes. - Include tests for invalid input, unauthorized access, sync conflicts, weak passwords, expired share links, corrupted attachments, and destructive actions. - Ensure the project passes linting, type checking, build, and all tests. DELIVERABLES: - Complete source code with no placeholders or unfinished features. - Flutter client source code for Android, iOS, Windows, and Linux. - Backend source code for authentication, synchronization, sharing, storage, and administration. - README with project overview, setup, environment variables, database setup, run commands, and deployment
Reviews bash and POSIX sh scripts before they run in CI, cron or production. Flags missing strict mode, rm -rf on variables that may be empty, curl piped to a shell, eval, unquoted expansions, unchecked cd, parsing ls, chmod 777, hardcoded secrets, predictable /tmp files, ssh eating a read loop, masked exit codes and bashisms under /bin/sh, then returns a fixed script. Includes a stdlib Python linter with --self-test.
Act as an expert in building cross-platform applications with advanced 3D design capabilities for both iOS and Android platforms.
Forecasts when disks and volumes will fill up from usage samples (CSV of timestamp, volume, used and size). Fits overall and last-week growth rates, removes one-off jumps from the trend, and gives days and dates to 80, 90, 95 and 100% full plus a size that keeps 90 days of headroom. Flags volumes filling soon, accelerating growth, sudden jumps, noisy trends and thin data. Includes a stdlib Python forecaster with --self-test.
Reviews systemd .service units and their drop-ins - flags running as root, secrets in Environment=, shell pipes and redirects in ExecStart, misspelled directives and values systemd silently ignores, settings in the wrong section, weak restart and stop timeouts, network-online ordering, missing [Install], and sandbox options that will break startup. Scores exposure and writes a hardening drop-in. Includes an offline stdlib Python checker.
Watches crash reports for your iOS and Android apps, groups new crashes by root cause, ranks them by how many users and releases they hit, and drafts clear issues with stack traces and repro hints.