A minimalist journaling application with AI-powered features for deeper reflection and self-discovery.
Candid is a journaling app that combines the simplicity of traditional journaling with modern AI capabilities. The app helps users explore their thoughts more deeply through intelligent categorization and contextual prompts.
- Journal Entry Management: Create, view, and search through journal entries
- Auto-Classification: Entries are automatically categorized using AI based on their content
- Journaling Coach: Get contextual prompts while writing to inspire deeper reflection
- Category Visualization: View entries organized by categories in an intuitive grid layout
- Offline Support: Local caching enables access to entries without an internet connection
- Entry Templates: Pre-filled templates for recipes and self-reflection entries
- Daily Quotes: Inspirational quotes to start your journaling session
- FastAPI (Python web framework)
- PostgreSQL (database)
- Anthropic Claude API (classification and coaching)
- psycopg2 (database driver)
- pytest (testing framework)
- SwiftUI (UI framework)
- Combine (reactive programming)
- UserDefaults (local storage)
- URLSession (HTTP client)
hackathon/
├── backend/ # FastAPI backend server
│ ├── routes/ # API route handlers
│ ├── services/ # Business logic and AI integration
│ ├── models.py # Pydantic data models
│ ├── db.py # Database connection and operations
│ └── main.py # Application entry point
├── Candid/ # iOS SwiftUI application
│ ├── Views/ # SwiftUI view components
│ ├── ViewModels/ # MVVM view models
│ ├── APIService.swift # Network layer
│ └── DesignSystem.swift # UI design system
└── frontend/ # Legacy/unused Swift Package Manager implementation
- Install Python dependencies:
pip install fastapi uvicorn psycopg2-binary anthropic python-dotenv pydantic- Set up PostgreSQL database and configure environment variables:
DB_HOST=localhost
DB_PORT=5432
DB_NAME=postgres
DB_USER=postgres
DB_PASSWORD=your_password
ANTHROPIC_API_KEY=your_anthropic_api_key- Run the backend server:
cd backend
python main.pyThe server will start on http://localhost:8000
- Open
Candid/Candid.xcodeprojin Xcode - Ensure the backend server is running
- Build and run the app on a simulator or device
POST /journal/entry- Create a new journal entry (auto-classified)GET /journal/entries- Get all journal entriesGET /journal/entry/{id}- Get a single entry by IDGET /journal/categories- Get all categoriesPOST /coach- Get a journaling coach prompt based on entry content
- entries: id, title, body, timestamp
- categories: id, name (unique)
- entry_categories: entry_id, category_id (many-to-many relationship)
- evidence: id, entry_id, claim_text, source_title, source_url
The fact-checking functionality referenced in some parts of the codebase was not fully implemented. The backend includes fact-check routes and services, but the feature is not active in the current version of the application.
This project was created for the AppDev Hack Challenge.