Skip to content

armgit / avibe

Public Imported from GitHub
0

Make your computer a home for your AI partner. Avibe is the local-first Agent OS: Vibey, its built-in AI partner, works out of the box, and Claude Code, Codex & OpenCode run unchanged beside it — reach them from your browser, phone, or any chat app.

605 B
Raw Blame
// Frames show relative times ("8 minutes ago"), so the design clock is fixed:
// a screenshot taken today and one taken next month are the same picture.
export const DESIGN_NOW = Date.UTC(2026, 10, 1, 8, 0);

export function installFixedClock() {
  const RealDate = Date;
  class FixedDate extends RealDate {
    constructor(...args: ConstructorParameters<typeof Date> | []) {
      if (args.length === 0) super(DESIGN_NOW);
      else super(...(args as ConstructorParameters<typeof Date>));
    }
    static now() {
      return DESIGN_NOW;
    }
  }
  globalThis.Date = FixedDate as DateConstructor;
}