Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
Gatsby starter providing infinite scroll with pagination fallback, lazy metadata fetching, and scroll restoration.

A Next.js SAAS boilerplate with Stripe subscriptions, NextAuth authentication, OpenAI integration, and an admin dashboard.

Free open-source alternative to Arcads and MakeUGC for generating AI UGC video ads with Veo 3.1, Seedance 2, Grok Video, and Happy Horse 1.

Jekyll Bootstrap 3 with the material design flavour. Publish your materialized blog using GitHub Pages easily.

React components with Tailwind CSS — an easy way to start your React app.
Gatsby Starter Infinite Scroll is a developer-focused Gatsby starter that adds infinite scroll to any Gatsby project, with an automatic fallback to pagination when JavaScript is unavailable or fails.
Gatsby Starter Infinite Scroll is an open-source starter created by baobabKoodaa and published on GitHub. It takes a Gatsby project as its input and produces a paginated page template that can display large collections of items (such as photos or blog posts) using either infinite scroll or numbered pagination. The repository includes a live demo showing 10,000 photos at https://gatsby-starter-infinite-scroll.baobab.fi, and the code is structured in five key files: gatsby-node.js, gatsby-browser.js, templates/paginatedPageTemplate.js, components/view.js, and components/globalState.js. Prerequisites are Node v16 and gatsby-cli v4 installed globally.
The starter generates pages via gatsby-node.js, then uses gatsby-browser.js to hook into client-side navigation. The paginated page template renders items stored in a global state, and a view component triggers fetching of additional metadata as the user approaches the bottom of the page. The global state keeps items across navigations, which enables scroll restoration and avoids refetching.
Yes, it is a public open-source starter hosted on GitHub. No license or pricing information is stated in the repository.
Yes, the default behavior is infinite scroll, but the template automatically falls back to pagination if JavaScript is disabled or an error occurs. The demo even provides a toggle so you can test both modes without disabling JS.
It requires Node v16 and gatsby-cli v4. You can use a tool like nvm to switch Node versions, and install the CLI globally with npm install -g gatsby-cli@latest-v4.
The demo includes a script that fetches random images from Unsplash. The starter fetches only the metadata it needs for visible items, so images are loaded as placeholders and then replaced as you scroll.