Source
This app’s code and revision history are public. Download a copy or explore the files below.
Public
The app’s code and revision history are public.
Run it yourself
Take the whole tree and run it on your own machine. The download needs no account. Cloning needs a sign-in.
Download .zip
bounded clone ee59501e91bae6d2c23a8370
A copy you download is not bounded. The guarantees this app runs under - declared egress, proven invariants, writes that fail closed - live in the runtime serving this page, not in the files. What you get is auditable source you can read and run, with no runtime guarantees attached.
src/main.tsx
// Lists' entry. "/" keeps the static landing and mounts the start card into its hero; the landing
// never loads the Bounded SDK. /lists (your lists) and /l/<id> (a list, its share link and its
// admin link) hide the landing and load the app.
import { lazy, Suspense } from "react";
import { createRoot } from "react-dom/client";
import { usePath } from "./lib/router";
import { Toaster } from "./ui";
import { Start } from "./Start";
import "./styles.css";
const App = lazy(() => import("./App"));
const APP_ROUTE = /^\/(lists|l\/[A-Za-z0-9]{20}(\/admin)?)\/?$/;
const LANDING_TITLE = document.title;
function Root() {
const path = usePath();
const inApp = APP_ROUTE.test(path);
document.body.classList.toggle("app-mode", inApp);
if (!inApp) document.title = LANDING_TITLE;
return (
<>
{inApp && (
<Suspense fallback={<div className="page"><div className="loading"><span className="spinner" /></div></div>}>
<App path={path.replace(/\/$/, "")} />
</Suspense>
)}
<Toaster />
</>
);
}
createRoot(document.getElementById("app")!).render(<Root />);
const startSlot = document.getElementById("start");
if (startSlot) createRoot(startSlot).render(<Start />);
if (import.meta.env.PROD && "serviceWorker" in navigator) {
window.addEventListener("load", () => void navigator.serviceWorker.register("/sw.js").catch(() => null));
}
const head = document.querySelector(".site-head");
const onScroll = () => head?.classList.toggle("scrolled", window.scrollY > 4);
window.addEventListener("scroll", onScroll, { passive: true });
onScroll();
Change history
Point OpenApps links to openapps.free
Bind agent address in policy constants
Use OpenApps service URLs and add contribution strip
Bounded source sync
Bounded source sync
Bounded source sync