Skip to content

Ocean data: the community projects ​

FunDive has two kinds of data. Shop data — bookings, payments, waivers, customer identity documents and medical declarations — belongs to one shop and lives only in that shop's own self-hosted database. Ocean data — what divers observe at dive sites — is worth more pooled than kept apart, so it belongs to shared community projects that every FunDive deployment can read from and contribute to.

The projects ​

Four community projects, each a homepage feature of the app with its own switch in fundive.config.ts (on unless set to false; see configuration.md):

ProjectFlagPageWhat divers recordRepository
Almanacfeatures.almanac/almanacConditions and wildlife per site and dayfundive/almanac
Bathymetryfeatures.bathymetry/bathymetrySeafloor depths and 3D features per dive site (dive-site-maps.md). Administrator-only for nowfundive/bathymetry
Coral Trackerfeatures.coralTracker/coralCoral health on the CoralWatch chart (coral-surveys.md)fundive/coral-tracker
Trash Trackerfeatures.trashTracker/trashMarine trash per site and day (trash-tracker.md)fundive/trash-tracker

A fifth, supporting project holds what the four share:

ProjectWhat it holdsRepository
Ocean DataThe dive-site catalog and the species catalog (wildlife-taxa.md). Every record in the four projects is keyed on a dive site, and Almanac sightings on a species, so one copy of each catalog keeps a site or a species meaning the same thing everywhere. (Coral Tracker colonies are recorded by growth form, as the CoralWatch method does, not by species.) Not a homepage featurefundive/ocean-data

The self-hosted voice-entry feature (roadmap) is not one of these. It is part of FunDive itself and runs on each shop's own hardware.

Where the data lives today, and where it is going ​

Today, every project works inside FunDive: its tables, its submission functions and its page are part of this repository, and its records live in each shop's own database, next to the shop data. Records filed at one shop are not visible at another. The Almanac, Coral Tracker and Trash Tracker hold every record for staff review before it is published. Bathymetry is restricted to administrators until it has been tested against a real site: contributions are saved at once, attributed, and an administrator can mark them verified; it gains a review step when it opens to divers.

Planned: each project moves to its own repository and one central database, shared by every deployment. A shop that turns a project on submits its divers' records to the central database and reads the pooled record back; a shop that leaves it off is not connected to it at all. The five repositories exist and describe their role; no code or data has moved yet. Records filed in shop databases now will be carried across when each project moves.

Still to be decided before the move:

  • The dive-site catalog is shop data too. A shop's events point at its dive sites (events.site_id), as do its own records in all four projects. Moving the catalog to Ocean Data means each shop keeps its local sites and links each to its central entry, or reads the central catalog directly and gives up the local foreign keys.
  • How a diver is identified across shops.
  • Whether shops or a central team review contributions.
  • The open-data license for each project's published records.

Hosting ​

The central databases will be run by the FunDive project, and Fun Divers Taiwan, the Taipei dive shop that field-tests FunDive (see About), has agreed to cover their hosting costs. None of them exists yet. Paying for hosting does not make the shop the owner of the projects or the data, and it owns no copyright in them: the hosting accounts are to be held by the project, with the shop as the paying party, so the shared record does not depend on any one business.

Each shop's own database stays its own, paid for by the shop, as described in architecture.md.

Released under the AGPL-3.0-or-later license.