ApiSchema() — supabase Function Reference
Architecture documentation for the ApiSchema() function in ApiSchema.tsx from the supabase codebase.
Entity Profile
Relationship Graph
Source Code
apps/docs/components/ApiSchema.tsx lines 8–36
const ApiSchema = ({ schema, id }: IParamProps) => {
let example: string | undefined
try {
example = sample(schema, { skipReadOnly: true, quiet: true })
} catch {
example = undefined
}
return (
<Tabs
scrollable
size="small"
type="underlined"
defaultActiveId={example ? 'example' : 'schema'}
>
{example && (
<TabPanel key={`${id ?? ''}-example`} id="example" label="example">
<div className="mt-8">
<CodeBlock lang="bash">{JSON.stringify(example, null, 2)}</CodeBlock>
</div>
</TabPanel>
)}
<TabPanel key={`${id ?? ''}-schema`} id="schema" label="schema">
<div className="mt-8">
<CodeBlock lang="bash">{JSON.stringify(schema, null, 2)}</CodeBlock>
</div>
</TabPanel>
</Tabs>
)
}
Domain
Subdomains
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free