{"id":22489665,"url":"https://github.com/threefoldtech/tfchain_graphql","last_synced_at":"2025-07-04T16:36:07.529Z","repository":{"id":37977607,"uuid":"444482379","full_name":"threefoldtech/tfchain_graphql","owner":"threefoldtech","description":"Graphql for TFchain","archived":false,"fork":false,"pushed_at":"2025-03-16T00:23:09.000Z","size":5549,"stargazers_count":2,"open_issues_count":30,"forks_count":3,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-04-09T17:10:33.413Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/threefoldtech.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":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-01-04T16:07:56.000Z","updated_at":"2024-09-02T18:49:59.000Z","dependencies_parsed_at":"2023-02-18T05:01:17.459Z","dependency_job_id":"2e727e29-eaa6-4056-9066-5feaec377875","html_url":"https://github.com/threefoldtech/tfchain_graphql","commit_stats":null,"previous_names":[],"tags_count":111,"template":false,"template_full_name":null,"purl":"pkg:github/threefoldtech/tfchain_graphql","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/threefoldtech%2Ftfchain_graphql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/threefoldtech%2Ftfchain_graphql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/threefoldtech%2Ftfchain_graphql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/threefoldtech%2Ftfchain_graphql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/threefoldtech","download_url":"https://codeload.github.com/threefoldtech/tfchain_graphql/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/threefoldtech%2Ftfchain_graphql/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260726034,"owners_count":23053065,"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":[],"created_at":"2024-12-06T17:20:23.544Z","updated_at":"2025-06-19T09:39:09.917Z","avatar_url":"https://github.com/threefoldtech.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# Tfchain graphql\n\n[Subsquid](https://docs.subsquid.io) is used to index and provide a graphql interface on top of tfchain.\n\n## Concept\n\nThe substrate events are processed in a multi-step pipeline:\n\n    Tfchain =\u003e Squid Indexer =\u003e Indexer GraphQL gateway =\u003e Squid Processor =\u003e Database =\u003e Query Node GraphQL endpoint\n\n![Bird eye overview](https://gblobscdn.gitbook.com/assets%2F-MdI-MAyz-csivC8mmdb%2Fsync%2Fe587479ff22ad79886861487b2734b6556302d10.png?alt=media)\n\n## Prerequisites\n\n* Node v16x\n* Docker\n* Docker-compose\n\n## Running\n\nsee [docs](./docs/readme.md)\n\n## Project layout\n\n- `indexer` - docker-compose setup for the indexer\n- `db` - Processor db migration files\n- `scripts` - Scripts for generating initial state and development scripts\n- `src` - Source\n    - `mappings` - Mapper functions for the indexer data\n    - `model` - Generated models from the `schema.graphql` file\n    - `types` - Type files that require manual edit if the schema changes / or chain types change\n    - `processor.ts` - Processor entrypoint\n- `typegen` - Where the declaration files are generated from (used for development)\n    - `tfchainVersions.jsonl` - Generated tfchain runtime versions and their data\n    - `typegen.json` - Typegen config\n    - `typesBundle.json` - Typegen bundle config\n- `schema.graphql` - The graphql schema file, changes to this file will results in changes to the models (`src/models`)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthreefoldtech%2Ftfchain_graphql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthreefoldtech%2Ftfchain_graphql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthreefoldtech%2Ftfchain_graphql/lists"}