{"id":31923407,"url":"https://github.com/fuellabs/fuel-subgraph","last_synced_at":"2025-10-13T23:50:22.610Z","repository":{"id":222830116,"uuid":"757516443","full_name":"FuelLabs/fuel-subgraph","owner":"FuelLabs","description":null,"archived":false,"fork":false,"pushed_at":"2024-04-12T20:02:18.000Z","size":43411,"stargazers_count":19,"open_issues_count":12,"forks_count":8,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-04-13T03:55:38.157Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/FuelLabs.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}},"created_at":"2024-02-14T16:48:02.000Z","updated_at":"2024-04-14T23:37:57.487Z","dependencies_parsed_at":"2024-04-12T21:38:09.645Z","dependency_job_id":null,"html_url":"https://github.com/FuelLabs/fuel-subgraph","commit_stats":null,"previous_names":["fuellabs/fuel-subgraph"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/FuelLabs/fuel-subgraph","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FuelLabs%2Ffuel-subgraph","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FuelLabs%2Ffuel-subgraph/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FuelLabs%2Ffuel-subgraph/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FuelLabs%2Ffuel-subgraph/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FuelLabs","download_url":"https://codeload.github.com/FuelLabs/fuel-subgraph/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FuelLabs%2Ffuel-subgraph/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279017229,"owners_count":26086016,"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-13T02:00:06.723Z","response_time":61,"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-10-13T23:50:21.534Z","updated_at":"2025-10-13T23:50:22.599Z","avatar_url":"https://github.com/FuelLabs.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Fuel-Subgraph Setup Documentation\n\n### Prerequisites\n\nTo build and run this project you need to have the following installed on your system:\n\n- Rust (latest stable) – [How to install Rust](https://www.rust-lang.org/en-US/install.html)\n    - Note that `rustfmt`, which is part of the default Rust installation, is a build-time requirement.\n- PostgreSQL – [PostgreSQL Downloads](https://www.postgresql.org/download/)\n- IPFS – [Installing IPFS](https://docs.ipfs.io/install/)\n- Profobuf Compiler - [Installing Protobuf](https://grpc.io/docs/protoc-installation/)\n\n### 1. Run IPFS\nOpen the terminal and run the following commands:\n\n```bash\nipfs init\nipfs daemon\n```\n\n### 2. Configure PostgreSQL\nAfter installing PostgreSQL run the following commands in the terminal:\n\n```bash\ninitdb -D .postgres -E UTF8 --locale=C\npg_ctl -D .postgres -l logfile start\ncreatedb graph-node\n```\n`Note:` In case of issues, restart the database by deleting it and then starting it again\n\n### 3. Build Firehose-Extract\nNavigate to `firehose-extract` folder and run the following command in the terminal:\n\n```bash\ncargo build\n```\n\n### 4. Start Fuel-Firehose\nNavigate to `firehose-fuel` folder and run the following command in the terminal:\n\n```bash\n./devel/fuelfire/start.sh\n```\n\n### 5. Run Fuel-Graph-Node\nNavigate to `fuel-graph-node` folder and run the following command in the terminal:\n\n```bash\ncargo run --bin graph-node -- --config fuel_config.toml --ipfs http://127.0.0.1:5001 --node-id fuel-node-indexer\n```\n\n## Working with Fuel-Subgraphs\n\n### 1. Install and Build Fuel-Graph-Tooling\nNavigate to `fuel-graph-tooling` folder and run:\n\n```bash\npnpm install\npnpm build\n```\n\n### 2. Building and Deploying Fuel-Subgraphs\n\nTo initialize a new Fuel Subgraph, use the provided Subgraph Manifest file [subgraph.yaml](fuel-example-subgraph/subgraph.yaml).\nNavigate to the Subgraph folder and execute the following commands:\n\n```bash\n./../fuel-graph-tooling/packages/cli/bin/run codegen\n./../fuel-graph-tooling/packages/cli/bin/run build\n./../fuel-graph-tooling/packages/cli/bin/run create my/new_sub --node http://localhost:8020/\n./../fuel-graph-tooling/packages/cli/bin/run deploy -l v0.1.0 --node http://localhost:8020/ --ipfs http://localhost:5001 my/new_sub deploy -l v0.1.0 --node http://localhost:8020/ --ipfs http://localhost:5001 my/new_sub\n```\n\nFor more information on initializing a subgraph, you can refer to [The Graph documentation](https://thegraph.com/docs/en/developing/creating-a-subgraph/).\n\n#### For additional information, refer to the following documentation:\n- [firehose](firehose/firehose-fuel/README.md)\n- [graph-node](fuel-graph-node/README.md)\n- [graph-tooling](fuel-graph-tooling/README.md)\n\n# License\nThe primary license for this repo is `Apache 2.0`, see [`LICENSE`](./LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffuellabs%2Ffuel-subgraph","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffuellabs%2Ffuel-subgraph","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffuellabs%2Ffuel-subgraph/lists"}