Docs Layers

Data

Live on testnetRuns on NEAR FastData KV

A collection holds JSON docs. Its rules say who may add, who pays for storage, and whether the owner may hide a doc. With --payer site the site's storage pool pays, so a visitor needs no NEAR. FastData KV is a second, gas-only backend for public data with no rules.

Commands

Terminal
quay db fund 2
quay db collection set posts --write anyone --payer site --moderated
quay db add posts '{"title":"Tide table is up"}'
quay db list posts --limit 10

How Harbour Board uses it

  1. posts is write: anyone, payer: site, moderated, with on_add: moderate.
  2. It holds 14 docs in 4,692 B. A member at 0 NEAR wrote a guestbook entry to FastData KV through the relay.

Proof on testnet

The collectionAEg7rzCv…
The storage pool fundedDPnpKqji…
A FastData KV write by a member9jBJbchz…

Check it without a key: view list_collections '{}' and view db_list '{"collection":"posts","query":{"limit":5}}'. The view helper is in the repository README, and scripts/judge.sh runs these checks.

What you trust

Docs live in your contract. FastData KV entries are read from FastNEAR's indexer, have no rules, and only know the writer's account.

Limits

Doc1 to 16,384 B of JSON (2,000 on the Board)
Collections32 per site

Every flag is in the command reference, generated from quay db --help.