{"id":26162487,"url":"https://github.com/balancer/data-checks","last_synced_at":"2025-10-15T20:41:11.209Z","repository":{"id":238848231,"uuid":"797752770","full_name":"balancer/data-checks","owner":"balancer","description":null,"archived":false,"fork":false,"pushed_at":"2024-05-23T08:13:37.000Z","size":77,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-12-16T15:22:44.090Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/balancer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-05-08T12:56:48.000Z","updated_at":"2024-05-23T08:13:41.000Z","dependencies_parsed_at":"2024-05-08T13:51:08.157Z","dependency_job_id":"9a56e3f2-9764-4e7d-b6e3-4268cf6915c0","html_url":"https://github.com/balancer/data-checks","commit_stats":null,"previous_names":["balancer/data-checks"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/balancer/data-checks","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/balancer%2Fdata-checks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/balancer%2Fdata-checks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/balancer%2Fdata-checks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/balancer%2Fdata-checks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/balancer","download_url":"https://codeload.github.com/balancer/data-checks/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/balancer%2Fdata-checks/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279112325,"owners_count":26106233,"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","status":"online","status_checked_at":"2025-10-15T02:00:07.814Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2025-03-11T13:54:40.816Z","updated_at":"2025-10-15T20:41:11.181Z","avatar_url":"https://github.com/balancer.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Data-Checks\n\nThis project, `data-checks`, contains several scripts to help you with creating, deploying, and generating Cloudflare based functions to run checks on our data consistency. Below are instructions on how to use the repo.\n\n## Prerequisites\n\nNode.js and npm.\n\n## Scripts\n\nThe following scripts are defined in the `package.json` file:\n\n### Create a New Data Check\n\nTo create a new data check, run the following command:\n\n```shell\nnpm run create \u003cname\u003e\n```\n\n- `\u003cname\u003e`: Replace `\u003cname\u003e` with the desired name of your data check directory.\n\nThis script will:\n\n1. Create a new directory under the `src` folder named after the provided `\u003cname\u003e`.\n2. Copy templates into the new directory.\n3. Replace placeholder text in `package.json` and `wrangler.toml` files with the `\u003cname\u003e`.\n4. Install the necessary npm dependencies for the new data check.\n5. Generate necessary Cloudflare types.\n\n### Deploy the Data Check\n\nTo deploy your data check, run the following command:\n\n```shell\nnpm run deploy\n```\n\nThis script will execute the `deploy.sh` script located in the `scripts` directory.\n\n### Generate Cloudflare Types\n\nTo generate the necessary Cloudflare types, run the following command:\n\n```shell\nnpm run cf-typegen\n```\n\nThis script will execute the `typegen.sh` script located in the `scripts` directory.\n\n## Directory Structure\n\n```\ndata-checks/\n├── package.json\n├── scripts/\n│   ├── create.sh\n│   ├── deploy.sh\n│   └── typegen.sh\n└── src/\n    └── \u003cname\u003e/\n        ├── package.json\n        └── wrangler.toml\n```\n\n## Adding variables\n\nTo add variables to the data check, like DUNE API KEY, add them to the KV store defined in the add_env.sh script. The script will add the variables to the KV store, which will be accessible in the data check function.\n\n## Notes\n\n- Ensure that the `scripts` folder contains all required script files: `create.sh`, `deploy.sh`, and `typegen.sh`.\n- The `\u003cname\u003e` placeholder in the scripts will be replaced with the actual name you provide when you run the `npm run create \u003cname\u003e` command.\n\nFeel free to contribute to the project or report any issues you encounter.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbalancer%2Fdata-checks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbalancer%2Fdata-checks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbalancer%2Fdata-checks/lists"}