{"id":29099934,"url":"https://github.com/bcc-code/brunstadtv-lite-api","last_synced_at":"2025-06-28T17:38:09.147Z","repository":{"id":103063255,"uuid":"560717993","full_name":"bcc-code/brunstadtv-lite-api","owner":"bcc-code","description":"[BCC Media]","archived":false,"fork":false,"pushed_at":"2022-11-02T05:29:15.000Z","size":67,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-06-20T23:56:03.671Z","etag":null,"topics":["bcc-media"],"latest_commit_sha":null,"homepage":"","language":"Go","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/bcc-code.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":"2022-11-02T05:23:33.000Z","updated_at":"2024-06-20T19:12:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"aa564fb2-9b5c-486c-9ae1-86b669189a1c","html_url":"https://github.com/bcc-code/brunstadtv-lite-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bcc-code/brunstadtv-lite-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcc-code%2Fbrunstadtv-lite-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcc-code%2Fbrunstadtv-lite-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcc-code%2Fbrunstadtv-lite-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcc-code%2Fbrunstadtv-lite-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bcc-code","download_url":"https://codeload.github.com/bcc-code/brunstadtv-lite-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcc-code%2Fbrunstadtv-lite-api/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262471054,"owners_count":23316605,"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":["bcc-media"],"created_at":"2025-06-28T17:37:51.180Z","updated_at":"2025-06-28T17:38:09.138Z","avatar_url":"https://github.com/bcc-code.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BTV Lite API\n\nBTV Lite API is a GQL api that share the GraphQL schema with the main BTVPlatform API.\nIt is backed by a readonly sqlite database that ban be obtained from the main API.\n\n**WARNING**: This is experimental and not stable!\n\n## Goals\n\nThe goal is to provide a lightweight system for making BTVPlatform clients work offline\n\n# Development\n\n## Requirements\n\n* [GoLang \u003e=1.18](https://go.dev/)\n* [gqlgen \u003e=0.17.20](https://github.com/99designs/gqlgen)\n* [sqlc \u003e=1.15](https://github.com/kyleconroy/sqlc)\n\n### Optional stuff\n\n* `make` if you want to use the `Makefile` commands\n* [fresh](https://github.com/pilu/fresh) for automatic rebuilds\n\n## Run dev\n\nNote: requires `fresh`\n\n\n```shell\nmake run DB_PATH=/path/to/db.sqlite3\n```\n\n## Generate code for updated GQL schema\n\nThis command assumes that you have the [BTV Platform repository](https://github.com/bcc-code/brunstadtv) checked out at\n`../brunstadtv/` relative to this readme file.\n\nIf you need to change the source of the GQL schema definition files, look in `./gqlgen.yml` file in this directory.\n\n```shell\nmake gqlgen\n```\n\n## Update SQL statements\n\n```shell\nmake sqlc\n```\n\n## Compile\n\n```shell\nmake build # \u003c-- Current arch\nmake build_all # \u003c-- Cross compile for all specified OSs and architectures\n```\n\nResults are in the `./dist` folder\n\n# Getting the DB\n\nSend the following GQL query to the BTV Platform\n\n```graphql\nquery {\n\texport {\n\t\tdbVersion\n\t\turl\n\t}\n}\n```\n\nThe returned URL  will be valid for 1 hour.\n\nNote that the information is filtered based on the requesting user. This means that without a valid bearer token you \nwill only receive public data.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbcc-code%2Fbrunstadtv-lite-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbcc-code%2Fbrunstadtv-lite-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbcc-code%2Fbrunstadtv-lite-api/lists"}