feat: major platform expansion — Brain service, RSS reader, iOS app, AI assistants, Firefox extension
All checks were successful
Security Checks / dependency-audit (push) Successful in 1m13s
Security Checks / secret-scanning (push) Successful in 3s
Security Checks / dockerfile-lint (push) Successful in 3s

Brain Service:
- Playwright stealth crawler replacing browserless (og:image, Readability, Reddit JSON API)
- AI classification with tag definitions and folder assignment
- YouTube video download via yt-dlp
- Karakeep migration complete (96 items)
- Taxonomy management (folders with icons/colors, tags)
- Discovery shuffle, sort options, search (Meilisearch + pgvector)
- Item tag/folder editing, card color accents

RSS Reader Service:
- Custom FastAPI reader replacing Miniflux
- Feed management (add/delete/refresh), category support
- Full article extraction via Readability
- Background content fetching for new entries
- Mark all read with confirmation
- Infinite scroll, retention cleanup (30/60 day)
- 17 feeds migrated from Miniflux

iOS App (SwiftUI):
- Native iOS 17+ app with @Observable architecture
- Cookie-based auth, configurable gateway URL
- Dashboard with custom background photo + frosted glass widgets
- Full fitness module (today/templates/goals/food library)
- AI assistant chat (fitness + brain, raw JSON state management)
- 120fps ProMotion support

AI Assistants (Gateway):
- Unified dispatcher with fitness/brain domain detection
- Fitness: natural language food logging, photo analysis, multi-item splitting
- Brain: save/append/update/delete notes, search & answer, undo support
- Madiha user gets fitness-only (brain disabled)

Firefox Extension:
- One-click save to Brain from any page
- Login with platform credentials
- Right-click context menu (save page/link/image)
- Notes field for URL saves
- Signed and published on AMO

Other:
- Reader bookmark button routes to Brain (was Karakeep)
- Fitness food library with "Add" button + add-to-meal popup
- Kindle send file size check (25MB SMTP2GO limit)
- Atelier UI as default (useAtelierShell=true)
- Mobile upload box in nav drawer

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Yusuf Suleman
2026-04-03 00:56:29 -05:00
parent af1765bd8e
commit 4592e35732
97 changed files with 11009 additions and 532 deletions

View File

@@ -0,0 +1,74 @@
"""SQLAlchemy models for the reader service."""
from datetime import datetime
from sqlalchemy import (
Boolean,
Column,
DateTime,
ForeignKey,
Index,
Integer,
String,
Text,
UniqueConstraint,
)
from sqlalchemy.orm import relationship
from app.database import Base
class Category(Base):
__tablename__ = "reader_categories"
id = Column(Integer, primary_key=True, autoincrement=True)
user_id = Column(String(64), nullable=False)
title = Column(String(255), nullable=False)
created_at = Column(DateTime, default=datetime.utcnow)
feeds = relationship("Feed", back_populates="category", lazy="selectin")
class Feed(Base):
__tablename__ = "reader_feeds"
id = Column(Integer, primary_key=True, autoincrement=True)
user_id = Column(String(64), nullable=False)
category_id = Column(Integer, ForeignKey("reader_categories.id", ondelete="SET NULL"), nullable=True)
title = Column(String(500), nullable=False)
feed_url = Column(Text, nullable=False, unique=True)
site_url = Column(Text)
etag = Column(String(255))
last_modified = Column(String(255))
last_fetched_at = Column(DateTime)
created_at = Column(DateTime, default=datetime.utcnow)
category = relationship("Category", back_populates="feeds", lazy="selectin")
entries = relationship("Entry", back_populates="feed", lazy="noload", cascade="all, delete-orphan")
class Entry(Base):
__tablename__ = "reader_entries"
__table_args__ = (
UniqueConstraint("feed_id", "url", name="uq_reader_entries_feed_url"),
Index("idx_reader_entries_user_status", "user_id", "status"),
Index("idx_reader_entries_user_starred", "user_id", "starred"),
Index("idx_reader_entries_feed", "feed_id"),
Index("idx_reader_entries_published", "published_at"),
)
id = Column(Integer, primary_key=True, autoincrement=True)
feed_id = Column(Integer, ForeignKey("reader_feeds.id", ondelete="CASCADE"), nullable=False)
user_id = Column(String(64), nullable=False)
title = Column(String(1000))
url = Column(Text)
content = Column(Text)
full_content = Column(Text)
author = Column(String(500))
published_at = Column(DateTime)
status = Column(String(10), default="unread")
starred = Column(Boolean, default=False)
reading_time = Column(Integer, default=1)
created_at = Column(DateTime, default=datetime.utcnow)
feed = relationship("Feed", back_populates="entries", lazy="selectin")