Skip to main content
Obvious Baba by TheWORKCompany

Federated Obvious Baba Widget

Embed daily truths, Ask Obvious verdicts, or workplace aphorisms inside any host page with zero global CSS collisions and automatic container adaptation.

1. Declarative Custom Element

Drop <obaba-gyan-card> anywhere. It reads shared typography and surface tokens from the host page and adapts cleanly inside narrow sidebars or full-width columns via CSS container queries.

<link rel="stylesheet" href="./assets/css/obaba_widget.css">
<script type="module" src="./assets/js/obaba_widget.js"></script>
<obaba-gyan-card class="widget" data-kind="gyan" data-topic="Adult in the Room"></obaba-gyan-card>

2. Programmatic Lifecycle API

Mount, update, and cleanly tear down multiple instances on the same screen without leaked listeners or orphaned timers.

import { obaba_widget } from './assets/js/obaba_widget.js';

const handle = obaba_widget.mount(containerEl, {
  kind: 'counsel',
  category: 'AI & Agents'
});
// Later: handle.update({ category: 'Meetings & Motion' });
// Teardown: handle.destroy();

Need raw data instead? Read the Work Lessons JSON API.

Live Declarative Instance
Obvious Baba Adult in the Room

Daily Truth

Adding five people to a late project gives you five new people to ask why it is late.

Multi-Widget Coexistence Proof

Constitution ยง6.1 requires every widget to coexist cleanly beside at least two sibling ecosystem widgets on one host page. Below, obaba-gyan-card runs alongside simulated joq and ewent.ai cards sharing the exact same type-system.css tokens.

Lifecycle: mounted