Skip to content

๐Ÿง  Local-first AI journal & career strategy engine. Multi-provider: Gemini, OpenAI, Claude, Grok.

License

Notifications You must be signed in to change notification settings

kks0488/mystats

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

82 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

MyStats Logo

๐Ÿง  MyStats

AI-Powered Self-Discovery & Career Strategy Engine

Transform your scattered thoughts into actionable intelligence.
Powered by Gemini, OpenAI, Claude, and Grok - built for thinkers who refuse to settle.

Model lineage: drafted with Gemini, refined with Claude Opus 4.5, finalized with GPT-5.2 Codex.
๋ชจ๋ธ ํ๋ฆ„: Gemini๋กœ ์ดˆ์•ˆ, Claude Opus 4.5๋กœ ๋‹ค๋“ฌ๊ณ , GPT-5.2 Codex๋กœ ๋งˆ๋ฌด๋ฆฌ.

Features ยท 3-Step Guide ยท Demo ยท PWA ยท Quick Start ยท Memory ยท Tech Stack ยท Contributing

React 19 TypeScript Multi-AI Ready Vite MIT License

GitHub Stars GitHub Forks


โœจ Why MyStats?

"Most productivity apps ask what you did. MyStats decodes who you are."

We don't just track your activities โ€” we uncover your hidden patterns, identify your psychological archetypes, and generate personalized strategies that leverage your unique strengths.

๐Ÿ““ Journal Entry โ†’ ๐Ÿง  AI Analysis โ†’ ๐Ÿ‘ค Deep Profile โ†’ โšก Custom Strategy

๐ŸŽฏ Features

๐Ÿงฌ Neural Memory Journal

Write freely. Our AI doesn't just save โ€” it decodes. Every entry is analyzed for:

  • Skills (Hard & Soft)
  • Personality Traits & Patterns
  • Hidden Archetypes (e.g., "The Architect of Systems" ์‹œ์Šคํ…œ์˜ ์„ค๊ณ„์ž)
  • Critical Questions you should be asking yourself

๐Ÿง  memU Memory System (Embedded)

MyStats now includes a built-in memU-compatible memory layer:

  • Embedded mode (default): runs entirely in the browser (no server required)
  • Uses your Journal entries as memory for retrieval + similarity checks
  • Strategy generation can automatically pull relevant memories as extra context

๐Ÿค– Multi-AI Provider Switch

Bring your own API key and choose your brain:

  • Gemini
  • OpenAI
  • Claude
  • Grok

๐Ÿชž Deep Intelligence Profile

Your cumulative psychological map โ€” built from every journal entry. See:

  • Existential Archetypes
  • Hidden Behavioral Patterns
  • Critical Life Questions
  • Skill & Interest Radar

โšก Neural Strategy Engine

Describe a problem. Get a ruthlessly personalized solution:

  • Unfair Advantage Analysis (What makes YOU uniquely positioned?)
  • Mental Model Application (First Principles, 80/20, Inversion...)
  • Concrete Action Plans
  • Personal Blind Spot Warnings

๐Ÿ“ฑ Installable PWA (No App Store Needed)

MyStats can be installed like an app on mobile/desktop via PWA:

  • iOS/Android: add to Home Screen / Install app
  • Offline-friendly app shell caching (data stays local-first)

โ˜๏ธ Cloud Sync (Beta, Optional)

If you sign in, you can sync your data across devices via Supabase.

Current sign-in methods:

  • Google OAuth
  • GitHub OAuth (optional)
  • Email + Password

Notes:

  • After OAuth redirect, the app processes the session and removes any auth tokens from the URL.
  • You must configure Supabase redirect URLs to allow your local and deployed domains (see docs/CLOUD_SYNC.md).

๐Ÿ“˜ 3-Step Usage Guide

"Input your raw thoughts, AI generates your life strategy guide."

1) Add an API Key

MyStats is local-first with no backend.

  • Setup: Settings โ†’ API Key โ†’ Save
  • Recommended: Google Gemini (free)
  • Privacy: Your key/data stay only in your browser (no servers).

Optional: Settings โ†’ memU Integration โ†’ keep Embedded to enable local memory retrieval from your journal.

2) Journal Freely

Write anything in Journal (no format required).

  • Life path, skills/weaknesses, wins/fails, current struggles
  • Tip: The more specific, the sharper the analysis.

3) Get Insights

Once you have entries, the AI turns them into insight.

  • ๐ŸŽฏ Strategy: A personalized plan based on your stats
  • ๐Ÿง  Profile: Hidden patterns + deep questions for growth

๐ŸŽฌ Demo

๐ŸŽฎ Try it now: https://mystats-eta.vercel.app


๐Ÿ“ฒ Install as an App (PWA)

iOS (Safari)

  1. Open the demo link in Safari
  2. Tap Share
  3. Tap Add to Home Screen

Android (Chrome)

  1. Open the demo link in Chrome
  2. Tap Install app (or โ‹ฎ menu โ†’ Install app)

Note: MyStats is local-first. Without cloud sync, your data is stored per device/browser.

๐Ÿงฉ Chrome "App" (Toolbar Launcher Extension)

If you want MyStats to behave like a simple Chrome app launcher, you can load the included extension:

  1. Open chrome://extensions
  2. Enable Developer mode
  3. Click Load unpacked
  4. Select mystats/chrome-extension/

Click the MyStats icon in the toolbar to open (or focus) the PWA.


๐Ÿš€ Quick Start

Prerequisites

Installation

# Clone the repository
git clone https://github.com/kks0488/mystats.git
cd mystats

# Install dependencies
npm install

# Start dev server
npm run dev

Setup

  1. Open the app in your browser (check the terminal output; default is http://localhost:5178)
  2. Go to the Dashboard
  3. Enter your API Key (Gemini, OpenAI, Claude, or Grok)
  4. Start journaling!

๐Ÿง  Memory System (memU)

MyStats ships with a memU-compatible memory layer that improves retrieval and strategy context.

Embedded (default)

  • Runs fully in the browser โ€” no server required
  • Uses your Journal entries as the memory store (IndexedDB / fallback local storage)
  • Provides:
    • retrieve (top-K similar memories)
    • check-similar (similarity-based duplicate detection)

Server (optional)

If you already run a local memU server, you can switch to Server (API) in Settings to:

  • Use the memU REST API endpoint
  • Optionally include project-registry memories in Strategy

๐Ÿ›  Tech Stack

Category Technology
Framework React 19 + Vite 7
Language TypeScript 5.9 (Strict Mode)
Styling Tailwind CSS 3 + shadcn/ui
Animation Framer Motion
AI Engine Gemini / OpenAI / Claude / Grok (BYOK)
Local DB IndexedDB (via idb) + localStorage fallback
Cloud Sync Supabase (Auth + Postgres, optional)
Memory memU (embedded browser engine or API server)
Validation Zod
Icons Lucide React
Routing React Router 7
Error Tracking Sentry (optional, lazy-loaded)
PWA vite-plugin-pwa (Workbox)
Testing Vitest + Testing Library
CI/CD GitHub Actions โ†’ Vercel

๐Ÿ“‚ Project Structure

mystats/
โ”œโ”€โ”€ src/
โ”‚   โ”œโ”€โ”€ components/
โ”‚   โ”‚   โ”œโ”€โ”€ layout/          # Shell (app frame, navigation, page transitions)
โ”‚   โ”‚   โ”œโ”€โ”€ ui/              # shadcn/ui primitives (Button, Card, Badge, Inputโ€ฆ)
โ”‚   โ”‚   โ”œโ”€โ”€ ErrorBoundary    # Global crash boundary + debug report
โ”‚   โ”‚   โ””โ”€โ”€ PwaUpdatePrompt  # SW update / offline-ready toast
โ”‚   โ”œโ”€โ”€ db/
โ”‚   โ”‚   โ”œโ”€โ”€ db.ts            # IndexedDB schema, migrations, CRUD helpers
โ”‚   โ”‚   โ””โ”€โ”€ fallback.ts      # localStorage / in-memory fallback storage
โ”‚   โ”œโ”€โ”€ hooks/
โ”‚   โ”‚   โ”œโ”€โ”€ useLanguage.ts   # i18n context consumer hook
โ”‚   โ”‚   โ””โ”€โ”€ useDbRecovery.ts # Automatic fallback โ†’ DB recovery
โ”‚   โ”œโ”€โ”€ lib/
โ”‚   โ”‚   โ”œโ”€โ”€ ai-provider.ts   # Multi-AI engine (Gemini/OpenAI/Claude/Grok)
โ”‚   โ”‚   โ”œโ”€โ”€ memu.ts          # memU memory system (embedded + server API)
โ”‚   โ”‚   โ”œโ”€โ”€ cloudSync.ts     # Supabase Cloud Sync logic
โ”‚   โ”‚   โ”œโ”€โ”€ cloudSyncManager.ts # Auto-sync orchestrator
โ”‚   โ”‚   โ”œโ”€โ”€ supabase.ts      # Supabase client init
โ”‚   โ”‚   โ”œโ”€โ”€ sentry.ts        # Sentry lazy loader
โ”‚   โ”‚   โ”œโ”€โ”€ debug.ts         # Debug snapshot report
โ”‚   โ”‚   โ”œโ”€โ”€ translations.ts  # EN/KO translation strings
โ”‚   โ”‚   โ”œโ”€โ”€ LanguageProvider  # React context provider for i18n
โ”‚   โ”‚   โ”œโ”€โ”€ LanguageContext   # Language context definition
โ”‚   โ”‚   โ””โ”€โ”€ utils.ts         # Shared utilities (cn, normalizeSkillNameโ€ฆ)
โ”‚   โ”œโ”€โ”€ pages/
โ”‚   โ”‚   โ”œโ”€โ”€ Home.tsx         # Dashboard with stats & quick start
โ”‚   โ”‚   โ”œโ”€โ”€ Journal.tsx      # Neural memory journal (write + AI analyze)
โ”‚   โ”‚   โ”œโ”€โ”€ Profile.tsx      # Deep intelligence profile (skills, archetypes)
โ”‚   โ”‚   โ”œโ”€โ”€ Strategy.tsx     # AI strategy engine (problem โ†’ action plan)
โ”‚   โ”‚   โ””โ”€โ”€ Settings.tsx     # API keys, memU, Cloud Sync, backup/restore
โ”‚   โ”œโ”€โ”€ test/                # Test setup (Vitest + jsdom)
โ”‚   โ”œโ”€โ”€ App.tsx              # Router + providers + lazy page loading
โ”‚   โ””โ”€โ”€ main.tsx             # Entry point + Sentry init
โ”œโ”€โ”€ chrome-extension/        # Chrome toolbar launcher extension
โ”œโ”€โ”€ docs/                    # Additional documentation
โ”œโ”€โ”€ supabase/                # Supabase SQL migrations
โ”œโ”€โ”€ public/                  # Static assets, PWA manifest, icons
โ””โ”€โ”€ package.json

๐ŸŒ Internationalization

MyStats supports:

  • ๐Ÿ‡บ๐Ÿ‡ธ English
  • ๐Ÿ‡ฐ๐Ÿ‡ท ํ•œ๊ตญ์–ด (Korean)

Toggle language in the header.


๐Ÿ—’๏ธ Release Notes

See CHANGELOG.md.


๐Ÿ”’ Privacy First

  • Local-first by default: Journals/skills/insights are stored in your browser (IndexedDB)
  • No mandatory backend: no tracking, no data collection
  • Your API Key: direct connection to your provider in BYOK mode (we never see it)
  • memU Embedded: runs locally in the browser
  • memU Server (optional): in API mode, entries may be sent to your local memU service
  • Cloud Sync (optional): only when you sign in and enable it
  • Export Anytime: Download your data as JSON

๐Ÿค Contributing

We love contributions! Please see our Contributing Guide.

# Fork & Clone
git clone https://github.com/kks0488/mystats.git

# Create feature branch
git checkout -b feature/amazing-feature

# Commit changes
git commit -m "feat: add amazing feature"

# Push & create PR
git push origin feature/amazing-feature

๐Ÿ“œ License

MIT License - see LICENSE for details.


๐Ÿ™ Acknowledgements


โญ If this helped you, give it a star!

Built with ๐Ÿง  + โ˜• by @kks0488

About

๐Ÿง  Local-first AI journal & career strategy engine. Multi-provider: Gemini, OpenAI, Claude, Grok.

Topics

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Packages

No packages published