{"id":15505376,"url":"https://github.com/lekoarts/gatsby-source-tmdb","last_synced_at":"2025-09-17T16:32:22.978Z","repository":{"id":41361312,"uuid":"159963754","full_name":"LekoArts/gatsby-source-tmdb","owner":"LekoArts","description":"🎬 Source from The Movie Database (TMDb) in Gatsby","archived":false,"fork":false,"pushed_at":"2023-08-27T14:06:23.000Z","size":4120,"stargazers_count":56,"open_issues_count":0,"forks_count":17,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-01-07T10:35:33.881Z","etag":null,"topics":["api","gatsby","gatsby-source","source-plugin","themoviedatabase","themoviedb","tmdb"],"latest_commit_sha":null,"homepage":"https://tmdb.lekoarts.de","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LekoArts.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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,"publiccode":null,"codemeta":null},"funding":{"github":["LekoArts"],"patreon":"lekoarts","open_collective":null,"ko_fi":"lekoarts","tidelift":null,"custom":null}},"created_at":"2018-12-01T16:23:44.000Z","updated_at":"2024-12-11T20:58:41.000Z","dependencies_parsed_at":"2024-06-21T14:04:29.920Z","dependency_job_id":"4ac444af-1add-421b-b934-9650567c9563","html_url":"https://github.com/LekoArts/gatsby-source-tmdb","commit_stats":{"total_commits":77,"total_committers":2,"mean_commits":38.5,"dds":"0.11688311688311692","last_synced_commit":"adc908783de99ae441bcea672d9322643e2c6d0a"},"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LekoArts%2Fgatsby-source-tmdb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LekoArts%2Fgatsby-source-tmdb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LekoArts%2Fgatsby-source-tmdb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LekoArts%2Fgatsby-source-tmdb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LekoArts","download_url":"https://codeload.github.com/LekoArts/gatsby-source-tmdb/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":232989863,"owners_count":18607661,"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":["api","gatsby","gatsby-source","source-plugin","themoviedatabase","themoviedb","tmdb"],"created_at":"2024-10-02T09:23:02.959Z","updated_at":"2025-09-17T16:32:17.449Z","avatar_url":"https://github.com/LekoArts.png","language":"TypeScript","funding_links":["https://github.com/sponsors/LekoArts","https://patreon.com/lekoarts","https://ko-fi.com/lekoarts","https://www.patreon.com/lekoarts","https://github.com/sponsors/LekoArts)!"],"categories":[],"sub_categories":[],"readme":"# gatsby-source-tmdb\n\nSource from [The Movie Database (TMDb)](https://www.themoviedb.org/) API (v3) in Gatsby. You can leverage any endpoint from the [official documentation](https://developers.themoviedb.org/3/getting-started/introduction) and pull the data directly into Gatsby's GraphQL data layer. Customize the plugin to your needs by providing customized endpoints -- read more about that in the [advanced configuration](https://github.com/LekoArts/gatsby-source-tmdb/tree/main/package/README.md#advanced-configuration) section.\n\nYou can see a **live preview** at [tmdb.lekoarts.de](https://tmdb.lekoarts.de) ([Source Code](https://github.com/LekoArts/gatsby-source-tmdb/tree/main/example)).\n\nCreate your own website with [gatsby-starter-tmdb](https://github.com/LekoArts/gatsby-starter-tmdb).\n\n\u003ca href=\"https://github.com/LekoArts/gatsby-source-tmdb/blob/main/LICENSE\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/license-MIT-blue.svg\" alt=\"gatsby-source-tmdb is released under the MIT license.\" /\u003e\n\u003c/a\u003e\n\u003ca href=\"https://www.npmjs.org/package/gatsby-source-tmdb\"\u003e\n  \u003cimg src=\"https://img.shields.io/npm/v/gatsby-source-tmdb.svg\" alt=\"Current npm package version.\" /\u003e\n\u003c/a\u003e\n\u003ca href=\"https://npmcharts.com/compare/gatsby-source-tmdb?minimal=true\"\u003e\n  \u003cimg src=\"https://img.shields.io/npm/dm/gatsby-source-tmdb.svg\" alt=\"Downloads per month on npm.\" /\u003e\n\u003c/a\u003e\n\u003ca href=\"https://npmcharts.com/compare/gatsby-source-tmdb?minimal=true\"\u003e\n  \u003cimg src=\"https://img.shields.io/npm/dt/gatsby-source-tmdb.svg\" alt=\"Total downloads on npm.\" /\u003e\n\u003c/a\u003e\n\u003ca href=\"https://www.lekoarts.de?utm_source=gatsby-source-tmdb\u0026utm_medium=Plugin\"\u003e\n  \u003cimg alt=\"Website\" src=\"https://img.shields.io/badge/-website-blue\"\u003e\n\u003c/a\u003e\n\u003ca href=\"https://twitter.com/intent/follow?screen_name=lekoarts_de\"\u003e\n  \u003cimg src=\"https://img.shields.io/twitter/follow/lekoarts_de.svg?label=Follow%20@lekoarts_de\" alt=\"Follow @lekoarts_de\" /\u003e\n\u003c/a\u003e\n\n## Install\n\n```shell\nnpm install gatsby-source-tmdb\n```\n\n### Prerequisites\n\nYou'll need an `API Key` and `Session ID` from TMDb.\n\n1. [Create your API key](https://developers.themoviedb.org/3/getting-started/introduction)\n1. [Generate a Session ID](https://developers.themoviedb.org/3/authentication/how-do-i-generate-a-session-id)\n\n**Recommendation:** Save both values inside an `.env` file as environment variables. [Read more about env vars in Gatsby](https://www.gatsbyjs.com/docs/how-to/local-development/environment-variables/).\n\nYou can find all information on the API endpoints in the [official TMDb v3 documentation](https://developers.themoviedb.org/3/getting-started/introduction).\n\n### Configure\n\nAdd the plugin to your `gatsby-config.js`\n\n```js:title=gatsby-config.js\nrequire(\"dotenv\").config()\n\nmodule.exports = {\n  plugins: [\n    {\n      resolve: \"gatsby-source-tmdb\",\n      options: {\n        apiKey: process.env.API_KEY,\n        sessionID: process.env.SESSION_ID,\n      }\n    }\n  ]\n}\n```\n\nThe plugin is **not** requesting all available endpoints by default but only a [selected list](https://github.com/LekoArts/gatsby-source-tmdb/blob/main/package/src/endpoints.ts) of endpoints. It always requests the `/account` \u0026 `/configuration` endpoint. Please see the [plugin's README](https://github.com/LekoArts/gatsby-source-tmdb/blob/main/package/README.md) for more detailed information, including options \u0026 advanced customization.\n\n## Acknowledgements\n\n- [moviedb-promise](https://github.com/grantholle/moviedb-promise) was used for v1 of this plugin and has been really helpful/inspirational when creating v2. Thanks!\n\n## Support Me\n\nThanks for using this project! I'm always interested in seeing what people do with my projects, so don't hesitate to tag me on [Twitter](https://twitter.com/lekoarts_de) and share the project with me.\n\nPlease star this project, share it on Social Media or consider supporting me on [Patreon](https://www.patreon.com/lekoarts) or [GitHub Sponsor](https://github.com/sponsors/LekoArts)!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flekoarts%2Fgatsby-source-tmdb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flekoarts%2Fgatsby-source-tmdb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flekoarts%2Fgatsby-source-tmdb/lists"}