{"id":15064933,"url":"https://github.com/olee/gatsby-source-strapi-advanced","last_synced_at":"2026-01-03T06:05:51.711Z","repository":{"id":55108013,"uuid":"245939462","full_name":"olee/gatsby-source-strapi-advanced","owner":"olee","description":"Gatsby source plugin for Strapi API","archived":false,"fork":false,"pushed_at":"2023-06-10T00:36:33.000Z","size":513,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-28T09:32:04.249Z","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/olee.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":"2020-03-09T03:55:11.000Z","updated_at":"2021-01-10T01:07:56.000Z","dependencies_parsed_at":"2024-09-25T00:28:28.632Z","dependency_job_id":"8940a547-c45a-487e-bd17-95523aff3a53","html_url":"https://github.com/olee/gatsby-source-strapi-advanced","commit_stats":{"total_commits":6,"total_committers":2,"mean_commits":3.0,"dds":"0.16666666666666663","last_synced_commit":"f707d585cfeeda9644809b5653cd9a9683f07fcb"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olee%2Fgatsby-source-strapi-advanced","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olee%2Fgatsby-source-strapi-advanced/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olee%2Fgatsby-source-strapi-advanced/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olee%2Fgatsby-source-strapi-advanced/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/olee","download_url":"https://codeload.github.com/olee/gatsby-source-strapi-advanced/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243801610,"owners_count":20350106,"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-09-25T00:28:08.782Z","updated_at":"2026-01-03T06:05:51.699Z","avatar_url":"https://github.com/olee.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @olee92/gatsby-source-strapi\n\n[![npm version](https://badge.fury.io/js/%40olee92%2Fgatsby-source-strapi.svg)](https://badge.fury.io/js/%40olee92%2Fgatsby-source-strapi)\n\nSource plugin for loading documents from Strapi API into gatsby.\n\nThe code has been originally inspired from https://github.com/strapi/gatsby-source-strapi\n\n## How to use\n\nThere are two ways to configure access to Strapi API for this plugin:\n\n1. Provide `identifier` and `password` fields in the configuration to allow the plugin to authenticate with Strapi API.\n2. Allow public access to the following endpoints in Strapi:\n    - `GET /content-manager/content-types`\n    - `GET /content-manager/components`\n    - The `find` endpoint on every content-type you would like to include, eg. `GET /articles`\n\nIf you allow public access, you do not have to add any options at all to get started.\n\nHere are the full options with their default values (except loginData which is `undefined` by default):\n\n```javascript\nexport default { plugins: [\n    {\n        resolve: '@olee92/gatsby-source-strapi',\n        options: {\n            apiURL: 'http://localhost:1337',\n            pageSize: 100,\n            excludedTypes: ['user', 'role', 'permission'];\n            loginData: {\n                identifier: \"identifier\",\n                password: \"password\",\n            },\n        },\n    }\n]}\n```\n\n| **option**    | **defaultValue**                    | **type** | **description**                                                                                                                 |\n|---------------|-------------------------------------|----------|---------------------------------------------------------------------------------------------------------------------------------|\n| apiURL        | http://localhost:1337               | string   | URL to access Strapi API                                                                                                        |\n| pageSize      | 100                                 | number   | The plugin will repeatedly fetch these many entries per query, until all entities have been loaded                              |\n| allowedTypes  | undefined                           | string[] | If specified, only these content-types are sourced                                                                              |\n| excludedTypes | `['user' , 'role' , 'permission' ]` | string[] | Exclude these content-types from all available content-types to source                                                          |\n| loginData     | undefined                           | object   | Provide object with properties `identifier` and `password` to be able to access Strapi servers where authentication is required |\n\n## How to query\n\nYou can query Document nodes created from your Strapi API like the following:\n\n```graphql\nquery {\n  allStrapiArticle {\n    nodes {\n        id\n        title\n        content\n      }\n    }\n}\n```\n\nTo query images you can do the following:\n\n```graphql\nquery {\n  allStrapiArticle {\n    nodes {\n      id\n      singleImage {\n        publicURL\n      }\n      multipleImages {\n        localFile {\n          publicURL\n        }\n      }\n    }\n  }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Folee%2Fgatsby-source-strapi-advanced","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Folee%2Fgatsby-source-strapi-advanced","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Folee%2Fgatsby-source-strapi-advanced/lists"}