Repository Structure
2
Web Frontend (decoyphrase-web)
decoyphrase-web)decoyphrase-web/
├── app/ # Next.js 16 App Router (Pages & Layouts)
│ ├── page.tsx # Home page entry
│ └── layout.tsx # Root layout (fonts, providers)
├── components/ # Reusable UI components (React 19)
│ └── ui/ # Primitive components (buttons, inputs)
├── config/ # App-wide configuration
├── constants/ # Static constants
├── lib/ # Business logic & Utilities
│ ├── api/ # API interaction layers
│ ├── hooks/ # Custom React hooks
│ ├── services/ # Service layer (e.g., Redis)
│ ├── store/ # Zustand state management
│ └── utils/ # Helper functions
├── public/ # Static assets (images, fonts)
├── middleware.ts # Request processing (Auth/Routing)
└── next.config.ts # Next.js configurationKey Files
3
Mobile Application (decoyphrase_mobile)
decoyphrase_mobile)decoyphrase_mobile/
├── android/ & ios/ # Native platform code (Gradle, Podfiles)
├── assets/ # Static resources
│ ├── icons/ # App launcher icons
│ ├── images/ # UI images
│ └── words/ # Wordlists for phrase generation
├── lib/ # Dart source code
│ ├── app/ # GetX Modules
│ │ ├── modules/ # Feature-based folders (View + Controller + Binding)
│ │ └── routes/ # App pages and navigation definitions
│ ├── configuration/ # Environment config
│ ├── gen/ # Generated code (Assets, localizations)
│ └── main.dart # Application entry point
├── test/ # Unit and Widget tests
├── pubspec.yaml # Dependencies and asset definitions
└── analysis_options.yaml # Linter rules (Pedantic/Flutter Lints)Key Directories
4
Core & Documentation (decoyphrase)
decoyphrase)decoyphrase/
├── app/ # Documentation site pages
├── lib/ # Shared Core Logic
│ ├── arweave/ # Arweave transaction & wallet logic
│ ├── crypto/ # Standardized cryptographic implementations
│ │ └── aes.ts # Verifiable AES encryption logic
│ ├── config/ # Core configuration
│ └── utils.ts # Shared utility functions
├── public/ # Assets
└── next.config.ts # Config for the docs site