split-free.openapps.xyz

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.
Owned app · rev 9ed962174401
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 20ace674a35b849ffda63b30
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.
← All files
src/main.tsx
// Split's entry. "/" keeps the static landing and mounts the start column into its hero;
// "/g/<id>" hides the landing and shows the group (loaded on demand, with the data client).
import { lazy, Suspense } from "react";
import { createRoot } from "react-dom/client";
import { usePath } from "./lib/router";
import { Toaster } from "./ui";
import { Start } from "./Home";
import { GroupSkeleton } from "./Skeleton";
import "./styles.css";

const GroupPage = lazy(() => import("./Group").then((m) => ({ default: m.GroupPage })));

function App() {
  const path = usePath();
  const group = path.match(/^\/g\/([A-Za-z0-9]{8,32})\/?$/);
  document.documentElement.classList.toggle("app-mode", Boolean(group));
  return (
    <>
      {group ? <Suspense fallback={<GroupSkeleton />}><GroupPage key={group[1]} groupId={group[1]} /></Suspense> : null}
      <Toaster />
    </>
  );
}

createRoot(document.getElementById("app")!).render(<App />);
const startSlot = document.getElementById("create");
if (startSlot) createRoot(startSlot).render(<Start />);

Change history

Publish quality pass from owner chat
9ed9621744 · 5 hours ago
Bind agent address in policy constants
7effc1cbbd · 5 hours ago
Quality pass: cleaner group page, phone polish, fuller API, sourced comparison
5345219781 · 5 hours ago
Bounded source sync
277fb9ad96 · 1 day ago
Bounded source sync
e944552325 · 1 day ago