{"id":22998383,"url":"https://github.com/tablelandnetwork/basin-storage","last_synced_at":"2025-04-02T13:24:29.571Z","repository":{"id":196114960,"uuid":"683525162","full_name":"tablelandnetwork/basin-storage","owner":"tablelandnetwork","description":"Filecoin storage and indexing for Tableland Basin","archived":false,"fork":false,"pushed_at":"2023-12-08T16:20:30.000Z","size":351,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-01T21:29:20.611Z","etag":null,"topics":["basin","depin","filecoin"],"latest_commit_sha":null,"homepage":"https://tableland.xyz","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tablelandnetwork.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-08-26T21:07:42.000Z","updated_at":"2023-12-18T16:59:52.000Z","dependencies_parsed_at":"2023-09-21T11:43:19.221Z","dependency_job_id":"d32e341d-20fd-4b7d-afda-cc87c4818d8c","html_url":"https://github.com/tablelandnetwork/basin-storage","commit_stats":null,"previous_names":["tablelandnetwork/basin-storage"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tablelandnetwork%2Fbasin-storage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tablelandnetwork%2Fbasin-storage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tablelandnetwork%2Fbasin-storage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tablelandnetwork%2Fbasin-storage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tablelandnetwork","download_url":"https://codeload.github.com/tablelandnetwork/basin-storage/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246820990,"owners_count":20839333,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["basin","depin","filecoin"],"created_at":"2024-12-15T06:13:16.918Z","updated_at":"2025-04-02T13:24:29.552Z","avatar_url":"https://github.com/tablelandnetwork.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# basin-storage\n\n[![Test](https://github.com/tablelandnetwork/basin-storage/actions/workflows/unit-test.yml/badge.svg?branch=main)](https://github.com/tablelandnetwork/basin-storage/actions/workflows/unit-test.yml)\n[![License](https://img.shields.io/github/license/tablelandnetwork/basin-storage.svg)](./LICENSE)\n[![standard-readme compliant](https://img.shields.io/badge/standard--readme-OK-green.svg)](https://github.com/RichardLitt/standard-readme)\n\n\u003e Filecoin storage and indexing for Tableland Basin\n\n# Table of Contents\n\n- [basin-storage](#basin-storage)\n- [Table of Contents](#table-of-contents)\n- [Background](#background)\n- [Development](#development)\n  - [Running](#running)\n  - [Deploying Function](#deploying-function)\n    - [Deploy Uploader function](#deploy-uploader-function)\n      - [Deploy Status Checker function](#deploy-status-checker-function)\n  - [Run tests](#run-tests)\n- [Contributing](#contributing)\n- [License](#license)\n\n# Background\n\nTableland Basin is a secure and verifiable open data platform. The Basin Storage replicates data to Filecoin. It works in conjunction with [basin-cli](https://github.com/tablelandnetwork/basin-cli.git) and [basin-provider](https://github.com/tablelandnetwork/basin-provider.git).\n\n🚧 Basin is currently not in a production-ready state. Any data that is pushed to the network may be subject to deletion. 🚧\n\n# Development\n\nBasin Storage leverages GCP Cloud Functions and Clould Storage to create a data archiving pipeline to Filecoin network. The File uploader function is triggered by an event from Cloud Storage.\n\nThis repository includes a development server that acts as an event trigger during development.\n\n## Running\n\nStart the development server for testing Clould Functions locally.\nThe required environment variables can be provided in `uploader.env.yml` and `checker.env.yml`.\n\n```bash\nmake uploader-local\n```\n\n```bash\nmake checker-local\n```\n\nAfter the server is running, a mock cloud event can be triggered. It will execute the handler locally. In the following payload, we must have a real file path and a bucket for event simulation.\n\n```bash\ncurl -X POST http://localhost:8080 \\\n-H \"Content-Type: application/json\" \\\n-H \"ce-id: 1234567890\" \\\n-H \"ce-specversion: 1.0\" \\\n-H \"ce-type: google.cloud.storage.object.v1.finalized\" \\\n-H \"ce-time: 2020-08-08T00:11:44.895529672Z\" \\\n-H \"ce-source: //storage.googleapis.com/projects/_/buckets/tableland-entrypoint\" \\\n-d '{\n  \"name\": \"feeds/2023-08-29/202308291525552525242120000000000-3ab461ed932d5f1c-1-2-00000000-employees-2.parquet\",\n  \"bucket\": \"tableland-entrypoint\",\n  \"contentType\": \"application/json\",\n  \"metageneration\": \"1\",\n  \"timeCreated\": \"2020-04-23T07:38:57.230Z\",\n  \"updated\": \"2020-04-23T07:38:57.230Z\"\n}'\n```\n\nThe checker function can be triggered by simply sending a POST request for example `curl -XPOST localhost:8080`.\n\n## Deploying Function\n\n### Deploy Uploader function\n\n```bash\nmake uploader-deploy\n```\n\n#### Deploy Status Checker function\n\n```bash\nmake checker-deploy\n```\n\n## Run tests\n\n```bash\nmake test\n```\n\n# Contributing\n\nPRs accepted.\n\nSmall note: If editing the README, please conform to the\n[standard-readme](https://github.com/RichardLitt/standard-readme) specification.\n\n# License\n\nMIT AND Apache-2.0, © 2021-2023 Tableland Network Contributors\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftablelandnetwork%2Fbasin-storage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftablelandnetwork%2Fbasin-storage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftablelandnetwork%2Fbasin-storage/lists"}