Open-Source Wikis

/

Supabase

/

Packages

/

shared-data

supabase/supabase

shared-data

Static, shared data and metadata used across multiple apps. Imported via the 'shared-data' alias.

Purpose

A read-only data island for things multiple apps need to agree on without each maintaining its own copy:

  • Top-level navigation / sidebar metadata.
  • Marketing constants (counts, dates, social URLs).
  • Curated lists for landing pages and customer stories.
  • Public-page links between apps (docswwwstudio).
  • Sample SQL snippets and example datasets used in docs and Studio.

Directory layout

packages/shared-data/
└── (TS modules exporting plain data objects)

The package is intentionally flat. Each module owns one concern (e.g. solutions.ts, customers.ts) and exports a typed array or object literal.

How it works

Apps import what they need:

import { customers } from 'shared-data/customers';
import { solutions } from 'shared-data/solutions';

Because the data is pure TS, it is type-checked and tree-shaken — apps only pull what they reference.

Integration points

Entry points for modification

  • New shared dataset → add a TS file with a typed export and a unit test if behavior is non-trivial.
  • Update an existing one → change the data; downstream apps pick it up on next build.

Built by Factory AutoWiki from public repository content. It is a generated preview for codebase exploration, not source-maintained documentation.

shared-data – Supabase wiki | Factory