Skip to main content

Gcs Datastore

@swamp/gcs-datastorev2026.06.03.1· 1d agoDATASTORES
01README

Store data in a Google Cloud Storage bucket with local cache synchronization. Provides distributed locking via GCS generation-based preconditions and bidirectional sync between a local cache directory and GCS. Features per-path dirty tracking, SHA-256 content hashing, partitioned index for scoped sync, namespace-scoped sync for multi-repo shared datastores, and configurable transfer concurrency.

Authentication

Uses Google Cloud Application Default Credentials (ADC) — no credentials in config. Provide credentials via one of:

  • Environment variable: GOOGLE_APPLICATION_CREDENTIALS pointing to a service account key JSON file
  • User credentials: gcloud auth application-default login
  • Attached service account on GCE, Cloud Run, or GKE

Required IAM Permissions

  • storage.buckets.get
  • storage.objects.create
  • storage.objects.get
  • storage.objects.delete
  • storage.objects.list

The predefined role roles/storage.objectAdmin covers all of these.

Usage

swamp datastore setup @swamp/gcs-datastore \
  --config '{"bucket": "my-bucket", "prefix": "swamp"}' --json
02Datastores1
Google Cloud Storageconfigurable
@swamp/gcs-datastoregcs.ts

Store data in a Google Cloud Storage bucket with local cache synchronization.

Config Fields

FieldTypeDescription
bucketstringGCS bucket name
prefix?stringObject name prefix within the bucket
projectId?stringGCP project ID (defaults to ADC project)
apiEndpoint?stringCustom API endpoint URL (for emulators like fake-gcs-server)
pullConcurrency?numberMaximum concurrent GCS downloads during pull. Default: 50
pushConcurrency?numberMaximum concurrent GCS uploads during push. Default: 25
03Previous Versions19
2026.05.26.1May 26, 2026
2026.05.25.1May 25, 2026
2026.05.24.1May 24, 2026

Modified 1 datastores

2026.05.15.3May 15, 2026
2026.05.15.2May 15, 2026
2026.05.15.1May 15, 2026
2026.05.14.1May 14, 2026
2026.05.05.1May 5, 2026
2026.05.04.4May 4, 2026
2026.05.04.3May 4, 2026
2026.05.04.2May 4, 2026
2026.05.04.1May 4, 2026
2026.04.28.4Apr 28, 2026
2026.04.28.3Apr 28, 2026
2026.04.28.2Apr 28, 2026
2026.04.28.1Apr 28, 2026
2026.04.25.2Apr 25, 2026
2026.04.24.2Apr 24, 2026
2026.04.24.1Apr 24, 2026
04Stats
Downloads
4,856
Archive size
71.0 KB

Not yet scored.

A score will be generated the next time this extension is published. The owner can also trigger scoring manually.

05Platforms
06Labels