# ☀️ Open Sunsama (`opensunsama`) — Conimo Daily Planner, Time-Blocking & MCP Server

An open-source, AI-native daily planner and time-blocking application built with **Conimo** (Coni full-stack server + reactive WASM frontend), replicating [Open Sunsama (`opensunsama.com`)](https://opensunsama.com/) and its official [`seed-demo.ts`](https://github.com/kaijiabo/open-sunsama) workspace.

---

## ✨ Features

- **▦ Daily Planning Kanban Board (`Board`)**:
  - Multi-day Kanban columns (**Today**, **Tomorrow**, **Monday**, **Tuesday**) with live workload bars (`4h 45m planned • 48m focused`), inline quick-add inputs, priority badges (`P0` urgent red, `P1` high amber, `P2` medium blue, `P3` low violet), channel tags (`#product`, `#engineering`, `#support`), and subtask completion pills (`☑ 2/4`).
  - **Time-Blocked Schedule Rail**: Interactive daily schedule beside the Kanban columns showing Google Calendar meetings (`📅 GCal`) and linked task focus blocks (`⚡ Block`).
  - **1-Click Backlog Rail**: Toggleable right-hand Backlog drawer (`📥 Backlog & Later`) for unscheduled work, plus **1-Click Unfinished Task Rollover** (`↪ Rollover Unfinished`).
- **☰ Every Task, One List (`Tasks`)**:
  - Unified task list grouped by day (**Today**, **Tomorrow**, upcoming days, and **Backlog**) with instant filtering by status (`All`, `Active`, `Completed`) and priority (`P0`–`P3`).
- **🗓️ Week Time-Blocking Calendar (`Calendar`)**:
  - 6-column week schedule (`Wednesday` through `Wednesday`) with color-coded blocks, linked task indicators, Google/iCloud calendar sync badges, quick time-block creation, and 1-click task time-blocking.
- **🎯 Zen Focus Mode (`Focus`)**:
  - Single-task distraction-free view with a live `MM:SS` focus timer, actual vs. estimated minutes progress bar (`23m / 90m`), `+15m` quick logging, interactive subtask checklist, and 1-click task completion.
- **💡 Ideas: Someday Boards (`Ideas`)**:
  - Trello-style boards (**Product bets** & **Personal growth**) organized into **Someday**, **Exploring**, and **Ready to build** columns with **1-Click Promote to Today's Board** (`🚀 Promote to Today`).
- **🔁 Recurring Routines & Rituals (`Routines`)**:
  - Daily planning rituals (**Morning Planning Ritual**, **Daily Engineering Standup**, **Afternoon Inbox Zero**, **Evening Shutdown & Rollover**) with streak counters and 1-click spawning into Today's plan.
- **🔌 AI & 24-Tool MCP Connector Hub (`AI & MCP`)**:
  - Live Streamable HTTP JSON-RPC 2.0 Model Context Protocol endpoint at `/api/mcp` (`initialize`, `tools/list`, `tools/call`) exposing all **24 annotated Open Sunsama MCP tools** across `Tasks`, `Time blocks`, `Calendar events`, `Subtasks`, and `Profile`.
  - Built-in AI Co-Planner prompt actions (e.g., *"What's on my plate today? Move anything that isn't a P0 or P1 to tomorrow"*, *"Block 9–11am tomorrow for deep work on the launch plan"*, *"Add subtasks to 'Board deck'"*) and an interactive MCP Tool Playground.
- **🔍 `⌘K` Command Palette, Task Detail Modal & Light/Dark Themes**:
  - Rich Task Detail modal (priority switcher, day scheduler, notes editor, subtask checklist), global `⌘K` search/command palette, keyboard shortcuts reference (`?`), and Linear-style Light/Dark mode (`☀️ / 🌙`).

---

## 🚀 Quick Start

```bash
cd /Users/nico/coni/conimo-apps/opensunsama
./start.sh
```

Then open **`http://localhost:3055`** (MCP endpoint: **`http://localhost:3055/api/mcp`**).

---

## 🧪 Smoke Test Suite

```bash
cd /Users/nico/coni/conimo-apps/opensunsama
/Users/nico/coni/coni-lang/coni smoke_test.coni
```
