8000 docs: Add XMLUI quickstart guide by judell · Pull Request #42223 · supabase/supabase · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@judell
Copy link
@judell judell commented Jan 27, 2026

I have read the CONTRIBUTING.md file.

YES

What kind of change does this PR introduce?

Adds an XMLUI quickstart guide. XMLUI is a declarative UI framework that makes it easy to build data-driven apps. This quickstart shows how to connect an XMLUI app to Supabase and display data from the database.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • New Features

    • Added an XMLUI quickstart guide: a five-step tutorial to set up and run a Supabase + XMLUI project with code samples and run commands.
  • Documentation

    • Included XMLUI in the Framework quickstarts on the Getting Started pages so it appears alongside other quickstart options.

✏️ Tip: You can customize this high-level summary in your review settings.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@github-actions github-actions bot added the documentation Improvements or additions to documentation label Jan 27, 2026
@github-actions
Copy link
Contributor

Thanks for contributing to Supabase! ❤️ Our team will review your PR.

A few tips for a smoother review process:

  • If you have a local version of the repo, run pnpm run format to make sure formatting checks pass.
  • Once we've reviewed your PR, please don't trivially merge master (don't click Update branch if there are no merge conflicts to be fixed). This invalidates any pre-merge checks we've run.

@vercel
Copy link
vercel bot commented Jan 27, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
design-system Ready Ready Preview, Comment Jan 28, 2026 9:12pm

Request Review

@vercel
Copy link
vercel bot commented Jan 27, 2026

@judell is attempting to deploy a commit to the Supabase Team on Vercel.

A member of the Team first needs to authorize it.

@coderabbitai
Copy link
Contributor
coderabbitai bot commented Jan 27, 2026

Walkthrough

Adds an XMLUI framework quickstart: a navigation menu entry, two quickstart list items in the Getting Started page, and a new MDX guide with a five-step Supabase + XMLUI tutorial.

Changes

Cohort / File(s) Summary
Navigation configuration
apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts
Adds a new "XMLUI" entry to the Framework Quickstarts navigation section.
Getting Started quickstarts
apps/docs/content/guides/getting-started.mdx
Inserts the XMLUI quickstart item into two Framework quickstart lists (title, href, description, icon, enabled flag).
XMLUI quickstart guide
apps/docs/content/guides/getting-started/quickstarts/xmlui.mdx
Adds a new MDX guide "Use Supabase with XMLUI" containing a five-step tutorial with code and instructions for setup, config, and running locally.

Possibly related PRs

Suggested reviewers

  • ChrisChinchilla
  • gregnr
🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The pull request title clearly summarizes the main change: adding a quickstart guide for XMLUI, which is the primary objective of this PR.
Description check ✅ Passed The description addresses all required template sections: confirms reading CONTRIBUTING.md, specifies the change type (docs update), provides context about XMLUI and its purpose, and explains what the quickstart demonstrates.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Contributor
@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Fix all issues with AI agents
In `@apps/docs/content/guides/getting-started/quickstarts/xmlui.mdx`:
- Around line 34-35: Replace the unstable CDN script tag loading
"https://xmlui.org/xmlui.js" with the official distribution: either reference a
versioned local bundle filename like "xmlui/<version>.js" (e.g.,
xmlui/0.9.23.js) so upgrades are controlled, or switch to the npm package by
importing from "xmlui" in your build pipeline; update the script tag or import
accordingly and remove the direct CDN URL to avoid the 30s cache endpoint.
🧹 Nitpick comments (1)
apps/docs/content/guides/getting-started/quickstarts/xmlui.mdx (1)

91-94: Consider using Supabase's standard terminology for the anon key.

The placeholder uses supabasePublishableKey, but Supabase documentation and dashboard consistently use "anon key" or SUPABASE_ANON_KEY. This inconsistency might confuse users who see "anon key" in their Supabase dashboard.

📝 Suggested terminology alignment
       {
         "appGlobals": {
           "supabaseUrl": "<SUBSTITUTE_SUPABASE_URL>",
-          "supabasePublishableKey": "<SUBSTITUTE_SUPABASE_PUBLISHABLE_KEY>"
+          "supabaseAnonKey": "<SUBSTITUTE_SUPABASE_ANON_KEY>"
         }
       }

This would also require updating the references in Main.xmlui (lines 62-63) to use appGlobals.supabaseAnonKey.

Comment on lines 34 to 35
<script src="https://cdn.jsdelivr.net/npm/@supabase/supabase-js@2"></script>
<script src="https://xmlui.org/xmlui.js"></script>
Copy link
Contributor
@coderabbitai coderabbitai bot Jan 27, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Verify the XMLUI script URL is accessible
curl -sI "https://xmlui.org/xmlui.js" | head -10

Repository: supabase/supabase

Length of output: 398


🌐 Web query:

XMLUI JavaScript library CDN documentation official

💡 Result:

XMLUI’s official docs don’t document an “official CDN URL” for loading the engine. Instead, they show (and recommend) shipping the standalone engine file with your app in a versioned xmlui/ folder and referencing it locally, e.g. <script src="xmlui/0.9.23.js"></script>, and they recommend keeping the version number in the filename so you can control upgrades. [1]

If you’re looking for the “official place” the library is published for distribution, there is also an npm package named xmlui (repo: xmlui-org/xmlui). [2]

Sources:
[1] https://docs.xmlui.org/app-structure
[2] https://www.npmjs.com/package/xmlui/v/0.9.50


Use the official distribution method for XMLUI instead of the CDN endpoint.

The XMLUI official documentation does not recommend loading from https://xmlui.org/xmlui.js. The recommended approach is to bundle the engine locally with a version number in the filename (e.g., xmlui/0.9.23.js) for controlled upgrades. Alternatively, use the npm package (xmlui). The current CDN URL has a short cache-control window (30 seconds) and is not intended for stable production use.

🤖 Prompt for AI Agents
In `@apps/docs/content/guides/getting-started/quickstarts/xmlui.mdx` around lines
34 - 35, Replace the unstable CDN script tag loading
"https://xmlui.org/xmlui.js" with the official distribution: either reference a
versioned local bundle filename like "xmlui/<version>.js" (e.g.,
xmlui/0.9.23.js) so upgrades are controlled, or switch to the npm package by
importing from "xmlui" in your build pipeline; update the script tag or import
accordingly and remove the direct CDN URL to avoid the 30s cache endpoint.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Although XMLUI is available as an NPM module we want to show that it can be used in a more basic way. This is how we show that on our docs site.

image

8000 Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@judell, thank you for the clarification! That makes perfect sense for a quickstart guide. Using the CDN approach demonstrates the simplest possible way to get started with XMLUI, which is exactly what beginners need. The direct script tag is much more accessible than requiring npm setup and a build pipeline.

I appreciate you showing how it's documented on the XMLUI docs site as well. The CDN approach is the right choice here for the quickstart context.


✏️ Learnings added
Learnt from: judell
Repo: supabase/supabase PR: 42223
File: apps/docs/content/guides/getting-started/quickstarts/xmlui.mdx:34-35
Timestamp: 2026-01-27T23:05:15.115Z
Learning: For XMLUI quickstart guides in the Supabase documentation, prefer the CDN approach (`https://xmlui.org/xmlui.js`) over npm to demonstrate the simplest, most accessible usage pattern for beginners, even though npm installation is available.

Note: Learnings are effective only in the context of similar code segments. To apply general coding guidelines, please configure review instructions. You can manage existing learnings in the app.

@judell
Copy link
Author
judell commented Jan 28, 2026

The CDN approach is the right choice here for the quickstart context.

We realize that there should also be cdn.xmlui.org, I've asked for that be made available and will update accordingly, please hold until I confirm that's done. Thanks!

Update: Done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0