Files
supabase/apps/docs/features/getting-started/GettingStarted.frameworks.ts
Guilherme Souza 51fa9b8e8d docs: mark C# and Kotlin SDKs as official (#54429)
## Problem

The C# and Kotlin client libraries are now official Supabase SDKs.
Several places in the docs and README still call them community
libraries.

## Solution

- **Client libraries page**: move Kotlin from "Community libraries" to
"Official libraries". C# was already listed as official.
- **Kotlin reference intros (v1, v2, v3)**: replace the "not an official
library" note with a note that supabase-kt is official. The thanks to
the original maintainer and contributors stays.
- **Docs nav**: drop the `community: true` flag on the Kotlin entry in
both nav configs.
- **Getting Started stepper**: remove the "Community SDK" badge and the
`isCommunity` field, which only Kotlin used.
- **README**: move the C# and Kotlin rows into the Official section.
- Point supabase-kt links in the changed spots at
`supabase/supabase-kt`.

Not changed:
- Links to repos still in the `supabase-community` org (for example
`postgrest-csharp` and `gotrue-csharp`) and old release-note issue
links.
- `guides/getting-started/features.mdx`. It redirects to `/features`, so
the docs app never serves it.
- The v4 Kotlin note that credits the community for creating
supabase-kt. It's a thank-you, not a claim that the SDK is unofficial.

## Review category (docs PRs only)

- [ ] Critical: needs a review as soon as possible
- [ ] Urgent: the feature ships soon, or it's blocking something else
- [x] Moderate: good to have soon, not urgent
- [ ] Low: get to it when you can

## Review instructions

1. Open `/docs/guides/api/rest/client-libs` and check that Kotlin is in
the official table.
2. Open `/docs/reference/kotlin/introduction` and check that the note no
longer says the library is unofficial.
3. Open the docs nav reference menu and check that Kotlin has no
community marker.
4. Open the Getting Started page, pick the Kotlin quickstart, and check
that no "Community SDK" badge shows.
5. Check the README client libraries table.

## Checklist

- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [ ] If I wrote a new docs topic or edited an existing topic, I used
the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs
[style
guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide)
2026-12-01 14:42:00 -03:00

124 lines
3.2 KiB
TypeScript

import { frameworks } from '~/components/FrameworkQuickstarts.constants'
import { isFeatureEnabled } from 'common/enabled-features'
interface Framework {
slug: string
name: string
icon: string
href: string
hasLightIcon?: boolean
sdk: SdkId
install?: string
}
interface FrameworkGroup {
id: string
label: string
frameworks: Framework[]
}
type SdkId = 'js' | 'dart' | 'swift' | 'kotlin' | 'python' | 'postgres'
// SDKs without an install command defer to the framework quickstart
const SDKS: Record<SdkId, { install?: string }> = {
js: { install: 'npm install @supabase/supabase-js' },
dart: { install: 'flutter pub add supabase_flutter' },
swift: {},
kotlin: {},
python: { install: 'pip install supabase' },
postgres: {},
}
// frameworks not listed here use the JavaScript SDK
const FRAMEWORK_SDKS: Record<string, SdkId> = {
'ios-swiftui': 'swift',
kotlin: 'kotlin',
flutter: 'dart',
flask: 'python',
reflex: 'python',
laravel: 'postgres',
redwoodjs: 'postgres',
'ruby-on-rails': 'postgres',
'spring-boot': 'postgres',
}
const INSTALL_OVERRIDES: Record<string, string> = {
'expo-react-native':
'npx expo install @supabase/supabase-js react-native-url-polyfill expo-sqlite',
tanstack: 'npm install @supabase/supabase-js @supabase/ssr',
reflex: 'uv add supabase',
}
// these quickstarts start from a template that already installs the client
const TEMPLATE_SLUGS = ['nextjs', 'hono', 'refine']
export const FRAMEWORKS: Framework[] = frameworks
.filter((framework) => framework.enabled !== false)
.map((framework) => {
const slug = framework.href.slice(framework.href.lastIndexOf('/') + 1)
const sdk = FRAMEWORK_SDKS[slug] ?? 'js'
return {
slug,
name: framework.name,
icon: framework.icon,
href: framework.href,
hasLightIcon: framework.hasLightIcon,
sdk,
install: TEMPLATE_SLUGS.includes(slug)
? undefined
: (INSTALL_OVERRIDES[slug] ?? SDKS[sdk].install),
}
})
const getFrameworksBySlug = (slugs: string[]): Framework[] =>
slugs.flatMap((slug) => FRAMEWORKS.filter((framework) => framework.slug === slug))
export const FRAMEWORK_GROUPS: FrameworkGroup[] = [
{
id: 'popular',
label: 'Popular',
frameworks: getFrameworksBySlug([
'nextjs',
'reactjs',
'vue',
'sveltekit',
'expo-react-native',
'flutter',
]),
},
{
id: 'fullstack',
label: 'Full stack',
frameworks: getFrameworksBySlug([
'nextjs',
'tanstack',
'astrojs',
'nuxtjs',
'sveltekit',
'redwoodjs',
'reflex',
'laravel',
'ruby-on-rails',
]),
},
{
id: 'frontend',
label: 'Frontend',
frameworks: getFrameworksBySlug(['reactjs', 'vue', 'solidjs', 'refine']),
},
{
id: 'mobile',
label: 'Mobile',
frameworks: getFrameworksBySlug(['expo-react-native', 'flutter', 'ios-swiftui', 'kotlin']),
},
{
id: 'backend',
label: 'Backend',
frameworks: getFrameworksBySlug(['hono', 'flask', 'spring-boot']),
},
].filter((group) => group.frameworks.length > 0 && isFeatureEnabled('docs:framework_quickstarts'))
export const getFramework = (slug: string | null): Framework | undefined =>
FRAMEWORKS.find((framework) => framework.slug === slug)