Migrate code formatting across the monorepo from Prettier to `oxfmt`
(`0.79.0`, pinned) for much faster formatting checks locally and in CI
while keeping code churn minimal (78 files total, 0.7% of the repo).
Studio's `@ianvs/prettier-plugin-sort-imports` ordering
(`<BUILTIN_MODULES>`, `<THIRD_PARTY_MODULES>`, blank line, then `@/` and
relative imports) is preserved via `oxfmt`'s native `sortImports`
override for `apps/studio/**/*.{js,jsx,ts,tsx}`.
### Performance (before vs after, uncached)
| Benchmark | Prettier (`3.8.x`) | oxfmt (`0.79.0`) | Speedup |
| --- | ---: | ---: | ---: |
| CI formatting step (`blacksmith-4vcpu-ubuntu-2404`, full repo) | `73s`
| **`7s`** | **~10×** |
| Local `apps/studio` JS/TS (`5,157` files) | `17.74s` | **`0.36s`** |
**~49×** |
| Local full monorepo (`11,131` files) | — | **`2.39s`** | — |
**Added:**
- `.oxfmtrc.jsonc` at repo root with Prettier-matching options,
`sortPackageJson: false`, the Studio `sortImports` override, and ignore
patterns migrated from `.prettierignore`
- `oxfmt` (`0.79.0` exact pin) in `pnpm-workspace.yaml` catalog and
workspace `devDependencies` / `dependencies`
- Shared `.agents/scripts/format_and_lint.sh` hook script and
`.agents/hooks.json` (used by both Claude Code and Antigravity)
**Changed:**
- Replaced `test:prettier` with `format:check` and switched `format` in
root `package.json` to `oxfmt`
- Updated `packages/api-types` (`codegen`,
`verify-production-types.mjs`), `apps/design-system` (`build:registry`),
`apps/docs` (`CodeSample.ts`, `generate-sitemap.ts`, `next.config.mjs`,
`spec/Makefile`), `apps/www` (`generate-sitemap.mjs`), and
`packages/build-icons` (`generateIconFiles.mjs`) from Prettier to
`oxfmt`
- Updated `.github/workflows/prettier.yml` (keeping the `format` job ID
intact), `.github/workflows/autofix_linters.yml`,
`.claude/settings.json`, `AGENTS.md`, `CONTRIBUTING.md`, and
`.github/copilot-instructions.md`
- Applied one-time `oxfmt` formatting pass in a separate commit (78
files: 30 `i18n/README.*.md` trailing spaces, 19 Studio files, 17 other
TS/TSX/generated types, 8 MD/MDX, 3 `package.json`, 2 example CSS files)
**Removed:**
- `prettier`, `@ianvs/prettier-plugin-sort-imports`, and
`prettier-plugin-sql-cst` from `devDependencies` (note: `.sql` files
were not part of the CI formatting glob; `eslint-config-prettier` is
kept for ESLint)
- `prettier.config.mjs`, `.prettierignore`, and
`.claude/scripts/format_and_lint.sh`
## To test
- Run `pnpm run format:check` and confirm it passes cleanly across all
matched files
- Run `pnpm --filter api-types test`, `pnpm --filter docs exec vitest
run features/directives/CodeSample.test.ts`, and `pnpm --filter www exec
vitest run generate-sitemap.test.ts`
- Edit an `apps/studio` file with out-of-order imports and run `pnpm run
format` to confirm builtin/third-party vs `@/`/relative grouping matches
prior behavior
- Check that the `Check Code Formatting` CI workflow passes on this PR
---------
Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com>
i18n/languages.md lists Nepali twice. This removes the duplicate entry
(the one after Hungarian, out of alphabetical order), keeping the
correctly placed entry after Malay.
Co-authored-by: hallidayo <22655069+Hallidayo@users.noreply.github.com>
Co-authored-by: Nik Richers <nrichers@gmail.com>
## Context
Lots of links that initially go to 301's within docs / kb. Updates these
to their resolved target.
Ask your Claude Code to review the new destinations programmatically.
---------
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
## I have read the
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
file.
YES
## What kind of change does this PR introduce?
Docs fix.
Fixes#50296, reported by @auroraxo, who offered to send this and was
waiting on a maintainer's go-ahead. Opening it since the finding checks
out and the change is small — happy to close in favor of theirs if
they'd prefer.
## What is the current behavior?
`i18n/README.hr.md` and `i18n/README.si.md` each carry three image
references copied from the root README without adjusting for their
location:
| reference | resolves from `i18n/` to | exists |
| --- | --- | --- |
| `apps/docs/public/img/supabase-architecture.svg` |
`i18n/apps/docs/public/img/supabase-architecture.svg` | no |
| `./apps/www/public/badge-made-with-supabase.svg` |
`i18n/apps/www/public/badge-made-with-supabase.svg` | no |
| `./apps/www/public/badge-made-with-supabase-dark.svg` |
`i18n/apps/www/public/badge-made-with-supabase-dark.svg` | no |
Those paths are correct in the root `README.md`, which is one directory
up. There is no `i18n/apps/` directory, so six images are broken across
the two files.
## What is the new behavior?
Each reference now points at a URL that was checked to return an actual
image:
- **architecture diagram** →
`https://raw.githubusercontent.com/supabase/supabase/master/apps/docs/public/img/supabase-architecture.svg`,
the same `raw.githubusercontent.com` form these two files already use
for the dashboard screenshot at the top
- **badge previews** →
`https://supabase.com/badge-made-with-supabase.svg` and `-dark.svg`,
which is exactly what the markdown and HTML samples directly beneath
them already tell readers to copy
Only the rendered previews change. The samples inside the fenced code
blocks are untouched.
Verified with a request per URL:
```
raw.githubusercontent.com/.../supabase-architecture.svg 200 image/svg+xml
raw.githubusercontent.com/.../supabase-dashboard.png 200 image/png
supabase.com/badge-made-with-supabase.svg 200 image/svg+xml
supabase.com/badge-made-with-supabase-dark.svg 200 image/svg+xml
```
Every image reference in both files now resolves.
## Additional context
Worth flagging separately, and deliberately **not** changed here: most
of the other translations reference the diagram as
```
https://github.com/supabase/supabase/blob/master/apps/docs/public/img/supabase-architecture.svg
```
That URL responds `200 text/html`, not an image — a `/blob/` link is the
file-viewer page rather than the file. So the majority convention
appears to be broken too, just in a different way, which is why this PR
did not adopt it. That affects roughly fifty files and felt like scope
creep on a two-file fix; happy to send a follow-up if you'd like it
swept.
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **Documentation**
* Updated Croatian and Sinhala README images and badges to use hosted
URLs.
* Improved the reliability of architecture diagrams and light/dark “Made
with Supabase” badges across documentation.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
Co-authored-by: Nik Richers <nrichers@gmail.com>
Fixed a few grammatical mistakes in the README.lt.md
## I have read the
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
file.
YES
## What kind of change does this PR introduce?
Just a few grammatical fixes in the readme, really nothing big
## What is the current behavior?
Difficult to read, clearly AI generated sentences
## What is the new behavior?
Not AI generated sentences, slightly easier to read (changed a few
sentences only though)
---------
Co-authored-by: Chris Chinchilla <chris@chrischinchilla.com>
Co-authored-by: Chris Chinchilla <chris.ward@supabase.io>
fixing some issues in the README.ar.md
there are some sentance that are not writen in the file like in the head list,
"Auto-generated APIs.
REST. Docs
GraphQL. Docs
Realtime subscriptions. Docs"
the image of "releases" is not in the right postion