From 33e47a6e7f8775c8bb3f47a6bf143191293e14e1 Mon Sep 17 00:00:00 2001 From: monarcode Date: Fri, 27 Nov 2026 20:51:22 +0100 Subject: [PATCH] docs: move the docs site to session-kit.monarcode.dev --- CHANGELOG.md | 7 +++++++ README.md | 22 +++++++++++----------- docs/effect.md | 2 +- docs/expo.md | 2 +- docs/next.md | 2 +- docs/react-router-ssr.md | 2 +- docs/react-router.md | 2 +- docs/server-sessions.md | 2 +- docs/tanstack-router.md | 2 +- docs/tanstack-start.md | 2 +- examples/README.md | 8 ++++---- package.json | 2 +- site/PRODUCT.md | 5 +++-- site/src/lib/shared.ts | 2 +- 14 files changed, 35 insertions(+), 27 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7badbb6..fc2a04b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## Unreleased + +### Changed + +- The documentation site moved to https://session-kit.monarcode.dev. The old + address, https://session-kit.pages.dev, still serves it. + ## 0.1.0-rc.3 Fixes for Expo SDK 53 to 57 and for redirects on React Native, and a diff --git a/README.md b/README.md index 4a49e2c..9139cd2 100644 --- a/README.md +++ b/README.md @@ -7,13 +7,13 @@ [![provenance](https://img.shields.io/badge/provenance-verified-brightgreen?logo=npm)](https://www.npmjs.com/package/@monarcode/session-kit#provenance) [![license](https://img.shields.io/npm/l/@monarcode/session-kit)](./LICENSE) -[![React](https://img.shields.io/badge/React-20232a?logo=react&logoColor=61dafb)](https://session-kit.pages.dev/docs/getting-started) -[![TanStack Router](https://img.shields.io/badge/TanStack%20Router-20232a?logo=tanstack&logoColor=white)](https://session-kit.pages.dev/docs/setups/tanstack-router) -[![TanStack Start](https://img.shields.io/badge/TanStack%20Start-20232a?logo=tanstack&logoColor=white)](https://session-kit.pages.dev/docs/setups/tanstack-start) -[![React Router](https://img.shields.io/badge/React%20Router-20232a?logo=reactrouter&logoColor=ca4245)](https://session-kit.pages.dev/docs/setups/react-router) -[![Next.js](https://img.shields.io/badge/Next.js-20232a?logo=nextdotjs&logoColor=white)](https://session-kit.pages.dev/docs/setups/next) -[![Expo](https://img.shields.io/badge/Expo-20232a?logo=expo&logoColor=white)](https://session-kit.pages.dev/docs/setups/expo) -[![Effect](https://img.shields.io/badge/Effect-20232a?logo=effect&logoColor=white)](https://session-kit.pages.dev/docs/effect) +[![React](https://img.shields.io/badge/React-20232a?logo=react&logoColor=61dafb)](https://session-kit.monarcode.dev/docs/getting-started) +[![TanStack Router](https://img.shields.io/badge/TanStack%20Router-20232a?logo=tanstack&logoColor=white)](https://session-kit.monarcode.dev/docs/setups/tanstack-router) +[![TanStack Start](https://img.shields.io/badge/TanStack%20Start-20232a?logo=tanstack&logoColor=white)](https://session-kit.monarcode.dev/docs/setups/tanstack-start) +[![React Router](https://img.shields.io/badge/React%20Router-20232a?logo=reactrouter&logoColor=ca4245)](https://session-kit.monarcode.dev/docs/setups/react-router) +[![Next.js](https://img.shields.io/badge/Next.js-20232a?logo=nextdotjs&logoColor=white)](https://session-kit.monarcode.dev/docs/setups/next) +[![Expo](https://img.shields.io/badge/Expo-20232a?logo=expo&logoColor=white)](https://session-kit.monarcode.dev/docs/setups/expo) +[![Effect](https://img.shields.io/badge/Effect-20232a?logo=effect&logoColor=white)](https://session-kit.monarcode.dev/docs/effect) **Every sign-in ends in a session. Make yours type-safe and predictable.** @@ -31,7 +31,7 @@ server with TanStack Start, Next.js, and React Router, and comes with an > **Release candidate.** The API is frozen for 0.1, and later 0.1 releases > only add to it. See the [release notes](./CHANGELOG.md). -**Documentation: [session-kit.pages.dev](https://session-kit.pages.dev)** +**Documentation: [session-kit.monarcode.dev](https://session-kit.monarcode.dev)** ## Installation @@ -45,7 +45,7 @@ Any [Standard Schema](https://standardschema.dev) library describes users. The examples use Zod. Peer dependencies such as React and your router are optional: install the ones your setup uses. Session kit needs TypeScript 5.4 or newer (Effect asks for 5.9), and -[Compatibility](https://session-kit.pages.dev/docs/reference/compatibility) +[Compatibility](https://session-kit.monarcode.dev/docs/reference/compatibility) lists the supported versions. Release candidates are published to the `latest` tag, so pin an exact version @@ -165,14 +165,14 @@ function Home() { To call your API, `createAuthFetch` from `@monarcode/session-kit/http` adds the access token to each request and refreshes it after a 401. -[Getting started](https://session-kit.pages.dev/docs/getting-started) builds +[Getting started](https://session-kit.monarcode.dev/docs/getting-started) builds this app step by step against a real test backend, and the setup guides add your router's guards or server rendering. ## Pick your setup Each setup, from plain React to Next.js, Expo Router and Effect, has a guide: -see [Pick your setup](https://session-kit.pages.dev/docs/installation#pick-your-setup). +see [Pick your setup](https://session-kit.monarcode.dev/docs/installation#pick-your-setup). Every setup but plain React has a runnable app in [`examples/`](./examples). ## Contributing diff --git a/docs/effect.md b/docs/effect.md index 4fc7e68..86e832a 100644 --- a/docs/effect.md +++ b/docs/effect.md @@ -1,3 +1,3 @@ # Effect and effetch -This guide moved to the documentation site: [Effect and effetch](https://session-kit.pages.dev/docs/effect). +This guide moved to the documentation site: [Effect and effetch](https://session-kit.monarcode.dev/docs/effect). diff --git a/docs/expo.md b/docs/expo.md index 496ca89..9dbef72 100644 --- a/docs/expo.md +++ b/docs/expo.md @@ -1,3 +1,3 @@ # Expo Router -This guide moved to the documentation site: [Expo Router](https://session-kit.pages.dev/docs/setups/expo). +This guide moved to the documentation site: [Expo Router](https://session-kit.monarcode.dev/docs/setups/expo). diff --git a/docs/next.md b/docs/next.md index f6e12d3..a2de2c7 100644 --- a/docs/next.md +++ b/docs/next.md @@ -1,3 +1,3 @@ # Next.js -This guide moved to the documentation site: [Next.js](https://session-kit.pages.dev/docs/setups/next). +This guide moved to the documentation site: [Next.js](https://session-kit.monarcode.dev/docs/setups/next). diff --git a/docs/react-router-ssr.md b/docs/react-router-ssr.md index d8a1c08..2a94dd4 100644 --- a/docs/react-router-ssr.md +++ b/docs/react-router-ssr.md @@ -1,3 +1,3 @@ # React Router with server rendering -This guide moved to the documentation site: [React Router with server rendering](https://session-kit.pages.dev/docs/setups/react-router-ssr). +This guide moved to the documentation site: [React Router with server rendering](https://session-kit.monarcode.dev/docs/setups/react-router-ssr). diff --git a/docs/react-router.md b/docs/react-router.md index 6b998ce..f4b7a6a 100644 --- a/docs/react-router.md +++ b/docs/react-router.md @@ -1,3 +1,3 @@ # React Router -This guide moved to the documentation site: [React Router](https://session-kit.pages.dev/docs/setups/react-router). +This guide moved to the documentation site: [React Router](https://session-kit.monarcode.dev/docs/setups/react-router). diff --git a/docs/server-sessions.md b/docs/server-sessions.md index 0a3d6f3..e6f532e 100644 --- a/docs/server-sessions.md +++ b/docs/server-sessions.md @@ -1,3 +1,3 @@ # Server sessions -This guide moved to the documentation site: [Server sessions](https://session-kit.pages.dev/docs/server-rendering/server-sessions). +This guide moved to the documentation site: [Server sessions](https://session-kit.monarcode.dev/docs/server-rendering/server-sessions). diff --git a/docs/tanstack-router.md b/docs/tanstack-router.md index 108de9e..1b44e61 100644 --- a/docs/tanstack-router.md +++ b/docs/tanstack-router.md @@ -1,3 +1,3 @@ # TanStack Router -This guide moved to the documentation site: [TanStack Router](https://session-kit.pages.dev/docs/setups/tanstack-router). +This guide moved to the documentation site: [TanStack Router](https://session-kit.monarcode.dev/docs/setups/tanstack-router). diff --git a/docs/tanstack-start.md b/docs/tanstack-start.md index f5ab41e..0327b4b 100644 --- a/docs/tanstack-start.md +++ b/docs/tanstack-start.md @@ -1,3 +1,3 @@ # TanStack Start -This guide moved to the documentation site: [TanStack Start](https://session-kit.pages.dev/docs/setups/tanstack-start). +This guide moved to the documentation site: [TanStack Start](https://session-kit.monarcode.dev/docs/setups/tanstack-start). diff --git a/examples/README.md b/examples/README.md index 9c656b1..d0d8d58 100644 --- a/examples/README.md +++ b/examples/README.md @@ -71,7 +71,7 @@ run ios` and `run android` build it natively. In CI it is only bundled, with and the profile query, which `src/ui.tsx` uses with `useMutation` and `useQuery`, and the root route gives each session its own query cache. The hooks and the guards are the SPA app's. See - [the guide](https://session-kit.pages.dev/docs/effect). + [the guide](https://session-kit.monarcode.dev/docs/effect). - **TanStack Start with server rendering** keeps the session in an encrypted `httpOnly` cookie with `createServerAuth` (`src/auth/server.ts`), signs in with DummyJSON from a server function, and refreshes in request middleware @@ -84,7 +84,7 @@ run ios` and `run android` build it natively. In CI it is only bundled, with `vite dev` uses a development secret. The cookie is `Secure` outside `vite dev`, which Safari refuses over `http://localhost`: try `vite preview` in another browser. See - [the guide](https://session-kit.pages.dev/docs/setups/tanstack-start). + [the guide](https://session-kit.monarcode.dev/docs/setups/tanstack-start). - **Next.js** keeps the session the same way: Proxy refreshes it (`proxy.ts`), Server Components read it through `lib/auth/session.ts`, and a Server Function in `app/actions.ts` signs in. `useMirrorAuth` in @@ -93,7 +93,7 @@ run ios` and `run android` build it natively. In CI it is only bundled, with redirects run. The browser reads the session, signs out and gets the access token through the session route (`app/api/session/route.ts`). `SESSION_SECRET` and Safari work as for TanStack Start, with `next start` - and `next dev`. See [the guide](https://session-kit.pages.dev/docs/setups/next). + and `next dev`. See [the guide](https://session-kit.monarcode.dev/docs/setups/next). - **React Router with server rendering** keeps the session the same way. The root route's `sessionMiddleware` gives each request a cookie jar and refreshes, the root loader reads the session, and the sign-in route's @@ -104,7 +104,7 @@ run ios` and `run android` build it natively. In CI it is only bundled, with session, signs out and gets the access token through the session route in `app/routes/auth.session.ts`. `SESSION_SECRET` and Safari work as for TanStack Start, with `pnpm start` (after `pnpm build`) and `react-router dev`. See - [the guide](https://session-kit.pages.dev/docs/setups/react-router-ssr). + [the guide](https://session-kit.monarcode.dev/docs/setups/react-router-ssr). - **Expo Router** saves the session with `secureStorage()`. `SessionGate` in `app/_layout.tsx` holds the splash screen, shows `src/unavailable.tsx` after a failed refresh, and re-checks the session when the app returns to diff --git a/package.json b/package.json index 7a5d58e..3d7dc6b 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,7 @@ "tanstack", "tanstack-start" ], - "homepage": "https://session-kit.pages.dev", + "homepage": "https://session-kit.monarcode.dev", "bugs": { "url": "https://github.com/monarcode/session-kit/issues" }, diff --git a/site/PRODUCT.md b/site/PRODUCT.md index 0a76ab2..0b3ee4c 100644 --- a/site/PRODUCT.md +++ b/site/PRODUCT.md @@ -81,8 +81,9 @@ those same checked examples, so the code shown is code that compiles. identifier (the npm name, URLs, paths). Use the reader's words ("signed in", "the saved session", "another tab", "the access token expired"), never engine names such as epoch, revision or flight. -- Undecided: the site's final URL. `https://session-kit.pages.dev` is assumed - until the Cloudflare Pages project or a custom domain is set. +- The site's URL is `https://session-kit.monarcode.dev`, a custom domain on + the Cloudflare Pages project. `https://session-kit.pages.dev` still serves + it. ## Brand Commitments diff --git a/site/src/lib/shared.ts b/site/src/lib/shared.ts index 8725e9c..8bc2012 100644 --- a/site/src/lib/shared.ts +++ b/site/src/lib/shared.ts @@ -16,7 +16,7 @@ export const codeThemes = { } as const; /** Where the site is served. Link previews need absolute URLs. */ -export const SITE_URL = "https://session-kit.pages.dev"; +export const SITE_URL = "https://session-kit.monarcode.dev"; /** A page's title and description, for the browser and for link previews. */ export function pageMeta(title: string, description: string) {