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>
12 KiB
સુપાબેઝ
સુપાબેઝ ફાયરબેઝ માટે એક ઓપન-સોર્સ વિકલ્પ છે. અમે એન્ટરપ્રાઇઝ-ગ્રેડ ઓપન સોર્સ ટૂલ્સનો ઉપયોગ કરીને ફાયરબેઝની સુવિધાઓ બનાવી રહ્યા છીએ.
- હોસ્ટેડ પોસ્ટગ્રેસ ડેટાબેઝ
- રીઅલટાઇમ સબ્સ્ક્રિપ્શન્સ
- ઓથેન્ટિકેશન અને ઓથોરાઇઝેશન
- સ્વત.-પેદા APIs
- ડેશબોર્ડ
- સ્ટોરેજ
- ફંક્શન્સ
દસ્તાવેજીકરણ
સંપૂર્ણ દસ્તાવેજીકરણ માટે, મુલાકાત લો supabase.com/docs
સમુદાય અને મદદ
- સમુદાય મંચ. આ માટે શ્રેષ્ઠ: બિલ્ડિંગમાં સહાય, ડેટાબેઝની શ્રેષ્ઠ પદ્ધતિઓ વિશેની ચર્ચા.
- ગિટહબ ઇસ્યુઝ. આ માટે શ્રેષ્ઠ: સુપાબેઝ વાપરતી વખતે તમને જે બગ્ઝ અને એરર્સ મળે.
- ઇમેઇલ સહાય. આ માટે શ્રેષ્ઠ: તમારા ડેટાબેઝ અથવા ઇન્ફ્રાસ્ટ્રક્ચર સાથેની સમસ્યાઓ.
- ડીસ્કોર્ડ. આ માટે શ્રેષ્ઠ: તમારી એપ્લિકેશનો શેર કરવા માટે અને સમુદાયને મળવા માટે.
સ્થિતિ
- આલ્ફા: અમે ગ્રાહકોના બંધ સમૂહ સાથે સુપાબેઝનું પરીક્ષણ કરી રહ્યા છીએ
- જાહેર આલ્ફા: કોઈ પણ supabase.com/dashboard પર જઈને સાઈન-અપ કરી શકે છે. પણ થોડો સંયમ રાખશો, હજુ અમુક સમસ્યાઓ છે
- જાહેર બીટા: મોટાભાગના નોન-એન્ટરપ્રાઇઝ યુઝ-કેસેટ્સ માટે અનુરૂપ
- જાહેર: પ્રોડક્શન માટે તૈયાર
અમે હાલમાં જાહેર બીટામાં છીએ. અગત્યના સુધારાઓ વિશે સૂચિત થવા માટે આ રીપોના "રિલિઝિસ" જુઓ.
આ કઈ રીતે કામ કરે છે
સુપાબેઝ ઓપન સોર્સ ટૂલ્સનું સંયોજન છે. અમે એન્ટરપ્રાઇઝ-ગ્રેડ, ઓપન સોર્સ ઉત્પાદનોનો ઉપયોગ કરીને ફાયરબેઝની સુવિધાઓ બનાવી રહ્યા છીએ. જો સાધનો અને સમુદાયો અસ્તિત્વમાં હોય, MIT, અપાચે 2 અથવા સમકક્ષ ઓપન સોર્સ લાઇસેંસ સાથે, અમે તે ટૂલનો ઉપયોગ કરીશું અને તેને ટેકો આપીશું. જો સાધન અસ્તિત્વમાં ના હોય, તો અમે તેને જાતે બનાવીએ છીએ અને જાહેર કરીએ છીએ. સુપરબેઝ ફાયરબેઝનું 1-to-1 મેપિંગ નથી. અમારો હેતુ ડેવેલોપર્સને ઓપન સોર્સ ટૂલ્સનો ઉપયોગ કરીને ફાયરબેસ જેવો અનુભવ આપવાનો છે.
વર્તમાન સ્થાપત્ય
સુપાબેઝ એક હોસ્ટેડ પ્લેટફોર્મ છે. તમે સાઇન અપ કરી શકો છો અને કંઈપણ ઇન્સ્ટોલ કર્યા વગર સુપાબેઝનો ઉપયોગ શરૂ કરી શકો છો. અમે હજી પણ સ્થાનિક ડેવલપમેન્ટ અનુભવ બનાવી રહ્યા છીએ - પ્લેટફોર્મ સ્થિરતાની સાથે હવે આ અમારું મુખ્ય લક્ષ્ય છે.
- PostgreSQL એક ઓબ્જેક્ટ-રિલેશનલ ડેટાબેઝ સિસ્ટમ છે જેમાં 30 વર્ષથી વધુ સક્રિય વિકાસ છે જેણે તેને વિશ્વસનીયતા, લક્ષણ મજબુતાઇ અને પ્રદર્શન માટે મજબૂત પ્રતિષ્ઠા પ્રાપ્ત કરી છે
- Realtime એલિક્સિર સર્વર છે જે તમને વેબસોકેટનો ઉપયોગ કરીને PostgreSQL દાખલ, અપડેટ્સ અને ડીલીટ માટે પરવાનગી આપે છે. સુપાબેઝ Postgresની બિલ્ટ-ઇન પ્રતિકૃતિ વિધેયને સાંભળે છે, પ્રતિકૃતિ બાઇટ પ્રવાહને JSON માં ફેરવે છે, પછી વેબસોકેટ્સ પર JSON પ્રસારિત કરે છે.
- PostgREST એક વેબ સર્વર છે જે તમારા પોસ્ટગ્રેસ્ક્યુએલ ડેટાબેસને સીધું REST API માં ફેરવે છે
- Storage પરવાનગીઓને સંચાલિત કરવા પોસ્ટગ્રાસનો ઉપયોગ કરીને એસ 3 માં સ્ટોર કરેલી ફાઇલોને સંચાલિત કરવા માટે REST ઇન્ટરફેસ પ્રદાન કરે છે.
- postgres-meta તમારા Postgresને સંચાલિત કરવા, કોષ્ટકો જોવા, ભૂમિકાઓ ઉમેરવા અને ક્વેરીઝ ચલાવવા વગેરે માટેની એક REST API છે.
- GoTrue વપરાશકર્તાઓને સંચાલિત કરવા અને SWT ટોકન્સ ઇશ્યૂ કરવા માટે એક SWT આધારિત API છે.
- Kong કલાઉડ માટે API ગેટવે છે.
ક્લાયન્ટ લાઇબ્રેરીઓ
અમારી ક્લાયંટ લાઇબ્રેરી મોડ્યુલર છે. દરેક સબ-લાઇબ્રેરી એ એક બાહ્ય સિસ્ટમ માટે એકલ અમલીકરણ છે. હાલના સાધનોને સમર્થન આપવાની અમારી આ એક રીત છે.
supabase-{lang}: લાઇબ્રેરીઝને જોડે છે અને સમૃધ્ધિ ઉમેરે છે.
| રીપો | ઓફિશ્યિલ | સમુદાય |
|---|---|---|
supabase-{lang} |
JS |
C# | Flutter | Python | Rust | Ruby | Go |
postgrest-{lang} |
JS |
C# | Dart | Python | Rust | Ruby | Go |
realtime-{lang} |
JS |
C# | Dart | Python | Rust | Ruby | Go |
gotrue-{lang} |
JS |
C# | Dart | Python | Rust | Ruby | Go |




