mirror of
https://github.com/supabase/supabase.git
synced 2026-12-06 00:19:08 +00:00
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>
91 lines
12 KiB
Markdown
91 lines
12 KiB
Markdown
<p align="center">
|
|
<img src="https://user-images.githubusercontent.com/8291514/213727234-cda046d6-28c6-491a-b284-b86c5cede25d.png#gh-light-mode-only">
|
|
<img src="https://user-images.githubusercontent.com/8291514/213727225-56186826-bee8-43b5-9b15-86e839d89393.png#gh-dark-mode-only">
|
|
</p>
|
|
|
|
---
|
|
|
|
# सुपाबेस
|
|
|
|
[सुपाबेस](https://supabase.com) एक खुल्ला स्रोत फायरबेस विकल्प हो। हामीले यसमा उद्यम-ग्रेडका खुल्ला स्रोत उपकरणहरू प्रयोग गरेर फायरबेसका सुविधाहरू निर्माण गर्दैछौं।
|
|
|
|
- [x] होस्ट गरिएको Postgres डाटाबेस
|
|
- [x] रियलटाइम सदस्यताहरू
|
|
- [x] प्रमाणीकरण र प्राधिकरण
|
|
- [x] स्वतः गर्न सकिने API हरु
|
|
- [x] ड्यासबोर्ड
|
|
- [x] भण्डारण
|
|
- [x] प्रकार्यहरू
|
|
|
|

|
|
|
|
## कागजात
|
|
|
|
पूर्ण कागजातको लागि [supabase.com/docs](https://supabase.com/docs) मा जानुहोस्
|
|
|
|
## समुदाय र समर्थन सहयोग
|
|
|
|
- [सामुदायिक फोरम](https://github.com/supabase/supabase/discussions)। सर्वोत्कृष्ट: निर्माणको साथ मद्दत, डाटाबेसको उत्तम अभ्यासहरूको बारेमा छलफलको लागि।
|
|
- [गिटहब मुद्दाहरू](https://github.com/supabase/supabase/issues)। सर्वोत्कृष्ट: प्रयोग गर्दा फेला परेका बग र त्रुटिहरूको लागि।
|
|
- [ई-मेल समर्थन](https://supabase.com/docs/support#business-support)। सर्वोत्कृष्ट: तपाईंको डाटाबेस वा पूर्वाधारको समस्याहरूको लागि।
|
|
|
|
## स्थिति
|
|
|
|
- [x] अल्फा: हामी ग्राहकहरु को एक सानो समूह संग सुपाबेस परीक्षण गर्दैछौं।
|
|
- [x] सार्वजनिक अल्फा: सबैले [supabase.com/dashboard](https://supabase.com/dashboard) मा साइनअप गर्न सक्दछन्। तर तपाईं केहि अवरोधहरू प्राप्त गर्न सक्नुहुन्छ।
|
|
- [x] सार्वजनिक बीटा: अधिकतर गैर-उद्यम प्रयोगका मामलाहरुका लागि पर्याप्त स्थिर।
|
|
- [ ] सार्वजनिक: उत्पादन प्रयोगको लागि तयार।
|
|
|
|
हामी हाल सार्वजनिक बिटामा छौं। प्रमुख अद्यावधिकहरूको सूचना प्राप्त गर्न यस रेपोको "रिलिजहरू"मा हेर्नुहोस्।
|
|
|
|
<kbd><img src="https://raw.githubusercontent.com/supabase/supabase/d5f7f413ab356dc1a92075cb3cee4e40a957d5b1/web/static/watch-repo.gif" alt="यो रिपोलाई हेरौ"/></kbd>
|
|
|
|
---
|
|
|
|
## यो कसरी काम गर्दछ
|
|
|
|
सुपाबेस एक खुल्ला स्रोत उपकरणहरूको संयोजन हो। हामी उद्यम-ग्रेड, खुल्ला स्रोत उत्पादनहरू प्रयोग गरेर फायरबेसको सुविधाहरू निर्माण गर्दैछौं। यदि उपकरण र समुदायहरू एमआईटी, अपाचे २ वा बराबरका खुल्ला लाइसेन्सको साथ अवस्थित छन् भने हामी त्यसको प्रयोग र समर्थन गर्दछौं। यदि उपकरण अवस्थित छैन भने, हामी त्यसलाई आफैं सिर्जना गर्छौं र स्रोत खुल्ला गर्छौ । सुपाबेस फायरबेसको १ देखि १ म्यापि होईन। हाम्रो उद्देश्य भनेको विकासकर्ताहरूलाई खुल्ला-स्रोत उपकरणहरू प्रयोग गरेर फायरबेस जस्तो अनुभव दिने हो।
|
|
|
|
**वर्तमान योजना**
|
|
|
|
सुपाबेस एक [होस्ट गरिएको प्लेटफर्म](https://supabase.com/dashboard) हो। तपाई आफै साइन अप गर्न सक्नुहुन्छ र कुनै स्थापना बिना सुपाबेस प्रयोग गर्न सक्नुहुन्छ। हामी अझै स्थानीय विकासको अनुभव सिर्जना गर्दैछौं। यो प्लेटफर्म स्थिरताको साथ हाम्रो मूल फोकस हो।
|
|
|
|

|
|
|
|
- [PostgreSQL](https://www.postgresql.org/) एक वस्तु-रिलेशनल डाटाबेस प्रणाली हो जसले ३० बर्ष भन्दा बढी सक्रिय विकासको साथ विश्वसनीयता, सुविधा मजबूती र प्रदर्शनको बलियो प्रतिष्ठा कमाएको छ।
|
|
- [Realtime](https://github.com/supabase/realtime) एक Elixer सर्भर हो जसले तपाइँलाई वेबसकेटहरू प्रयोग गरेर PostgreSQL इन्सर्टहरू, अपडेटहरु, र डिलीटहरु सुन्न अनुमति दिन्छ। सुपाबेसले पोष्टग्रेसको भित्र निर्मित प्रतिकृति कार्यक्षमता सुन्दछ, प्रतिकृति बाइट स्ट्रिमलाई JSON मा रूपान्तरण गर्दछ, र त्यसपछि JSON लाई वेबसकेटमा प्रसारण गर्दछ।।
|
|
- [PostgREST](http://postgrest.org/) एक वेब सर्वर हो जसले तपाईको PostgreSQL डाटाबेसलाई सीधा एक RESTful एपीआई मा बदल्छ।
|
|
- [Storage](https://github.com/supabase/storage) ले अनुमतिहरू प्रबन्ध गर्न पोष्टग्रेस प्रयोग गरेर S3 मा भण्डारित फाइलहरू प्रबन्ध गर्नका लागि RESTful ईन्टरफेस प्रदान गर्दछ।
|
|
- [postgres-meta](https://github.com/supabase/postgres-meta) तपाईंको Postgres प्रबन्धको लागि RESTful एपीआई हो जसले तपाईंलाई टेबुलहरू प्राप्त गर्न, भूमिकाहरू थप्न र प्रश्नहरू चलाउन र अधिकको लागि अनुमति दिन्छ।
|
|
- [GoTrue](https://github.com/netlify/gotrue) प्रयोगकर्ताहरू प्रबन्ध गर्न र JWT टोकनहरू जारी गर्नका लागि एक JWT आधारित एपीआई हो।
|
|
- [Kong](https://github.com/Kong/kong) एक क्लाउड नेटिभ एपीआई गेटवे हो।
|
|
|
|
#### ग्राहक पुस्तकालयहरू
|
|
|
|
हाम्रो ग्राहक पुस्तकालय मोडुलर छ। प्रत्येक उप-लाइब्रेरी एकल बाह्य प्रणालीको लागि स्ट्यान्डअलोन कार्यान्वयन हो। यो धेरै तरिकाहरू मध्ये एक हो जुन हामी अवस्थित उपकरणहरूलाई समर्थन गर्दछौं।
|
|
|
|
- **`supabase-{lang}`**: लाइब्रेरी संयोजन र संवर्धन थप गर्दछ।
|
|
- `postgrest-{lang}`: ग्राहक पुस्तकालय [PostgREST](https://github.com/postgrest/postgrest) को साथ काम गर्न
|
|
- `realtime-{lang}`: ग्राहक पुस्तकालय [Realtime](https://github.com/supabase/realtime) को साथ काम गर्न
|
|
- `gotrue-{lang}`: ग्राहक पुस्तकालय [GoTrue](https://github.com/netlify/gotrue) को साथ काम गर्न
|
|
|
|
| Repo | आधिकारिक | समुदाय |
|
|
| --------------------- | -------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
| **`supabase-{lang}`** | [`JS`](https://github.com/supabase/supabase-js) | [`C#`](https://github.com/supabase/supabase-csharp) \| [`Flutter`](https://github.com/supabase/supabase-flutter) \| [`Python`](https://github.com/supabase/supabase-py) \| `Rust` |
|
|
| `postgrest-{lang}` | [`JS`](https://github.com/supabase/supabase-js/tree/master/packages/core/postgrest-js) | [`C#`](https://github.com/supabase/postgrest-csharp) \| [`Dart`](https://github.com/supabase/postgrest-dart) \| [`Python`](https://github.com/supabase/postgrest-py) \| [`Rust`](https://github.com/supabase-community/postgrest-rs) |
|
|
| `realtime-{lang}` | [`JS`](https://github.com/supabase/supabase-js/tree/master/packages/core/realtime-js) | [`C#`](https://github.com/supabase/realtime-csharp) \| [`Dart`](https://github.com/supabase/realtime-dart) \| [`Python`](https://github.com/supabase/realtime-py) \| `Rust` |
|
|
| `gotrue-{lang}` | [`JS`](https://github.com/supabase/supabase-js/tree/master/packages/core/auth-js) | [`C#`](https://github.com/supabase/gotrue-csharp) \| [`Dart`](https://github.com/supabase/gotrue-dart) \| [`Python`](https://github.com/supabase/gotrue-py) \| `Rust` |
|
|
|
|
<!--- Remove this list if you're traslating to another language, it's hard to keep updated across multiple files-->
|
|
<!--- Keep only the link to the list of translation files-->
|
|
|
|
## अनुवाद
|
|
|
|
- [अनुवादहरूको सूची](/i18n/languages.md) <!--- Keep only the this-->
|
|
|
|
---
|
|
|
|
## प्रायोजकहरू
|
|
|
|
[](https://github.com/sponsors/supabase)
|