Projects / TheLearningCompany
TheLearningCompany
A study browser from a hackathon. It blocks distractions, watches the session, and turns the gaps into a quiz and flashcards.
Why
A notes app does not see what you actually had open. The browser does. Putting the study session in its own browser means the companion can watch that session without being the student’s everyday Chrome.
Diagrams
A solid outline is the path in the repo. A dashed outline is the alternative that shape is refusing.
The browser is Chromium in Docker, visible through NoVNC, with CDP streaming frames. FastAPI and browser-use read that session. Quizzes go through OpenRouter. bear-1 compresses tokens. Export is Anki or Quizlet, plus a graph of the session.
flowchart TD
chrome["Chromium in Docker, NoVNC"]
cdp["CDP frames"]
agent["FastAPI and browser-use"]
bear["bear-1 compression"]
quiz["OpenRouter quiz"]
cards["Anki or Quizlet, plus a graph"]
chrome --> cdp --> agent
agent --> bear
agent --> quiz --> cards
class chrome,cdp,agent,bear,quiz,cards chosen
The companion has to see what was actually open. That session is an isolated Chromium, not the student’s everyday browser, and not notes typed after the fact. A page that never paints in the container is invisible to it.
flowchart TD
q{What the companion can see}
q -->|"frames from an isolated session"| box["Chromium in Docker"]
q -->|"the everyday browser"| daily["The student's Chrome"]
q -->|"notes typed afterwards"| notes["A notes app"]
class box chosen
class daily,notes rejected
Why this shape
Where it breaks
This is a hackathon build. The public record is the Devpost page, not a maintained repo on this site. The companion only knows what CDP can see in that container. A page that never paints, or a session that leaves the container, is invisible to it. Token compression and the quiz are different calls. A compressed prompt can drop the concept the quiz was supposed to test.