[PR #2564] [CLOSED] feat(docs): Schema visualizer #4380

Closed
opened 2026-03-13 11:43:34 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/2564
Author: @ping-maxwell
Created: 5/6/2025
Status: Closed

Base: mainHead: feat/docs/schema-viewer


📝 Commits (10+)

📊 Changes

18 files changed (+2423 additions, -1575 deletions)

View changed files

📝 docs/app/docs/[[...slug]]/page.tsx (+2 -0)
docs/components/schema-demo-styles.css (+30 -0)
docs/components/schema-demo-table-node.tsx (+215 -0)
docs/components/schema-demo.tsx (+315 -0)
📝 docs/content/docs/plugins/2fa.mdx (+177 -139)
📝 docs/content/docs/plugins/admin.mdx (+29 -41)
📝 docs/content/docs/plugins/anonymous.mdx (+14 -4)
📝 docs/content/docs/plugins/api-key.mdx (+114 -130)
📝 docs/content/docs/plugins/oidc-provider.mdx (+81 -186)
📝 docs/content/docs/plugins/organization.mdx (+363 -441)
📝 docs/content/docs/plugins/passkey.mdx (+31 -58)
📝 docs/content/docs/plugins/phone-number.mdx (+17 -18)
📝 docs/content/docs/plugins/sso.mdx (+135 -103)
📝 docs/content/docs/plugins/stripe.mdx (+42 -89)
📝 docs/content/docs/plugins/username.mdx (+16 -14)
docs/lib/schema-demo-utils.ts (+398 -0)
📝 docs/package.json (+2 -0)
📝 pnpm-lock.yaml (+442 -352)

📄 Description

Adds a schema visualizer UI in the docs to view how a given plugin may modify the dev's schema

Dark mode

image

Light mode

image

Demo

https://github.com/user-attachments/assets/c26e894f-fe65-42f3-9e80-d07f23882035


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/2564 **Author:** [@ping-maxwell](https://github.com/ping-maxwell) **Created:** 5/6/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `feat/docs/schema-viewer` --- ### 📝 Commits (10+) - [`5a194f3`](https://github.com/better-auth/better-auth/commit/5a194f32aa2476b3600df2ce839a3272d52f9de1) WIP: schema demo component - [`274b32a`](https://github.com/better-auth/better-auth/commit/274b32ae4899ed6d41fcc97e01ad011db6ad8519) add: API-Key schema - [`f9ca635`](https://github.com/better-auth/better-auth/commit/f9ca635372b5420b48a921b38e1c28211e53c5ef) update: api-key - [`f4a2e40`](https://github.com/better-auth/better-auth/commit/f4a2e40775e2ae4e9cd61e28362f14a2771a5633) add: 2fa plugin - [`42d3de0`](https://github.com/better-auth/better-auth/commit/42d3de009cbc44e657f80f56d754ac2be20b80c3) add: username plugin - [`6467fba`](https://github.com/better-auth/better-auth/commit/6467fba94ff72f4e5d8eae08456ea534ca47507a) add: anonymous plugin - [`9278d07`](https://github.com/better-auth/better-auth/commit/9278d077cb7a5a97b5f0c2b9906279072741f97b) add: phone-number plugin - [`43a29ae`](https://github.com/better-auth/better-auth/commit/43a29aed66c828f6265616931ea00117699a0bea) add: passkey plugin - [`8b2998e`](https://github.com/better-auth/better-auth/commit/8b2998e8b11ac61e2fc351e5c7632457d5c4c454) add: admin plugin - [`e496fec`](https://github.com/better-auth/better-auth/commit/e496fecab0ba0dad81fe7155ff47265f29f97cf0) add: organization plugin ### 📊 Changes **18 files changed** (+2423 additions, -1575 deletions) <details> <summary>View changed files</summary> 📝 `docs/app/docs/[[...slug]]/page.tsx` (+2 -0) ➕ `docs/components/schema-demo-styles.css` (+30 -0) ➕ `docs/components/schema-demo-table-node.tsx` (+215 -0) ➕ `docs/components/schema-demo.tsx` (+315 -0) 📝 `docs/content/docs/plugins/2fa.mdx` (+177 -139) 📝 `docs/content/docs/plugins/admin.mdx` (+29 -41) 📝 `docs/content/docs/plugins/anonymous.mdx` (+14 -4) 📝 `docs/content/docs/plugins/api-key.mdx` (+114 -130) 📝 `docs/content/docs/plugins/oidc-provider.mdx` (+81 -186) 📝 `docs/content/docs/plugins/organization.mdx` (+363 -441) 📝 `docs/content/docs/plugins/passkey.mdx` (+31 -58) 📝 `docs/content/docs/plugins/phone-number.mdx` (+17 -18) 📝 `docs/content/docs/plugins/sso.mdx` (+135 -103) 📝 `docs/content/docs/plugins/stripe.mdx` (+42 -89) 📝 `docs/content/docs/plugins/username.mdx` (+16 -14) ➕ `docs/lib/schema-demo-utils.ts` (+398 -0) 📝 `docs/package.json` (+2 -0) 📝 `pnpm-lock.yaml` (+442 -352) </details> ### 📄 Description Adds a schema visualizer UI in the docs to view how a given plugin may modify the dev's schema ## Dark mode <img width="1593" alt="image" src="https://github.com/user-attachments/assets/b68c4bcd-711a-4e3c-ad2c-78b4fb2bca9d" /> ## Light mode <img width="898" alt="image" src="https://github.com/user-attachments/assets/76249286-1e33-4cfc-b3bc-1d62bb67fa2f" /> ## Demo https://github.com/user-attachments/assets/c26e894f-fe65-42f3-9e80-d07f23882035 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-03-13 11:43:34 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#4380