Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
import { flushSync } from "react-dom";
import { reducedMotion } from "@/lib/onboarding";
export function withViewTransition(update: () => void): ViewTransition | null {
if (reducedMotion() || typeof document.startViewTransition !== "function") {
update();
return null;
}
return document.startViewTransition(() => {
flushSync(update);
});
}