# FanBase SDK - [Introduction](/docs): Add quests, rewards and fan accounts to any React app. - Getting started - [What you get](/docs/getting-started/overview): Whether the SDK fits, before anyone writes code. - [Installation](/docs/getting-started/installation): Registry access, peer dependencies, and verifying it worked. - [Environment](/docs/getting-started/environment): The eight config values, with beta defaults you can paste. - [Quickstart](/docs/getting-started/quickstart): Sign-in and a live quest list, running locally. - [Changelog](/docs/changelog): What has changed in the FanBase SDK documentation. - [Integrate with an agent](/docs/agents): Three sequenced prompts, and how to review what they build. - **Separator** - How it works - [How it fits together](/docs/how-it-works/architecture): The layer model, the state machine, and the unstyled contract. - [Tenant, community and app](/docs/how-it-works/tenancy): Three identifiers that look interchangeable and are not. - [Fan sign-in](/docs/sign-in): The full OAuth path, session handling and account linking. - [Linking accounts](/docs/linking): Connect Discord, X, Twitch, Steam and more to a signed-in fan, so the quests that need them open up. - Your design system - [Your design system](/docs/design/theming): The asChild pattern, and what to take from the SDK. - [Display strings](/docs/design/display-strings): Why raw API enums are wrong, and the catalog that fixes it. - Reference - [FanbaseProvider](/docs/reference/provider): Props, session adapter, query client behaviour. - [Hooks](/docs/reference/hooks): Every hook in the SDK, grouped by feature, with what each one is for. - [Components](/docs/reference/components): Quest, Battlepass, Store and Leaderboard, the four compounds in the SDK. - [API endpoints](/docs/reference/api): The REST surface behind every hook, the headers it needs, and using the client directly. - **Separator** - Quests - [The quest model](/docs/quests/model): Quests, templates, requirements, rewards, allocations. - [Listing quests](/docs/quests/list): One hook, one request, and what a card needs. - [Quest detail](/docs/quests/detail): One view that handles every quest type. - [Rewards and claims](/docs/quests/rewards): What a quest pays, how a fan claims it, and the loot box reveal. - [Quest descriptions](/docs/quests/descriptions): Structured content rendered into your design. - [Quest templates](/docs/quests/templates): Template families, routing, and payload shapes. - Predictions - [The prediction model](/docs/predictions/model): Pick an outcome before it is known, and get paid for calling it right. - [Building a prediction](/docs/predictions/build): The options, the lock, the split, one final pick, and the claim after it resolves. - Battlepass - [The battlepass model](/docs/battlepass/model): Seasons, tiers, lanes, and the four things that do not work the way they look. - [Rendering a season](/docs/battlepass/season): One provider, the season header, and a lane layout that keeps levels aligned. - [Completing and claiming](/docs/battlepass/claims): One tier, every tier, and the rewards that need the fan before they can pay out. - Newsfeed - [The newsfeed model](/docs/newsfeed/model): Posts, publishers, members-only posts, and what fans can say back. - [The feed and a post](/docs/newsfeed/feed): An infinite feed, filters, one post, and a members-only lock on both. - [Reactions and comments](/docs/newsfeed/comments): Emoji reactions, a threaded comment section, and votes that update before the network does. - Store - [The store model](/docs/store/model): Listings, prices, the purchase gate, and what a fan actually gets. - [Browsing the store](/docs/store/browse): The grid, the filters, the cards, and a price that says what it is priced in. - [Buying](/docs/store/buy): The gate, the details a purchase needs, one tap that never charges twice, and what to show after. - Leaderboard - [The leaderboard model](/docs/leaderboard/model): Two kinds of board, four different numbers called rank, and nothing to write. - [Rendering a board](/docs/leaderboard/board): The table, the pager, the fan's own row, and an XP bar that reads the right number. - Prizes and inventory - [Prizes and details](/docs/inventory/prizes): What a fan has won, the details form a prize can ask for, and a claim that cannot be sent twice. - [Personalisation](/docs/inventory/personalization): Profile pictures, borders and backgrounds a fan owns, and equipping them per community. - [Membership](/docs/membership): Free and Premium, the one gate that locks the battlepass, the store and the newsfeed, and the error you should expect.