MCPcopy
hub / github.com/gatsbyjs/gatsby

github.com/gatsbyjs/gatsby @gatsby-plugin-styletron@8.18.0-react19.0 sqlite

repository ↗ · DeepWiki ↗ · release gatsby-plugin-styletron@8.18.0-react19.0 ↗
7,346 symbols 27,198 edges 4,089 files 386 documented · 5%
README

Gatsby

Gatsby

The future of web development is here.

Gatsby is a free and open-source framework based on React that helps developers build blazing fast websites and apps.

It combines the control and scalability of dynamically rendered sites with the speed of static-site generation, creating a whole new web of possibilities.

Gatsby is released under the MIT license. Current CircleCI build status. Current npm package version. Downloads per month on npm. Total downloads on npm. PRs welcome!

Quickstart · Tutorial · Plugins · Starters · Showcase · Contribute Support: Discussions

Gatsby helps professional developers efficiently create maintainable, highly-performant, content-rich websites.

  • Load Data From Anywhere. Gatsby pulls in data from any data source, whether it’s Markdown files, a headless CMS like Contentful or WordPress, or a REST or GraphQL API. Use source plugins to load your data, then develop using Gatsby’s uniform GraphQL interface.

  • Go Beyond Static Websites. Get all the benefits of static websites with none of the limitations. Gatsby sites are fully functional React apps, so you can create high-quality, dynamic web apps, from blogs to e-commerce sites to user dashboards.

  • Choose your Rendering Options. You can choose alternative rendering options, namely Deferred Static Generation (DSG) and Server-Side Rendering (SSR), in addition to Static Site Generation (SSG) — on a per-page basis. This type of granular control allows you to optimize for performance and productivity without sacrificing one for the other.

  • Performance Is Baked In. Ace your performance audits by default. Gatsby automates code splitting, image optimization, inlining critical styles, lazy-loading, prefetching resources, and more to ensure your site is fast — no manual tuning required.

  • Use a Modern Stack for Every Site. No matter where the data comes from, Gatsby sites are built using React and GraphQL. Build a uniform workflow for you and your team, regardless of whether the data is coming from the same backend.

  • Host at Scale for Pennies. Gatsby sites don’t require servers, so you can host your entire site on a CDN for a fraction of the cost of a server-rendered site. Many Gatsby sites can be hosted entirely free on Netlify and other similar services.

  • Use Gatsby's Centralized Data Layer Everywhere. With Gatsby's Valhalla Content Hub you can bring Gatsby's data layer to any project. Making it accessible via a unified GraphQL API for building content sites, eCommerce platforms, and both native and web applications.

Learn how to use Gatsby for your next project.

🚀 Ship your first Gatsby site in 5 Minutes

Click the link below to quickly try the workflow of developing, building, and deploying websites with Gatsby and Netlify.

Deploy to Netlify

At the end of this process, you'll have

  1. a site working on Netlify
  2. a new repository that is linked to that new site
  3. as you push changes to your new repository, Netlify will automatically rebuild and redeploy your site!

💻 Get started with Gatsby locally in 5 Minutes

You can get a new Gatsby site up and running on your local dev environment in 5 minutes with these four steps:

  1. Initialize a new project.

shell npm init gatsby

Give it the name "My Gatsby Site".

  1. Start the site in develop mode.

Next, move into your new site’s directory and start it up:

shell cd my-gatsby-site/ npm run develop

  1. Open the source code and start editing!

Your site is now running at http://localhost:8000. Open the my-gatsby-site directory in your code editor of choice and edit src/pages/index.js. Save your changes, and the browser will update in real time!

At this point, you’ve got a fully functional Gatsby website. For additional information on how you can customize your Gatsby site, see our plugins and the official tutorial.

🎓 Learning Gatsby

Full documentation for Gatsby lives on the website.

  • For most developers, we recommend starting with our in-depth tutorial for creating a site with Gatsby. It starts with zero assumptions about your level of ability and walks through every step of the process.

  • To dive straight into code samples head to our documentation. In particular, check out the “How-to Guides”, “Reference”, and “Conceptual Guides” sections in the sidebar.

We welcome suggestions for improving our docs. See the “how to contribute” documentation for more details.

Start Learning Gatsby: Follow the Tutorial · Read the Docs

🚢 Release Notes

Wondering what we've shipped recently? Check out our release notes for key highlights, performance improvements, new features, and notable bugfixes.

Also, read our documentation on version support to understand our plans for each version of Gatsby.

💼 Migration Guides

Already have a Gatsby site? These handy guides will help you add the improvements of Gatsby v5 to your site without starting from scratch!

❗ Code of Conduct

Gatsby is dedicated to building a welcoming, diverse, safe community. We expect everyone participating in the Gatsby community to abide by our Code of Conduct. Please read it. Please follow it. In the Gatsby community, we work hard to build each other up and create amazing things together. 💪💜

🤝 How to Contribute

Whether you're helping us fix bugs, improve the docs, or spread the word, we'd love to have you as part of the Gatsby community!

Check out our Contributing Guide for ideas on contributing and setup steps for getting our repositories up and running on your local machine.

A note on how this repository is organized

This repository is a monorepo managed using Lerna. This means there are multiple packages managed in this codebase, even though we publish them to NPM as separate packages.

📝 License

Licensed under the MIT License.

💜 Thanks

Thanks go out to all our many contributors creating plugins, starters, videos, and blog posts. And a special appreciation for our community members helping with issues and PRs, or answering questions on GitHub Discussions.

A big part of what makes Gatsby great is each and every one of you in the community. Your contributions enrich the Gatsby experience and make it better every day.

Extension points exported contracts — how you extend this code

Cache (Interface)
(no doc) [5 implementers]
packages/gatsby-plugin-utils/src/utils/plugin-options-schema-joi-type.ts
Cache (Interface)
(no doc) [5 implementers]
packages/gatsby/index.d.ts
IPluginEntry (Interface)
* Interface for plugin JSON files
packages/create-gatsby/src/index.ts
FileSystemOptions (Interface)
* @see https://www.gatsbyjs.com/plugins/gatsby-source-filesystem/?=filesy#options
packages/gatsby-source-filesystem/index.d.ts
IModulePrivateMethods (Interface)
* We need to use private Module methods in this polyfill
packages/gatsby-core-utils/src/create-require-from-path.ts
IPhantomReporter (Interface)
(no doc) [1 implementers]
packages/gatsby-cli/src/reporter/reporter-phantom.ts
VisualMatch (Interface)
(no doc)
integration-tests/images/__tests__/images.ts
ICreateAPageFromNodeArgs (Interface)
(no doc)
packages/gatsby-plugin-page-creator/src/tracked-nodes-state.ts

Core symbols most depended-on inside this repo

get
called by 1042
packages/gatsby/index.d.ts
map
called by 916
packages/gatsby-plugin-utils/src/utils/plugin-options-schema-joi-type.ts
forEach
called by 841
packages/gatsby/src/datastore/common/iterable.ts
resolve
called by 658
packages/gatsby-plugin-utils/src/polyfill-remote-file/types.ts
graphql
called by 515
packages/gatsby/cache-dir/gatsby-browser-entry.js
filter
called by 460
packages/gatsby/src/datastore/common/iterable.ts
then
called by 451
packages/gatsby/cache-dir/server-utils/writable-as-promise.js
parse
called by 377
packages/gatsby/src/query/graphql-runner.ts

Shape

Function 5,254
Method 862
Interface 753
Class 452
Enum 25

Languages

TypeScript100%
Python1%

Modules by API surface

packages/gatsby-plugin-utils/src/utils/plugin-options-schema-joi-type.ts266 symbols
packages/gatsby/index.d.ts172 symbols
packages/gatsby/src/redux/types.ts127 symbols
packages/gatsby/cache-dir/fast-refresh-overlay/helpers/focus-trap.js95 symbols
packages/gatsby/src/schema/node-model.js53 symbols
packages/gatsby/cache-dir/loader.js44 symbols
deprecated-packages/gatsby-telemetry/src/telemetry.ts37 symbols
packages/gatsby/src/schema/schema.js36 symbols
packages/babel-plugin-remove-graphql-queries/src/index.ts34 symbols
packages/gatsby/src/schema/infer/inference-metadata.ts31 symbols
deprecated-packages/gatsby-recipes/src/providers/gatsby/plugin.js31 symbols
packages/gatsby/src/datastore/lmdb/query/filter-using-index.ts28 symbols

Dependencies from manifests, versioned

@agility/content-fetch0.8.2 · 1×
@agility/content-management0.1.5 · 1×
@agility/gatsby-source-agilitycms1.5.0 · 1×
@apollo/client3.7.16 · 1×
@ascorbic/worker-threads-shim1.0.0 · 1×
@auth0/auth0-react1.0.0 · 1×
@babel/cli7.20.7 · 1×
@babel/code-frame7.18.6 · 1×
@babel/core7.20.12 · 1×
@babel/eslint-parser7.21.8 · 1×
@babel/eslint-plugin7.19.1 · 1×
@babel/generator7.20.14 · 1×

Datastores touched

(mongodb)Database · 1 repos
(mysql)Database · 1 repos

For agents

$ claude mcp add gatsby \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact