backup: 2026-06-07T14:00:01Z

This commit is contained in:
Obsidian Backup 2026-06-07 14:00:01 +00:00
parent de131dbf19
commit ade87f6cca
58 changed files with 1443 additions and 24 deletions

View file

@ -1,17 +1,29 @@
{
"recentFiles": [
{
"basename": "Tia - Architecture",
"path": "30 - Projects/Tia/Tia - Architecture.md"
},
{
"basename": "Quota Feature",
"path": "30 - Projects/Tia/Quota Feature.md"
},
{
"basename": "Home",
"path": "10 - Atlas/Home.md"
},
{
"basename": "Welcome",
"path": "Welcome.md"
"basename": "MOC - AI",
"path": "10 - Atlas/MOC - AI.md"
},
{
"basename": "MOC - Startup",
"path": "10 - Atlas/MOC - Startup.md"
},
{
"basename": "Welcome",
"path": "Welcome.md"
},
{
"basename": "MOC - Software",
"path": "10 - Atlas/MOC - Software.md"
@ -27,10 +39,6 @@
{
"basename": "MOC - Investing",
"path": "10 - Atlas/MOC - Investing.md"
},
{
"basename": "MOC - AI",
"path": "10 - Atlas/MOC - AI.md"
}
],
"omittedPaths": [],

View file

@ -0,0 +1,65 @@
---
type: decision-log
status: mixed
updated: 2026-06-07
tags: [decisions, meta]
---
# ⚖️ Decision Log
> Significant decisions with context, alternatives, and outcomes. Technical decisions below are **verified** from project memory files & commits. Add life/career decisions over time using [[Decision Log (template)]].
## Index (Dataview)
```dataview
table type, date, status
from "60 - Knowledge/Decisions" or "30 - Projects"
where decision = true
sort date desc
```
---
## Verified Technical / Product Decisions
### TD-001 · Usage is always *derived*, never accumulated (Tia quotas)
- **Date:** 2026-05-27 · **Project:** [[Tia]]
- **Context:** Free-tier storage guardrails (1 GiB/family, 2 members/family) before beta.
- **Decision:** Compute storage usage as a live `SUM` of confirmed rows; never maintain a running counter. Pending/uploading rows excluded.
- **Alternatives:** Incrementing counter (rejected — drifts, hard to reconcile after failures).
- **Outcome:** 44 passing unit tests; reconciliation trivial. → [[Tia - Decisions]]
### TD-002 · `tier` as the single plan indicator (no separate `plan` column)
- **Date:** 2026-05-27 · **Project:** [[Tia]]
- **Decision:** Reuse existing `families.tier` ('free'/'pro'); payment logic abstracted behind `isPaidFamily(tier)` so the billing provider can be swapped in one function.
- **Why it matters:** Minimised schema churn; clean seam for provider changes.
### TD-003 · Route migrations through a hot-apply debug endpoint
- **Date:** 2026-05-30 · **Project:** [[Tia]]
- **Context:** Drizzle silently skipped migrations 00030010 (hand-added 2025 timestamps < 2026 baseline).
- **Decision:** Adopt `POST /api/debug-migration` for safe, idempotent hot-fixes; **go-forward rule: new migration `when` must be `Date.now()`**.
- **Outcome:** pgvector + error_events live on prod; documented in CLAUDE.md. → [[Tia - Architecture]]
### TD-004 · Proxy all R2 images through `/api/img`
- **Date:** ~2026-05 · **Project:** [[Tia]] (commit a3a0ddf)
- **Context:** Cloudflare Bot Management 503s cross-origin `<img>` requests to `*.r2.dev`.
- **Decision:** Server-side proxy endpoint + `toProxyUrl()`; never use raw r2.dev URLs in `src`.
- **Outcome:** All uploaded media renders reliably. → [[Self-Hosting]]
### TD-005 · Split app into (marketing) and (app) route groups
- **Date:** 2026-05 · **Project:** [[Tia]]
- **Decision:** `/` is always the static marketing page; app dashboard moved to `/home`. DB/auth code must never enter the (marketing) group (preserves static rendering).
### TD-006 · Credentials only in Dokploy env, never in git
- **Date:** 2026-06 · **Project:** [[obsidian-stack]]
- **Decision:** COUCHDB_USER/PASSWORD, BASIC_AUTH_USERS live solely in the Dokploy Environment tab. → [[Self-Hosting]]
---
## ✍️ Career / Life decisions to capture (prompts)
- [ ] **Why renewables?** The decision to specialise post-MBA.
- [ ] **PwC → ReNew** — what drove the move from advisory to principal-side?
- [ ] **Why build Tia?** (the founding decision — see [[Tia - Origin Story]])
- [ ] **Self-hosting over SaaS** — the decision to run your own infra.
## Related
[[Profile]] · [[Timeline]] · [[Tia - Decisions]] · [[Home]]

View file

@ -6,6 +6,8 @@ type: dashboard
> *The purpose of this vault is to think better and build better.*
**Me:** [[Profile]] · [[Timeline]] · [[Decision Log]] · [[Investment Philosophy]] · **Flagship:** [[Tia]]
---
## ⚡ Active Projects
@ -28,6 +30,16 @@ sort priority desc
| 💻 Software | [[MOC - Software]] |
| 📚 Learning | [[MOC - Learning]] |
**Areas:** [[Business Overview|Business]] · [[Engineering Overview|Engineering]] · [[Finance Overview|Finance]] · [[AI Overview|AI]] · [[Renewables Overview|Renewables]] · [[Investing Overview|Investing]] · [[Operations Overview|Operations]] · [[Family Overview|Family]] · [[Health Overview|Health]]
## 📂 All Projects
```dataview
table status, domain
from "30 - Projects"
where type = "project"
sort file.name asc
```
---
## 🌱 Recent Knowledge

65
10 - Atlas/Profile.md Normal file
View file

@ -0,0 +1,65 @@
---
type: profile
status: verified
sources: [manohargupta.com, resume page, local repositories]
updated: 2026-06-07
tags: [identity, profile]
---
# 👤 Manohar Gupta
> *Engineer turned finance professional driving renewable energy — and a builder at heart.*
**Location:** Gurugram, India
**Headline:** Renewable Energy Project Finance Professional & Builder
**Web:** [manohargupta.com](https://www.manohargupta.com) · **Edu email:** pgp09manoharg@iimrohtak.ac.in
---
## Professional Summary
Manager at **[[Renewables Overview|ReNew]]**, one of India's leading renewable-energy companies, specialising in **project finance for utility-scale solar (50MW300MW)**. Brings together a technical foundation (**IIT Roorkee**, Mechanical Engineering) and financial expertise (**IIM Rohtak**, MBA, Gold Medalist) to structure deals that make clean-energy projects economically viable. Beyond finance, a prolific builder of IoT projects, web apps, and AI-integrated tools that bridge technology and sustainability.
The throughline: **the intersection of technical knowledge and financial acumen** — making renewable-energy projects bankable while building software that scales impact.
## Personal Mission
> To make clean-energy projects economically viable and to build technical solutions that solve complex problems and scale impact.
*(Stated on manohargupta.com. Expand in your own words — see open prompts below.)*
## Core Identity (multi-hat)
- **Finance professional** — project finance, financial modeling, due diligence
- **Renewables expert** — utility-scale solar, 8760 simulation, rooftop design
- **Technical founder / builder** — see [[Tia]] and the [[#Featured Builds]]
- **Software developer** — Next.js, Python, full-stack
- **AI builder** — agents, LLM apps, AI-integrated products
- **Investor / market operator** — see [[Investment Philosophy]]
- **Systems thinker & research-driven learner**
## Domains of Focus
[[MOC - Renewables|Renewables & Energy]] · [[MOC - Investing|Finance & Investing]] · [[MOC - AI|AI & Agents]] · [[MOC - Startup|Startup Building]] · [[MOC - Software|Software & Self-hosting]] · [[MOC - Learning|Knowledge Management]]
## Technical Expertise
- **Energy:** PVsyst, Helioscope, AutoCAD, 8760 hourly simulation, solar feasibility
- **Finance:** project-finance modeling, DCF, debt sizing, due diligence, IM preparation
- **Software:** Next.js / React / TypeScript, Python (FastAPI/Flask), PostgreSQL + Drizzle, Docker
- **AI:** LLM application development, agent frameworks, MCP, prompt engineering
- **Infra:** self-hosting, Dokploy, Cloudflare R2, Tailscale (see [[Self-Hosting]])
## Strengths
*(inferred from track record — confirm/edit)*
- Rare finance × engineering × software combination
- High shipping velocity (20+ repos; [[Tia]] alone has 400+ commits)
- Translates messy real-world problems into working systems
## Featured Builds
[[Tia]] · [[REModel]] · [[Credit Analyzer]] · [[TradeBuddy]] · [[Clawd Ecosystem]] · [[Economic Survey Visualizer]]
## ✍️ Open prompts (fill these in — nothing fabricated)
- [ ] What is the *one-sentence* mission in your own words (not the website copy)?
- [ ] Top 3 **values** you make decisions by?
- [ ] Biggest **weakness / growth edge** you're actively working on?
- [ ] 35 year **ambition** — what does success look like?
- [ ] Who are the 3 people who most shaped your thinking?
## Related
[[Home]] · [[Timeline]] · [[Decision Log]] · [[Investment Philosophy]]

54
10 - Atlas/Timeline.md Normal file
View file

@ -0,0 +1,54 @@
---
type: timeline
status: verified
sources: [manohargupta.com/resume, manohargupta.com/journal, git history]
updated: 2026-06-07
tags: [identity, timeline]
---
# 🕰️ Life & Work Timeline
> Chronological reconstruction from resume, journal, and repository history. Career/education entries are **verified**; build dates come from **git first-commit timestamps**.
## Education & Early Career
| When | Milestone |
|---|---|
| **20102014** | **B.Tech, Mechanical Engineering — IIT Roorkee** |
| **20182020** | **MBA, Finance & Analytics — IIM Rohtak** · Grade 8.26/10 · **Rank #3** · 🥇 Gold Medal (Best All-Round Performance) · OPJEM Scholarship |
| **Feb 2020** | *"I Dared to Dream — Winning the Scholarship"* — won the only campus scholarship at IIM Rohtak ([[Journal]]) |
| **AprMay 2019** | **Summer Intern, Reserve Bank of India** (Mumbai) — banking-sector research, policy impact assessment |
| **Aug 2020** | *"Story of the Making of a Gold Medalist"* — reflection on MBA 201820 ([[Journal]]) |
## Professional Career
| When | Role |
|---|---|
| **Nov 2020 Dec 2021** | **Senior Finance Analyst — Thomson Reuters** (Gurugram). Financial analysis & reporting, budget forecasting, process automation |
| **Dec 2021 Jul 2023** | **Associate — PwC** (Gurugram). Renewable-energy project-finance **due diligence**, solar/wind modeling, information memorandums, risk assessment |
| **Aug 2023 Present** | **Manager — [[Renewables Overview\|ReNew]]** (Gurugram). Project finance for **utility-scale solar (50300MW)**, technical DD, financial modeling, lender & equity-investor relationships |
## The Builder Track (from repos & journal)
| When | Build / Event |
|---|---|
| **Jul 2025** | [[Arawali Minerals]] corporate website (12 commits) |
| **Mar 2025** | Journal: *"Building Energy Analytics Platform"* — the [[8760 Energy Simulation\|8760-hour simulation]] platform journey |
| **Jan 2026** | [[Whisper Hotkey]] (Mac dictation) · [[Playschool CRM]] initial commit · Journal: *ESP32 + DHT11 IoT sensors* |
| **Feb 2026** | [[Clawd Ecosystem]] kickoff (clawd, clawdbot, TradeBuddy initial) · Journal: *Understanding 8760 Energy Simulation Models* |
| **Mar 2026** | [[Portfolio Website]] · [[CreditAnalyzer\|Credit Analyzer]] active |
| **Apr 2026** | [[Cortex]] (AI PKB) · [[OpenClaw Dashboard]] |
| **May 2026** | [[Tia]] core build sprint (400+ commits begin) · [[REModel]] (53 commits) · [[Position Tracker]] |
| **Jun 2026** | [[Tia]] billing + admin observability shipped · [[Self-Hosting\|Obsidian self-hosted stack]] built ([[obsidian-stack]]) |
## 🧭 Inflection points (themes)
1. **Engineer → Finance** (IIT → IIM → RBI/Thomson Reuters → PwC → ReNew)
2. **Finance → Renewables specialisation** (PwC RE-DD → ReNew utility-scale solar)
3. **Operator → Builder** (202526 explosion of software: finance tools, AI agents, SaaS)
4. **Builder → Founder** ([[Tia]] = first real product with billing & users)
## ✍️ Open prompts
- [ ] Birth year / hometown (for a complete personal timeline)?
- [ ] When did you start coding seriously?
- [ ] Key personal milestones (marriage, children — relevant to [[Family]] & the Tia origin story)?
- [ ] Any awards/recognition beyond the Gold Medal?
## Related
[[Profile]] · [[Home]] · [[Decision Log]] · [[Journal]]

26
20 - Journal/Journal.md Normal file
View file

@ -0,0 +1,26 @@
---
type: index
tags: [journal]
---
# 📔 Journal
> Daily/weekly/monthly notes (via Periodic Notes) + long-form posts mirrored from [manohargupta.com/journal](https://www.manohargupta.com/journal).
## Recent daily notes
```dataview
list
from "20 - Journal/Daily"
sort file.name desc
limit 7
```
## Published posts (from your site)
| Date | Post | Tags |
|---|---|---|
| Feb 2026 | Understanding 8760 Energy Simulation Models | solar, learning → [[8760 Energy Simulation]] |
| Jan 2026 | Getting Started with ESP32 and DHT11 Sensors | IoT, learning |
| Mar 2025 | Building Energy Analytics Platform — My Journey | energy, solar, analytics, IoT → [[8760 Energy Simulation]] |
| Aug 2020 | Story of the Making of a Gold Medalist | IIM Rohtak → [[Timeline]] |
| Feb 2020 | I Dared to Dream — Winning the Scholarship | IIM Rohtak → [[Timeline]] |
## Related
[[Home]] · [[Timeline]] · [[Learning Overview]]

View file

@ -0,0 +1,23 @@
---
type: project
status: active
domain: [renewables, finance, software]
tech: [Python, PVsyst]
tags: [project, solar, modeling]
---
# 🌞 8760 Energy Simulation Modeling
> Hourly (8,760 hrs/year) energy-simulation model for **solar project feasibility** using Python + PVsyst. Subject of two journal posts (Mar 2025 "Building Energy Analytics Platform"; Feb 2026 "Understanding 8760 Energy Simulation Models").
## What it is
Simulates solar generation for every hour of the year to drive **accurate financial modeling** — the bridge between energy yield and bankability.
## Why it matters
Core intellectual asset: the technical heart of both [[REModel]] and the ReNew day job. Demonstrates the finance×engineering fusion better than anything.
## Concepts to extract → [[60 - Knowledge]]
- [ ] What is an 8760 model and why hourly granularity matters
- [ ] PVsyst workflow & outputs
- [ ] From energy yield → P50/P90 → debt sizing
## Related
[[REModel]] · [[Renewables Overview]] · [[MOC - Renewables]] · [[Finance Overview]]

View file

@ -0,0 +1,17 @@
---
type: project
status: completed
domain: [web, business]
tags: [project]
---
# ⛏️ Arawali Minerals — Corporate Website
> Modern, responsive marketing site for **Arawali Group**, a premium industrial-minerals company. Dark/light mode, SEO-optimised. (12 commits, Jul 2025.)
## Notes
- Client/venture website work. Live site + source on [[Profile|portfolio]].
## Open questions
- [ ] Family business, client, or own venture?
## Related
[[Business Overview]] · [[Awadh Gully]]

View file

@ -0,0 +1,17 @@
---
type: project
status: completed
domain: [web, business]
tags: [project]
---
# 🍽️ Awadh Gully — Restaurant Website
> Elegant restaurant website: interactive menu, online reservations, rich visuals. Fully responsive. (Repo: `Awadhgully`.)
## Notes
- A **restaurant** brand (not a playschool). Live site + source on portfolio.
## Open questions
- [ ] Your venture, family business, or client?
## Related
[[Business Overview]] · [[Arawali Minerals]]

View file

@ -0,0 +1,32 @@
---
type: project
status: active
domain: [ai, software, infra]
tags: [project, ai, agents]
repos: [clawd, clawdbot, clawd-dashboard, OpenClawDashboard, tiger-build]
---
# 🐾 Clawd Ecosystem — Self-Hosted AI Agent Platform
> A family of repos building an **autonomous AI agent** with a managed dashboard: memory, a skills/MCP registry, and an agent control plane.
## Components
| Repo | Role |
|---|---|
| **clawd** | Core agent (initial commit Feb 2026); "proved several architectural patterns" |
| **clawdbot** | Bot interface |
| **clawd-dashboard** | Active dashboard (24 commits, FebJun 2026) |
| **OpenClawDashboard** | "Clawd Agent Dashboard" — memory mgmt (`MEMORY.md`), **Skills Registry**, MCP management (7 commits) |
| **tiger-build** | Agent UI build — activity feed, agent chips, agent-file routes, model config (large component set) |
## Purpose
Build and operate a personal AI agent with: editable **core memory**, a browsable **skills/capabilities registry**, **MCP** server management, and an activity/observability dashboard.
## Why it matters
This is Manohar's deepest **AI-agent infrastructure** work — directly informs [[Agent Architectures]], [[MCP]], and [[MOC - AI]]. The memory-file pattern here echoes how *this very vault's* [[Decision Log]] is structured.
## Open questions
- [ ] Is "Clawd" a play on Claude? Is this built on the Claude Agent SDK / Claude Code?
- [ ] Which of the 5 repos is canonical/current ([[tiger-build]] vs clawd-dashboard)?
- [ ] Intended as a product or personal infra?
## Related
[[Agent Architectures]] · [[Agent Frameworks]] · [[MCP]] · [[Cortex]] · [[MOC - AI]]

23
30 - Projects/Cortex.md Normal file
View file

@ -0,0 +1,23 @@
---
type: project
status: paused
domain: [ai, knowledge, software]
commits: 8
period: 2026-04-05
tags: [project, ai, pkm]
---
# 🧠 Cortex — AI-Powered Personal Knowledge Base
> "AI-Powered Personal Knowledge Base" with **wiki compilation** (auto-generate concept/entity/connection structure) and **health monitoring** (consistency checks + gap detection).
## Purpose
An automated second brain that *builds itself* — compiles structured wikis from raw inputs and detects knowledge gaps.
## Why it matters (meta)
Cortex is the **predecessor** to this Obsidian vault. The ambition of this PKM build — reconstruct knowledge, infer relationships, detect missing notes — is exactly Cortex's stated feature set. Worth deciding: does Cortex *feed* this vault, or did this vault supersede it?
## Open questions
- [ ] Revive Cortex as the automation layer over this Obsidian vault?
- [ ] What made it stall at 8 commits?
## Related
[[obsidian-stack]] · [[MOC - Learning]] · [[Learning Overview]] · [[MOC - AI]]

View file

@ -0,0 +1,27 @@
---
type: project
status: completed
domain: [finance, ai, software]
tech: [Node/Express, Python/Flask, React]
tags: [project, finance, ai]
---
# 💳 Credit Analyzer
> Personal-finance tool that **auto-parses bank statements** and delivers **AI-powered spending insights** with interactive dashboards. Supports **6+ bank formats** with AI categorization.
## Purpose
Remove the manual drudgery of understanding personal cashflow — ingest statements, categorize transactions with AI, visualize spending.
## Architecture
- **Dual backend:** Node/Express + Python/Flask (`server/`, `processor/`)
- **Frontend:** React (`client/`)
- Statement parsing pipeline → AI categorization → dashboards
## Why it exists
Featured on [[Profile|the portfolio]] as flagship finance work; reflects the [[Finance Overview|personal-finance]] interest and AI-application skill.
## Open questions
- [ ] Which 6 bank formats? Which AI model does categorization?
- [ ] Personal use only, or intended for others?
## Related
[[TradeBuddy]] · [[Finance Overview]] · [[MOC - Investing]] · [[MOC - AI]]

View file

@ -0,0 +1,18 @@
---
type: project
status: completed
domain: [finance, data, software]
tags: [project]
---
# 📊 Economic Survey Visualizer
> Interactive web app that parses **Indian Economic Survey** PDFs and renders data visualizations with Recharts. Turns dense policy PDFs into interactive charts.
## Notes
- Next.js app (repo: `economic-survey`). Macro/policy analysis tool.
- Sibling of [[India Economy Dashboard]].
## Open questions
- [ ] Annual refresh each Budget/Survey season?
## Related
[[India Economy Dashboard]] · [[Finance Overview]] · [[MOC - Investing]]

View file

@ -0,0 +1,17 @@
---
type: project
status: completed
domain: [finance, data]
tags: [project]
---
# 🇮🇳 India Economy Dashboard
> React dashboard visualising Indian macroeconomic data.
## Notes
- Companion to [[Economic Survey Visualizer]]; reflects macro-analysis interest.
## Open questions
- [ ] Data sources (RBI, MOSPI)? Live or static?
## Related
[[Economic Survey Visualizer]] · [[Investment Philosophy]]

View file

@ -0,0 +1,14 @@
---
type: project
status: active
domain: [ai, software]
commits: 7
period: 2026-02-10 → 2026-04-19
tags: [project, ai, agents]
---
# 🖥️ OpenClaw Dashboard
> "Clawd Agent Dashboard" — view/edit agent **core memory** (`MEMORY.md`), browse/manage the **Skills Registry**, and manage **MCP** servers. Part of the [[Clawd Ecosystem]].
- [ ] Canonical dashboard, or superseded by [[tiger-build]]?
## Related
[[Clawd Ecosystem]] · [[Agent Architectures]] · [[MCP]]

View file

@ -0,0 +1,17 @@
---
type: project
status: active
domain: [saas, web, business]
tags: [project]
---
# 🏫 Playschool CRM
> Full **SaaS CRM for playschools** — student management, attendance, fee collection, parent communication. End-to-end school management. (Next.js, initial commit Jan 2026.)
## Notes
- A real SaaS attempt alongside [[Tia]].
## Open questions
- [ ] Any paying schools? Relationship to Awadh Gully brand?
## Related
[[MOC - Startup]] · [[Business Overview]] · [[Tia]]

View file

@ -0,0 +1,17 @@
---
type: project
status: completed
domain: [web]
tags: [project]
---
# 🌐 Portfolio Website (manohargupta.com)
> Personal portfolio + journal at [manohargupta.com](https://www.manohargupta.com). Umami analytics, ad-blocker-resilient tracking. (21 commits, MarApr 2026.)
## Notes
- Primary public identity surface — source of [[Profile]] & [[Timeline]] facts.
## Open questions
- [ ] Keep journal in sync with this vault's [[20 - Journal/Daily|Journal]]?
## Related
[[Profile]] · [[Timeline]]

View file

@ -0,0 +1,24 @@
---
type: project
status: active
domain: [finance, software]
commits: 49
period: 2026-05-08 → 2026-06-06
tags: [project, investing, trading]
---
# 🎯 Position Tracker
> Live trading **position-tracking** service. 49 commits (MayJun 2026). Dockerised; binds port 3457 to 127.0.0.1 (deployed behind reverse proxy).
## Purpose
Track open trading positions and P&L in real time. Many `fix_pnl*`, `fix_market_ui`, `fix_closed_card` commits → an actively-used, iterated tool.
## Notes
- Self-hosted via [[Self-Hosting|Dokploy]] (same convention as [[Tia]] / [[obsidian-stack]]).
- Likely the runtime companion to [[TradeBuddy]].
## Open questions
- [ ] Data source / broker API?
- [ ] Relationship to [[TradeBuddy]]?
## Related
[[TradeBuddy]] · [[MOC - Investing]] · [[Self-Hosting]]

View file

@ -0,0 +1,17 @@
---
type: project
status: active
domain: [health, software]
tags: [project]
---
# 🏃 Prehab360
> Prehab / physiotherapy app (client + server, has `prehab360_prd.md`). Injury prevention & rehab.
## Notes
- Reflects [[Health Overview|health/rehab]] interest.
## Open questions
- [ ] Personal tool or product? What problem precisely?
## Related
[[Health Overview]] · [[MOC - Startup]]

33
30 - Projects/REModel.md Normal file
View file

@ -0,0 +1,33 @@
---
type: project
status: active
domain: [renewables, finance, software]
tech: [Python, FastAPI, Next.js]
commits: 53
period: 2026-05-07 → 2026-05-16
tags: [project, renewables, finance, modeling]
---
# ☀️ REModel — Renewable Energy Financial Modeling Platform
> Python calculation engine + FastAPI backend + Next.js frontend for **Indian renewable-energy** (solar) financial modeling. *This is the software embodiment of the day job.*
## Purpose
Turn the manual, spreadsheet-bound work of **utility-scale solar project finance** into a structured platform — site/technical inputs → energy yield → financial model (debt sizing, returns).
## Why it matters
Directly fuses Manohar's two strongest domains: [[Renewables Overview|renewables engineering]] and [[Finance Overview|project finance]]. The professional version of what he does at [[Renewables Overview|ReNew]].
## Architecture
- **Calc engine (Python):** the modeling core (links conceptually to [[8760 Energy Simulation]])
- **API (FastAPI):** serves model runs
- **Frontend (Next.js):** inputs + visual outputs
- Docs present: `PROJECT.md`, `PRD.md`, `CODEBASE_INVESTIGATION.md`, `RE_Financial_Modeling_Platform PRD.md`
## Status & history
53 commits over a focused **May 2026** sprint.
## Open questions / next
- [ ] Is REModel intended as a product, an internal tool, or a portfolio piece?
- [ ] Relationship to the [[8760 Energy Simulation]] platform — same codebase or successor?
## Lessons / related
[[8760 Energy Simulation]] · [[Renewables Overview]] · [[MOC - Renewables]] · [[Finance Overview]]

View file

@ -0,0 +1,13 @@
---
type: project
status: completed
domain: [renewables, solar]
tags: [project, solar, engineering]
---
# 🏗️ Rooftop Solar Portfolio Design
> Designed **500 kW** of rooftop solar across **3 commercial buildings** in Gurugram. Hands-on solar engineering (likely PVsyst/Helioscope).
- Real-world complement to the software [[8760 Energy Simulation]] / [[REModel]] work.
- [ ] Client project, ReNew work, or independent?
## Related
[[Renewables Overview]] · [[8760 Energy Simulation]] · [[MOC - Renewables]]

50
30 - Projects/Tia.md Normal file
View file

@ -0,0 +1,50 @@
---
type: project
status: active
domain: [saas, ai, software, startup]
tech: [Next.js 16, PostgreSQL, pgvector, Drizzle, LiteLLM, Cloudflare R2, Resend, Tailwind v4, Dokploy]
commits: 406
url: https://tia.manohargupta.com
tags: [project, startup, flagship]
---
# 👶 Tia — Family Baby-Tracking SaaS
> The flagship product. A baby/parenting tracker: **feeds, diapers, sleep, vaccinations, growth, photo memories**, an **AI assistant**, and shared **family circles** — with real **billing (₹)** and an admin observability suite. Live at [tia.manohargupta.com](https://tia.manohargupta.com).
## At a glance
- **406 commits** · active flagship · production with paying tiers
- **Stack:** Next.js 16 (App Router) · PostgreSQL 16 + pgvector · Drizzle ORM · LiteLLM → MiniMax · Cloudflare R2 · Resend · Tailwind v4 · Dokploy
- **Auth:** DB sessions + httpOnly `tia_session` cookie
## Feature map
| Surface | What it does |
|---|---|
| **Quick Log / Home** | One-tap logging of feeds, diapers, sleep; AI card; baby card (at `/home`) |
| **AI chat** (`/ai`) | LiteLLM→MiniMax assistant over the child's data; sessions sidebar |
| **Medical** | Vaccination tracking |
| **Growth** | Growth charts |
| **Memories** | Photo gallery (R2-backed, via `/api/img` proxy) |
| **Circles** | Shared family circles + circle chat |
| **Settings** | Theme picker, invite members, tier |
| **Admin** | Health, Errors, Audit Log, AI Usage observability + billing/subscriptions |
## Business model
- Tiers: **free** vs **pro** (`families.tier`); free guardrails = 1 GiB storage / 2 members per family
- Billing in **₹**: subscriptions, dunning, churn alerts, webhook health; premium storage cap 50 GB
- Payment abstraction = `isPaidFamily(tier)` ([[Decision Log#TD-002]])
## Knowledge base
- 📖 [[Tia - Origin Story]] — why it exists
- 🎯 [[Tia - Positioning]] — vision, messaging, who it's for
- 🏗️ [[Tia - Architecture]] — the technical system
- ⚖️ [[Tia - Decisions]] — key engineering/product calls
- 🗺️ [[Tia - Roadmap]] — shipped + next
- ❓ [[Tia - Open Questions]] — what's undecided
## Progress history (from commits)
- **early** — initial setup, Dockerfile, Node 22 / pnpm 11
- **May 2026** — core build, route-group split, quota/member limits, SEO overhaul, AI chat fixes
- **late May** — migration journal fix, admin observability suite (health/errors/audit/AI)
- **Jun 2026** — full billing: subscriptions, real ₹ revenue, dunning, churn, storage caps
## Related
[[MOC - Startup]] · [[Family Overview]] · [[Decision Log]] · [[Self-Hosting]] · [[Profile]]

View file

@ -0,0 +1,29 @@
---
type: project-doc
parent: "[[Tia]]"
status: verified
branch: feature/quota-and-member-limits
tags: [tia, feature, billing]
---
# 📦 Tia — Storage Quota & Member Limits
> Free-tier guardrails before beta. Branch `feature/quota-and-member-limits` (NOT merged to main as of 2026-05-27).
## Limits
- **1 GiB** storage / family · **2 members** / family (free tier)
## Key files
- `src/lib/quota.ts` — enforcement (pure fns + queries)
- `api/upload`, `api/memories/[id]/confirm`, `api/invites`, `api/storage-usage`
- `components/StorageMeter.tsx` · `__tests__/quota.test.ts` (44 tests pass)
- `drizzle/0007_subscription_status.sql`
## Design calls
- Usage **derived** (SUM), never accumulated ([[Decision Log#TD-001]])
- `tier` is the plan indicator; `isPaidFamily(tier)` abstraction ([[Decision Log#TD-002]])
- Downgrade = **freeze** (keep members, block new invites)
## Status
- [ ] **Apply migration 0007 on staging before merge.** Do not push to main yet.
## Related
[[Tia]] · [[Tia - Decisions]] · [[Tia - Roadmap]]

View file

@ -0,0 +1,38 @@
---
type: project-doc
parent: "[[Tia]]"
status: verified
tags: [tia, architecture, engineering]
---
# 🏗️ Tia — Architecture
> Verified from CLAUDE.md + memory files.
## Stack
Next.js 16 (App Router, Turbopack) · PostgreSQL 16 + **pgvector** (pgvector/pgvector:pg18 on prod) · **Drizzle ORM** · **LiteLLM** gateway → **MiniMax** (minimax-2.7) · **Cloudflare R2** · **Resend** · Tailwind v4 · **Dokploy** (auto-migrate on deploy).
## Route groups ([[Decision Log#TD-005]])
- `(marketing)/``/`, `/pricing`, `/privacy`, `/terms` — **static, no DB/auth imports**
- `(app)/` → authenticated app with ThemeProvider + FamilyProvider + BottomNav; dashboard at `/home`
## Auth
- User: `/login``POST /api/auth/signin` (bcrypt) → session row → httpOnly `tia_session`; routes use `requireFamily()`
- Admin: `/admin-login``tia_admin_session`; admin layout is a server component calling `verifyAdminSession()`
## Data & context
- `FamilyProvider` resolves family/child from session: `{ familyId, child, children, tier, memberCount, updateChildImage }`
- Quota logic in `src/lib/quota.ts` (pure fns + queries); usage always derived via `SUM` ([[Decision Log#TD-001]])
## Migrations (the big gotcha) ([[Decision Log#TD-003]])
- `migrate.mjs` runs before `server.js`; reads all SQL in `drizzle/`, applies any not in `__drizzle_migrations`
- **`when` must be `Date.now()`** (> 1779539431897) or Drizzle silently skips it
- Hot-apply via `POST /api/debug-migration` (header `x-run-migration: yes`), idempotent steps
## Media (R2) ([[Decision Log#TD-004]])
- 3-step upload: init → server-proxied `PUT /api/upload` → save URL
- **Never** direct cross-origin PUT; **never** raw `*.r2.dev` in `<img>` — use `/api/img?key=` proxy
## Observability (admin)
`error_events` table + `logError()` + `POST /api/errors`; `/admin/{health,errors,audit,ai}` over `audit_log`, `ai_usage` (p95 via `percentile_cont`).
## Related
[[Tia]] · [[Tia - Decisions]] · [[Self-Hosting]] · [[Engineering Overview]]

View file

@ -0,0 +1,19 @@
---
type: project-doc
parent: "[[Tia]]"
status: verified
tags: [tia, decisions]
---
# ⚖️ Tia — Key Decisions
> Pulled from the project memory files. Full entries in [[Decision Log]].
1. **Derived usage, never accumulated** ([[Decision Log#TD-001]]) — storage = live SUM; pending excluded.
2. **`tier` is the only plan column** ([[Decision Log#TD-002]]) — payment behind `isPaidFamily()`.
3. **Migrations via hot-apply + `Date.now()` rule** ([[Decision Log#TD-003]]) — after Drizzle silently skipped 00030010.
4. **R2 served through `/api/img` proxy** ([[Decision Log#TD-004]]) — Cloudflare bot-mgmt 503'd cross-origin imgs.
5. **(marketing) vs (app) route groups** ([[Decision Log#TD-005]]) — keep `/` static; dashboard at `/home`.
6. **Downgrade = freeze, not delete** — existing members keep roles; only new invites blocked.
7. **Pre-aggregate analytics with CTEs** — the engagement query was a cartesian blow-up; fixed by per-table CTEs to avoid 500s on real data.
## Related
[[Tia]] · [[Tia - Architecture]] · [[Decision Log]]

View file

@ -0,0 +1,26 @@
---
type: project-doc
parent: "[[Tia]]"
status: stub
tags: [tia, open-questions]
---
# ❓ Tia — Open Questions
> The decisions and unknowns worth resolving.
## Product
- [ ] Primary persona & market (India-first vs global)?
- [ ] The defensible wedge vs. Huckleberry/BabyTracker?
- [ ] AI assistant — what's the killer use case parents actually return for?
## Business
- [ ] Pricing validated? Free→Pro conversion target?
- [ ] How many active families today?
- [ ] CAC / acquisition channel?
## Technical
- [ ] When to merge the quota branch?
- [ ] Native mobile vs PWA?
- [ ] Self-host Tia's infra fully (like [[obsidian-stack]])?
## Related
[[Tia]] · [[Tia - Roadmap]] · [[Tia - Positioning]]

View file

@ -0,0 +1,25 @@
---
type: project-doc
parent: "[[Tia]]"
status: inferred
tags: [tia, startup, origin]
---
# 📖 Tia — Origin Story
> *Reconstructed inference — confirm/rewrite. Nothing here is asserted as fact.*
## The likely origin (inferred)
Tia is a **baby-tracking app** built by someone who ships fast and solves his own problems ([[Credit Analyzer]] for his finances, [[Whisper Hotkey]] for his workflow). The most parsimonious explanation: **Manohar became a parent**, found existing trackers lacking, and built the tool he wanted — then generalised it into a SaaS with family circles and billing.
Evidence pointing this way:
- Deep, opinionated feature set (feeds/diapers/sleep/vaccinations/growth/memories) — the lived problem of a new parent
- **Family circles** — built for *his* family to share, then opened up
- The name **"Tia"** — likely personal/meaningful (a child's name? a term of endearment?)
## ✍️ Confirm the real story
- [ ] Did becoming a parent trigger Tia? When?
- [ ] What does **"Tia"** mean / who is it named after?
- [ ] What existing app frustrated you enough to build your own?
- [ ] First "this has to exist" moment?
## Related
[[Tia]] · [[Tia - Positioning]] · [[Family Overview]]

View file

@ -0,0 +1,28 @@
---
type: project-doc
parent: "[[Tia]]"
status: mixed
tags: [tia, positioning, marketing]
---
# 🎯 Tia — Positioning, Vision & Messaging
> Verified surface facts + prompts for the strategy you hold in your head.
## What it is (verified)
A **family baby-tracking SaaS**: log the essentials, track growth & vaccinations, keep photo memories, ask an **AI assistant**, and share with family via **circles**. Marketing site at `/`, app at `/home`. Indian market signals: ₹ pricing, `en-IN` lang.
## Positioning canvas (fill in)
- **For** … *(new parents in India? globally?)*
- **Who** … *(struggling with scattered tracking / want AI help / want to share with family)*
- **Tia is a** … baby & parenting companion
- **That** … unifies logging + memories + AI insight + family sharing
- **Unlike***(Huckleberry / BabyTracker / paper)* → see [[Competitive Landscape]]
- **Tia** … *(your wedge — AI? family circles? privacy/self-hosted ethos?)*
## ✍️ Prompts
- [ ] One-line pitch?
- [ ] Primary persona & geography?
- [ ] The wedge vs. Huckleberry & co. ([[Competitive Landscape]])
- [ ] Free → Pro conversion thesis?
## Related
[[Tia]] · [[Vision]] · [[Competitive Landscape]] · [[MOC - Startup]]

View file

@ -0,0 +1,29 @@
---
type: project-doc
parent: "[[Tia]]"
status: mixed
tags: [tia, roadmap]
---
# 🗺️ Tia — Roadmap
> Shipped = verified from commits. Next = prompts.
## ✅ Shipped
- Core logging (feeds/diapers/sleep), growth charts, vaccinations, photo memories
- AI chat assistant (LiteLLM→MiniMax) · family circles + chat
- Marketing site + SEO overhaul (JSON-LD, sitemap, OG images)
- Quota & member limits · full billing (subscriptions, dunning, churn, ₹ revenue, 50 GB cap)
- Admin observability (health, errors, audit, AI usage)
## 🔜 Likely next (confirm)
- [ ] Merge `feature/quota-and-member-limits` to main ([[Quota Feature]])
- [ ] Fix CSP so Plausible analytics works (flagged, not fixed)
- [ ] Delete dead `/api/admin/analytics` route
- [ ] Public beta launch readiness
## ✍️ Prompts
- [ ] Next 3 features by priority?
- [ ] Launch date / beta cohort?
- [ ] Mobile app (native) on the roadmap?
## Related
[[Tia]] · [[Tia - Open Questions]] · [[Tia - Decisions]]

View file

@ -0,0 +1,29 @@
---
type: project
status: active
domain: [finance, software, ai]
tech: [React 18, TypeScript, Vite, MUI v5, Redux Toolkit, Recharts]
tags: [project, investing, trading]
---
# 📈 TradeBuddy — Trading Platform
> Production-grade trading platform: real-time data, portfolio tracking, AI insights, and **Telegram bot** integration. (Repo: `TradingApp`; "TradeBuddy Journal Redesign — Master Plan".)
## Purpose
A serious trading journal + platform — track positions, stream real-time market data over WebSockets, surface AI insights, and interact via Telegram.
## Architecture
- **Frontend:** React 18 + TS + Vite + MUI v5 + Redux Toolkit + Recharts
- **Real-time:** WebSocket streams for portfolio tracking
- **AI insights** layer + **Telegram bot** interface
- Companion: [[Position Tracker]] (49 commits, MayJun 2026) — the live position-tracking service
## Why it matters
Anchors the **active investor** identity → feeds [[Investment Philosophy]] and [[MOC - Investing]].
## Open questions
- [ ] TradeBuddy vs. Position Tracker — one product or two?
- [ ] Markets traded (equities, F&O, crypto)?
- [ ] Live capital or paper?
## Related
[[Position Tracker]] · [[Investment Philosophy]] · [[Finance Overview]] · [[MOC - Investing]]

View file

@ -0,0 +1,17 @@
---
type: project
status: completed
domain: [automation, software]
tags: [project]
---
# 🎤 Whisper Hotkey — Mac Dictation
> Press ⌘⇧V anywhere → speak → text at cursor. Background server for instant transcription. (3 commits, Jan 2026.)
## Notes
- Personal-automation tool; speed-optimised with a background server.
## Open questions
- [ ] Which Whisper model? Still in daily use?
## Related
[[Operations Overview]] · [[MOC - Software]]

12
30 - Projects/dedup.md Normal file
View file

@ -0,0 +1,12 @@
---
type: project
status: unknown
domain: [software, data]
tags: [project, utility]
---
# 🧹 dedup
> Python utility (purpose to confirm — likely data/file deduplication).
- [ ] What does dedup actually de-duplicate, and for what?
## Related
[[MOC - Software]]

View file

@ -0,0 +1,29 @@
---
type: project
status: completed
domain: [infra, knowledge, software]
commits: 15
period: 2026-04-26 → 2026-06-07
tags: [project, self-hosting, pkm]
---
# 🗄️ obsidian-stack — Self-Hosted Obsidian
> The infrastructure powering *this vault*. Self-hosted Obsidian with end-to-end sync and automated backup.
## Components
- **CouchDB 3.3** — LiveSync backend at `couchdb.manohargupta.com` (`require_valid_user`)
- **Ignis** (`nobbe/ignis:latest`) — real Obsidian in the browser at `notes.manohargupta.com`, vault bind-mounted at `/opt/obsidian/vaults/main`
- **Self-hosted LiveSync** plugin — CouchDB sync across desktop / web / mobile
- **Hourly cron** → git commit + push to **Forgejo** (`git.manohargupta.com:2222`)
- Deployed via **[[Self-Hosting|Dokploy]]**; reachable over Tailscale `100.75.128.45`
## Key lessons learned
- Forgejo SSH is on **port 2222** (host sshd owns 22)
- `git config --global --add safe.directory` needed (vault owned by uid 1000)
- Files created directly on disk need LiveSync **scan + unlock** before they replicate (the "remote rebuilt/corrupted" trap) → [[Self-Hosting]]
- Secrets only in Dokploy env ([[Decision Log#TD-006]])
## Outcome
Full bi-directional sync verified across web ↔ CouchDB ↔ desktop; 10 plugins installed (Dataview, Templater, Periodic Notes, Calendar, Tasks, QuickAdd, Tag Wrangler…).
## Related
[[Self-Hosting]] · [[Cortex]] · [[Operations Overview]] · [[Deployment Checklist]]

View file

@ -0,0 +1,12 @@
---
type: project
status: active
domain: [ai, software]
tags: [project, ai, agents, ui]
---
# 🐯 tiger-build
> Agent dashboard UI build — activity feed, agent chips, agent-file routes, model config. The most recent UI layer of the [[Clawd Ecosystem]].
- [ ] Is this the current front-end for the Clawd agent?
## Related
[[Clawd Ecosystem]] · [[OpenClaw Dashboard]] · [[Agent Architectures]]

View file

@ -0,0 +1,27 @@
---
type: area
status: mixed
tags: [area, business]
updated: 2026-06-07
---
# 🏢 Business — Area Overview
> Ventures, clients, and commercial work outside the salaried role.
## Ventures & products
- **[[Tia]]** — baby-tracking SaaS (the flagship startup) → [[MOC - Startup]]
- **[[Awadh Gully]]** — restaurant (brand + website)
- **[[Arawali Minerals]]** — industrial minerals corporate web presence
- **[[Playschool CRM]]** — SaaS for playschools
## Commercial themes to track
- Pricing & monetisation (Tia billing in ₹, tiers)
- Positioning & messaging → [[Tia - Positioning]]
- Customer insight & feedback loops
## ✍️ Prompts
- [ ] Is Awadh Gully a family business / your venture / a client?
- [ ] Revenue goals across ventures?
- [ ] Which of these is a *real* business vs. a portfolio/demo piece?
## Related
[[MOC - Startup]] · [[Tia]] · [[Home]]

View file

@ -0,0 +1,35 @@
---
type: area
status: verified
tags: [area, engineering, software]
updated: 2026-06-07
---
# 🛠️ Engineering — Area Overview
> Standards, stack, and practices for everything I build.
## My default stack
- **Web:** Next.js (App Router) + React + TypeScript + Tailwind v4
- **Backend:** Python (FastAPI / Flask) and Next API routes
- **DB:** PostgreSQL (+ pgvector) with Drizzle ORM
- **Infra:** Docker + Dokploy, Cloudflare R2, Tailscale — see [[Self-Hosting]]
- **AI:** LiteLLM gateway → model providers; agent frameworks → [[MOC - AI]]
## Operating rules (battle-tested)
- ALWAYS run `pnpm build` locally **before** commit/push ([[Deployment Checklist]])
- Secrets only in env (Dokploy), never in git ([[Decision Log#TD-006]])
- Migrations: `when` must be `Date.now()`; SQL idempotent ([[Decision Log#TD-003]])
- Never PUT cross-origin to R2 from the browser — proxy server-side ([[Decision Log#TD-004]])
## Active engineering surfaces
```dataview
table status, tech
from "30 - Projects"
where contains(domain, "software") or contains(domain, "ai")
sort file.mtime desc
```
## Knowledge
[[Docker]] · [[Git]] · [[Self-Hosting]] · [[Development Workflow]] · [[Linux]]
## Related
[[MOC - Software]] · [[Profile]] · [[Home]]

View file

@ -0,0 +1,21 @@
---
type: area
status: stub
tags: [area, family, personal]
updated: 2026-06-07
---
# 👨‍👩‍👧 Family — Area Overview
> Private area. Nothing here is fabricated — fill in what you want to keep.
> [!note] Context from your work
> You built **[[Tia]]**, a baby-tracking app (feeds, sleep, diapers, vaccinations, growth, memories). That strongly suggests parenthood is a lived, current part of your life — and likely the **origin story** of Tia. See [[Tia - Origin Story]].
## ✍️ Prompts (answer only what you want recorded)
- [ ] Family members & relationships
- [ ] Children — ages (ties directly to Tia's product decisions)
- [ ] Family values / traditions you want to pass on
- [ ] Parenting principles → could become [[60 - Knowledge]] notes
- [ ] Important dates
## Related
[[Tia - Origin Story]] · [[Health Overview]] · [[Profile]]

View file

@ -0,0 +1,27 @@
---
type: area
status: verified
tags: [area, finance]
updated: 2026-06-07
---
# 💰 Finance — Area Overview
> Project finance is my profession; personal finance & markets are my practice.
## Professional finance (the day job)
- **Domain:** utility-scale **solar project finance**, 50300MW ([[Renewables Overview|ReNew]])
- **Skills:** financial modeling, debt sizing, technical + financial DD, information memorandums, lender/equity relationships
- **Lineage:** [[Timeline|Thomson Reuters → PwC → ReNew]]
- See [[Renewables Overview]] for the energy side, [[8760 Energy Simulation]] for the modeling core
## Personal finance & markets (the builds)
- [[Credit Analyzer]] — auto-parse bank statements, AI spending insights
- [[TradeBuddy]] / [[Position Tracker]] — trading platform & position tracking
- [[Economic Survey Visualizer]] / [[India Economy Dashboard]] — macro analysis
- Philosophy & theses → [[Investment Philosophy]] · [[MOC - Investing]]
## ✍️ Prompts
- [ ] Personal financial goals / targets?
- [ ] Asset allocation framework you follow?
## Related
[[MOC - Investing]] · [[Investment Philosophy]] · [[Profile]]

View file

@ -0,0 +1,20 @@
---
type: area
status: stub
tags: [area, health, personal]
updated: 2026-06-07
---
# 🏃 Health — Area Overview
> Personal health, fitness, and wellbeing.
> [!note] Context from your work
> You built **[[Prehab360]]** (a prehab / physiotherapy app), hinting at interest in injury prevention & rehab.
## ✍️ Prompts
- [ ] Current health goals (fitness, sleep, nutrition)?
- [ ] Any conditions / constraints to track?
- [ ] Routines that work for you?
- [ ] Metrics you care about?
## Related
[[Prehab360]] · [[Profile]]

View file

@ -0,0 +1,28 @@
---
type: knowledge
status: inferred
tags: [investing, philosophy, finance]
updated: 2026-06-07
---
# 📜 Investment Philosophy
> *Inferred starting points from your background & builds — rewrite in your own voice. Not financial advice; your principles only.*
## What your work suggests (inferred)
- **Cashflow-literate:** project-finance career = deep comfort with DCF, debt, downside cases → likely a **fundamentals/cashflow** lean over hype
- **Systems & data:** you built [[TradeBuddy]], [[Position Tracker]], [[Economic Survey Visualizer]] — suggests a **quant/systematic, data-driven** streak
- **Macro-aware:** [[India Economy Dashboard]] + Economic Survey work → you track **macro** context
- **Sustainability thesis:** career-deep in **renewables** → plausible conviction in the energy transition as an investable secular trend
## Principles (fill in — these are YOURS)
- [ ] Time horizon & style (long-term compounding? active trading? both, in sleeves?)
- [ ] Asset classes you play (Indian equities, US, F&O, crypto, private/angel?)
- [ ] Position sizing & risk rules
- [ ] Your edge / circle of competence (renewables? finance? tech?)
- [ ] What you refuse to do
## Theses to develop → [[60 - Knowledge]]
- [ ] Energy transition / renewables investing thesis
- [ ] India macro thesis
## Related
[[MOC - Investing]] · [[Finance Overview]] · [[TradeBuddy]] · [[Decision Log]]

View file

@ -0,0 +1,24 @@
---
type: area
status: mixed
tags: [area, operations]
updated: 2026-06-07
---
# ⚙️ Operations — Area Overview
> The systems that keep work and life running — automation, infra, routines.
## Personal infrastructure (self-run)
- **[[Self-Hosting]]** — Dokploy stack on a single server (Tailscale `100.75.128.45`)
- **[[obsidian-stack]]** — self-hosted Obsidian (CouchDB LiveSync + Ignis web UI + hourly Forgejo backup)
- **[[Whisper Hotkey]]** — voice-to-text automation (⌘⇧V anywhere)
## Routines & cadences
- Periodic notes: [[20 - Journal/Daily|Daily]] / Weekly / Monthly (Periodic Notes plugin)
- Deployment ritual: [[Deployment Checklist]]
## ✍️ Prompts
- [ ] Weekly review cadence — do you run one?
- [ ] What recurring ops eat the most time (worth automating)?
## Related
[[Engineering Overview]] · [[Self-Hosting]] · [[Home]]

View file

@ -0,0 +1,24 @@
---
type: startup-doc
status: stub
tags: [startup, customers, feedback]
---
# 🗣️ Customer Insights & Feedback
> Verbatim quotes, support themes, churn reasons. Evidence for product decisions.
## Sources to wire up
- [ ] Tia `audit_log` / engagement analytics → behavioural insight
- [ ] Support emails (Resend) → themes
- [ ] Churn/dunning data → why people leave
## Insight log
| Date | Source | Insight | Action |
|---|---|---|---|
| | | | |
## ✍️ Prompts
- [ ] Have you talked to users yet? What did you learn?
- [ ] Top requested feature?
## Related
[[Experiments]] · [[Tia - Positioning]] · [[Weekly Metrics]]

View file

@ -0,0 +1,19 @@
---
type: startup-doc
status: stub
tags: [startup, product, ideas]
---
# 💡 Product Ideas — Backlog
> Capture raw ideas here; promote the good ones to [[Roadmap]].
## Tia ideas (seed)
- [ ] AI "ask anything about my baby" weekly digest
- [ ] Shareable milestone cards (memories → social keepsake)
- [ ] Pediatrician export (growth + vaccination summary PDF)
- [ ] Multi-child households
## Cross-product ideas
- [ ] Could [[Playschool CRM]] + Tia share a family-graph backend?
## Related
[[Roadmap]] · [[Tia - Roadmap]] · [[Vision]]

View file

@ -0,0 +1,19 @@
---
type: startup-doc
status: stub
tags: [startup, experiments]
---
# 🧪 Experiments Log — Tia
> Hypotheses tested, results, decisions. One row per experiment.
| Date | Hypothesis | Test | Result | Decision |
|---|---|---|---|---|
| | | | | |
## Backlog of experiments to run
- [ ] Pricing test (₹ tiers — willingness to pay for Pro)
- [ ] AI assistant value (do AI users retain better?)
- [ ] Activation: does the onboarding flow drive first-log within 24h?
## Related
[[Vision]] · [[Weekly Metrics]] · [[Customer Insights]]

View file

@ -1,26 +1,33 @@
---
type: startup-note
category: strategy
updated:
type: startup-doc
status: mixed
tags: [startup, vision, tia]
updated: 2026-06-07
---
# 🌟 Vision — Tia
> The startup layer is currently centred on **[[Tia]]**, the flagship product.
# Vision
## North star (draft — confirm)
> Help every family effortlessly track, understand, and remember their child's earliest years — with AI doing the heavy lifting and family sharing built in.
## 🌟 North Star
> Where are we going in 10 years?
## Why now
- AI assistants make "ask about your baby's data" finally useful
- Parents already log on paper / scattered apps — consolidation + memory is unmet
- Solo-founder economics: self-hosted infra ([[Self-Hosting]]) keeps burn near zero
## 🎯 Mission
> What do we do and for whom?
## Strategy pillars
1. **AI-native** — the assistant is the differentiator, not a bolt-on ([[Tia - Architecture]])
2. **Family-shared** — circles make it sticky across caregivers
3. **Memory & longevity** — photo memories → a keepsake, not just a tracker
4. **Lean & owned** — self-hosted, ₹-priced, sustainable solo
## 💡 Core Insight
> What do we believe that others do not?
## Linked docs
[[Tia - Positioning]] · [[Competitive Landscape]] · [[Roadmap]] · [[Weekly Metrics]] · [[Experiments]] · [[Product Ideas]] · [[Customer Insights]]
## 🏆 Unique Edge
> Why us? Why now?
## ✍️ Prompts
- [ ] Is Tia the *only* startup bet, or one of several ([[Playschool CRM]])?
- [ ] 3-year vision in your words?
- [ ] What would make you *kill* Tia?
---
## Values
1.
2.
3.
## Related
[[Tia]] · [[MOC - Startup]] · [[Startup Overview]]

View file

@ -0,0 +1,23 @@
---
type: resource
status: mixed
tags: [ai, agents, architecture]
---
# 🤖 Agent Architectures
> Patterns for building autonomous AI agents. Grounded in the [[Clawd Ecosystem]] work.
## Core components (from Clawd)
- **Core memory** — persistent `MEMORY.md` the agent reads/edits (this vault's [[Decision Log]] mirrors the idea)
- **Skills / capability registry** — browsable, editable set of agent abilities
- **MCP** servers — tool integration layer → [[MCP]]
- **Activity feed / observability** — see what the agent did ([[tiger-build]])
- **Agent control plane** — dashboard to manage the above ([[OpenClaw Dashboard]])
## Patterns to write up → [[60 - Knowledge]]
- [ ] Memory: short-term context vs. durable core memory vs. retrieval
- [ ] Skill/tool selection & routing
- [ ] Single-agent vs. multi-agent orchestration
- [ ] Human-in-the-loop checkpoints
## Related
[[Clawd Ecosystem]] · [[Agent Frameworks]] · [[MCP]] · [[LLMs]] · [[MOC - AI]]

View file

@ -0,0 +1,19 @@
---
type: resource
status: stub
tags: [ai, agents, frameworks]
---
# 🧩 Agent Frameworks & Tools
> Survey of frameworks for building agents — and which you actually use.
## Used / explored
- **Claude Agent SDK / Claude Code** — likely basis of [[Clawd Ecosystem]] (confirm)
- **MCP** (Model Context Protocol) → [[MCP]]
- **LiteLLM** (gateway) → [[LLMs]]
## To evaluate / note
- [ ] LangGraph, CrewAI, Autogen — tried any?
- [ ] Your build-vs-adopt stance for agent infra
## Related
[[Agent Architectures]] · [[MCP]] · [[Clawd Ecosystem]]

21
50 - Resources/AI/LLMs.md Normal file
View file

@ -0,0 +1,21 @@
---
type: resource
status: mixed
tags: [ai, llm]
---
# 🧬 LLMs — Working Notes
> Practical knowledge of large language models in production.
## In my stack (verified)
- **LiteLLM** as the gateway abstraction (provider-agnostic) — used in [[Tia]]
- **MiniMax** (minimax-2.7) as a production model behind LiteLLM
- **pgvector** for embeddings/retrieval in [[Tia]]
## Topics to capture
- [ ] Gateway pattern (LiteLLM) — why abstract the provider
- [ ] Cost/latency: p95 tracking (Tia's `/admin/ai` uses `percentile_cont`)
- [ ] Embeddings + pgvector retrieval recipe
- [ ] Model selection trade-offs
## Related
[[Agent Architectures]] · [[Prompt Engineering]] · [[Tia - Architecture]] · [[MOC - AI]]

19
50 - Resources/AI/MCP.md Normal file
View file

@ -0,0 +1,19 @@
---
type: resource
status: mixed
tags: [ai, mcp]
---
# 🔌 MCP — Model Context Protocol
> Standard for connecting models to tools/data. Managed in the [[Clawd Ecosystem]] dashboards.
## What I do with it
- Register & manage MCP servers from the [[OpenClaw Dashboard]] / [[tiger-build]] UI
- Tooling layer for the Clawd agent
## To capture
- [ ] Anatomy of an MCP server (tools, resources, prompts)
- [ ] Building a custom MCP server (see skill: mcp-builder)
- [ ] Security model for tool exposure
## Related
[[Agent Frameworks]] · [[Agent Architectures]] · [[Clawd Ecosystem]]

View file

@ -0,0 +1,16 @@
---
type: resource
status: stub
tags: [ai, prompting]
---
# ✍️ Prompt Engineering
> Reusable prompting patterns. Pair with [[Prompt Library]] (working prompts).
## To capture
- [ ] System-prompt structure that works for you
- [ ] Tool-use / structured-output prompting
- [ ] Eval approach — how you tell a prompt is "good"
- [ ] Patterns from building the [[Tia]] AI assistant & [[Clawd Ecosystem]]
## Related
[[Prompt Library]] · [[LLMs]] · [[Agent Architectures]] · [[MOC - AI]]

View file

@ -0,0 +1,31 @@
---
type: index
status: stub
tags: [reading, books, articles]
---
# 📚 Reading Library
> Books, articles, and papers — with notes that link ideas across sources. Use [[Book Note]] / [[Article Note]] templates.
## Books (Dataview)
```dataview
table author, status, rating
from "50 - Resources/Books"
where type = "book"
sort file.ctime desc
```
## Articles & papers (Dataview)
```dataview
table source, tags
from "50 - Resources/Articles"
where type = "article"
sort file.ctime desc
```
## ✍️ Seed the library
- [ ] List 510 books that shaped your thinking (finance, startups, AI, systems)
- [ ] Favourite recurring authors/blogs/newsletters
- [ ] Papers behind the [[8760 Energy Simulation]] work
## Related
[[MOC - Learning]] · [[Learning Overview]]

View file

@ -0,0 +1,23 @@
---
type: checklist
status: verified
tags: [devops, deployment, tia]
---
# ✅ Deployment Checklist
> Pre-push ritual before production (primarily [[Tia]] on [[Self-Hosting|Dokploy]]).
## Every push
1. Run `pnpm build` **locally** before committing
2. Verify build succeeds with **no errors**
3. Test login works via API call
4. Push to git
5. **Wait for deployment** before confirming success
## Prod DB must use a pgvector image (learned 2026-05-30)
- Dokploy Postgres image **MUST** be `pgvector/pgvector:pg18` (not plain `postgres:18`)
- Schema needs it: `memories.vision_embedding vector(1536)` + ivfflat index
- **Symptom of wrong image:** `CREATE EXTENSION ... vector` says "already exists" but queries fail with `could not access file "vector"` — any query touching `memories` breaks
- **Fix:** swap image + redeploy DB (same PG18 base → data volume compatible, no dump/restore)
## Related
[[Tia - Architecture]] · [[Self-Hosting]] · [[Decision Log#TD-003]] · [[Git]]

View file

@ -0,0 +1,21 @@
---
type: resource
status: mixed
tags: [workflow, engineering]
---
# 🔁 Development Workflow
> How I actually ship — heavily AI-assisted (Claude Code), self-hosted infra, fast iteration.
## The loop
1. Build locally (Next.js / Python) — Claude Code as pair
2. `pnpm build` gate before any push ([[Deployment Checklist]])
3. Push → Dokploy auto-deploys + auto-migrates
4. Hot-fix migrations via debug endpoint when needed ([[Decision Log#TD-003]])
5. Observe via admin dashboards (Tia) / logs
## Meta
- AI-agent tooling for my own workflow: [[Clawd Ecosystem]], [[Whisper Hotkey]]
- Knowledge captured in this vault + auto-memory files
## Related
[[Git]] · [[Self-Hosting]] · [[Deployment Checklist]] · [[Engineering Overview]]

View file

@ -0,0 +1,17 @@
---
type: resource
status: verified
tags: [infra, docker]
---
# 🐳 Docker
> Container patterns I rely on.
## Patterns in use
- **Multi-stage** Next.js builds; `node migrate.mjs && node server.js` as CMD (migrate-then-boot, see [[Tia - Architecture]])
- **Bind mounts** for data that other tooling must reach (e.g. obsidian vault git-backup)
- **Named volumes** for DB persistence across redeploys
- `user: "5984:5984"` to dodge entrypoint chown crashes (CouchDB)
- `mem_limit` caveat: on swap-heavy boxes the OOM killer fires before logs flush — sometimes omit
## Related
[[Self-Hosting]] · [[Engineering Overview]] · [[Linux]]

View file

@ -0,0 +1,20 @@
---
type: resource
status: verified
tags: [infra, git]
---
# 🌿 Git
> Workflow + the self-hosted Forgejo setup.
## Workflow rules
- ALWAYS `pnpm build` locally before commit/push ([[Deployment Checklist]])
- Feature branches for risky work (e.g. `feature/quota-and-member-limits`, [[Quota Feature]])
- Conventional-ish commit messages (`feat:`, `fix:`, `chore:`)
## Self-hosted Forgejo
- `git.manohargupta.com`, **SSH port 2222**
- Hourly cron mirrors the Obsidian vault here ([[obsidian-stack]])
- `safe.directory` config needed when repo owned by a different uid
## Related
[[Self-Hosting]] · [[Development Workflow]]

View file

@ -0,0 +1,16 @@
---
type: resource
status: stub
tags: [infra, linux]
---
# 🐧 Linux & Server Admin
> Notes from running the Ubuntu box.
## To capture
- [ ] SSH hardening done (`sshd_hardening.backup` seen on server)
- [ ] cron patterns (hourly backup job)
- [ ] systemd / process mgmt (pm2 present)
- [ ] swap & memory tuning lessons
## Related
[[Self-Hosting]] · [[Docker]]

View file

@ -0,0 +1,28 @@
---
type: resource
status: verified
tags: [infra, self-hosting, devops]
---
# 🖥️ Self-Hosting
> How I run my own infrastructure. Battle-tested across [[Tia]], [[obsidian-stack]], [[Position Tracker]].
## The setup
- **Dokploy** (v0.29.5) — Docker-based PaaS on a single server; Compose apps
- **Reverse proxy:** Traefik (LetsEncrypt certs, basicAuth middleware)
- **Networking:** Tailscale (server at `100.75.128.45`; public IP times out externally)
- **Git:** self-hosted **Forgejo** at `git.manohargupta.com` — **SSH on port 2222**
- **Storage:** Cloudflare R2 (S3 API)
## Hard-won lessons
- Secrets only in **Dokploy env tab**, never git ([[Decision Log#TD-006]]); bcrypt `$` must be doubled `$$`
- CouchDB: run as `5984:5984` to skip the chown-on-readonly-ini crash
- Forgejo SSH = **2222** (host sshd owns 22)
- `git config --global --add safe.directory <path>` for container-owned dirs (uid 1000)
- R2 `*.r2.dev` 503s cross-origin imgs → proxy server-side ([[Decision Log#TD-004]])
- LiveSync "remote rebuilt/corrupted" → **Unlock the remote database** then replicate ([[obsidian-stack]])
## Hosted services
[[Tia]] (`tia.`) · Obsidian ([[obsidian-stack]]: `notes.` + `couchdb.`) · [[Position Tracker]] · portfolio
## Related
[[Docker]] · [[Deployment Checklist]] · [[Operations Overview]] · [[MOC - Software]]

View file

@ -0,0 +1,32 @@
---
type: meta
tags: [meta, gaps]
updated: 2026-06-07
---
# 🕳️ Missing Knowledge & Open Loops
> Auto-detected gaps from the reconstruction. Knock these out and the vault becomes truly complete.
## Personal (only you can fill)
- [ ] [[Profile]] — values, weaknesses, ambitions, mission in your words
- [ ] [[Timeline]] — birth year, when coding started, personal milestones
- [ ] [[Investment Philosophy]] — your actual principles
- [ ] [[Family Overview]] · [[Health Overview]] — whatever you want recorded
## Project unknowns (quick confirms)
- [ ] [[Tia - Origin Story]] — the real founding story + what "Tia" means
- [ ] [[Clawd Ecosystem]] — which repo is canonical; built on Claude SDK?
- [ ] [[TradeBuddy]] vs [[Position Tracker]] — one product or two?
- [ ] [[Awadh Gully]] / [[Arawali Minerals]] — venture, family business, or client?
- [ ] [[REModel]] vs [[8760 Energy Simulation]] — same lineage?
## Knowledge to write up (you have the expertise)
- [ ] 8760 modeling explainer ([[8760 Energy Simulation]])
- [ ] Project-finance debt-sizing primer ([[Finance Overview]])
- [ ] Agent memory patterns ([[Agent Architectures]])
- [ ] Energy-transition investment thesis ([[Investment Philosophy]])
## Empty-by-design (fill as you work)
- `00 - Inbox` · `20 - Journal/Daily` · `70 - Archive`
## Related
[[Home]] · [[Decision Log]]