SSGOI
Native app-like page transitions for mobile web apps, PWAs, and WebView apps.
Router agnostic · Cross-browser · SSR ready · Web Animations API powered
Live showcase · Documentation
| Drill | Sheet |
|---|
 |  |
| Navigate through a mobile app with spatial depth | Present focused tasks above the current page |
Why SSGOI?
| |
|---|
| Router agnostic | Keep your existing router and let it own navigation. |
| Cross-browser | Use the same transitions across Chrome, Safari, Firefox, and Edge. |
| Optimized motion | Spring physics are precomputed into Web Animations API keyframes. |
| Beyond the View Transition API | Build transitions that need live DOM, runtime layers, and precise geometry. |
| Easy to adopt | Add SSGOI by changing only two files. |
Set it up with one link
Give this URL to Claude, Codex, Cursor, or another coding agent:
https://ssgoi.dev/llms.txt
It contains the full setup for React and Next.js, Svelte and SvelteKit, Vue and
Nuxt, Solid and SolidStart, Angular, and Qwik.
Or install the agent plugin
The same mobile-web-app skill works in Codex and Claude Code.
Codex:
codex plugin marketplace add meursyphus/ssgoi
codex plugin add ssgoi@ssgoi
Claude Code:
claude plugin marketplace add meursyphus/ssgoi
claude plugin install ssgoi@ssgoi
Then ask the agent to apply SSGOI to the current mobile web app. The skill reads
the canonical llms.txt, selects the matching framework guide, and follows the
app's existing router and layout structure.
Or add it in just two files
The Next.js setup is one config, one provider that knows how to read the
Next.js route, and one ready-made layout boundary.
npm install @ssgoi/react
// app/ssgoi-provider.tsx
"use client";
import { type ReactNode } from "react";
import { usePathname, useSelectedLayoutSegments } from "next/navigation";
import { Ssgoi, type SsgoiFramework } from "@ssgoi/react";
import { drill } from "@ssgoi/react/view-transitions";
const config = {
transitions: [{ on: "/**", except: "/", transition: drill() }],
};
const INTERCEPTION_PREFIX = /^(?:\(\.\.\.\)|\(\.\.\)|\(\.\))+/;
const framework: SsgoiFramework = {
useRoute: () => {
const pathname = usePathname();
// The page the children slot renders. During a soft intercept it is still
// the background page, so no background boundary moves.
const segments = useSelectedLayoutSegments();
if (pathname == null) return null;
const renderedPath = `/${segments
.filter((segment) => !(segment.startsWith("(") && segment.endsWith(")")))
.map((segment) => segment.replace(INTERCEPTION_PREFIX, ""))
.filter(Boolean)
.join("/")}`;
return { pathname, renderedPath };
},
};
export function SsgoiProvider({ children }: { children: ReactNode }) {
return (
<Ssgoi config={config} framework={framework}>
{children}
</Ssgoi>
);
}
Import the layout boundary from the same package. It takes no props: the first
boundary reads the route for the ones inside it (and throws without a
framework), and
renderedPath keeps an intercepted modal's background in place:
import { SsgoiLayoutBoundary } from "@ssgoi/react";
<SsgoiLayoutBoundary>{children}</SsgoiLayoutBoundary>;