# Rafflex Community Marketplace > The community marketplace for the Rafflex raffle platform: creators build games and page blocks as sandboxed Twig templates, and customers install them on their raffle sites. Assets are usually built by an AI assistant working from the documents below; each one is self-contained, plain markdown, and generated from the same configuration the platform enforces. Creators start from the setup runbook. ## Start here - [Set up Rafflex development](https://marketplace.rafflex.io/start.md): if you are setting up a creator, follow this first. It connects you to their account, sets up local development where it is available, brings their products in, and hands over. A remote MCP server at https://marketplace.rafflex.io/mcp lets a creator connect their AI assistant to their marketplace account (OAuth sign in, no API keys), so it can create products, push and check drafts, upload media, and submit versions for review. Its reference, with every tool, is at https://marketplace.rafflex.io/docs/mcp.md. ## How to create - [Start here](https://marketplace.rafflex.io/docs/how-to-create.md): What Rafflex is, the two asset types and when to build each, the creator workflow, and the sandbox rules. - [Connect your AI](https://marketplace.rafflex.io/docs/how-to-create/connect.md): The remote MCP server: connecting each AI client, signing in, starter prompts, watch mode, uploads per client, what a connected AI can and cannot do, and disconnecting. - [Architect a game](https://marketplace.rafflex.io/docs/how-to-create/games.md): The complete specification for building a marketplace game: data contract, plays array, injection pattern, and definition of done. - [Architect a block](https://marketplace.rafflex.io/docs/how-to-create/blocks.md): The complete specification for building a marketplace page block: data contract, theming from settings, and definition of done. - [Use images and sound](https://marketplace.rafflex.io/docs/how-to-create/media.md): Uploading images, sound, and 3D models to the product media library, adding approved libraries, and wiring them into a template through the files map. - [Test and debug](https://marketplace.rafflex.io/docs/how-to-create/testing.md): The preview scenarios that exercise every template state, testing with a connected AI, and the platform errors mapped to fixes. - [List and submit](https://marketplace.rafflex.io/docs/how-to-create/submit.md): Creating the product, the listing fields, pricing and creator earnings, the Ready to submit checklist, the reviewer pitfalls, and what review checks. - [After launch](https://marketplace.rafflex.io/docs/how-to-create/after-launch.md): New versions, release channels, how installs update, install notes, bug reports, questions, what a connected AI reports, and announcements. - [Reviewer pitfalls](https://marketplace.rafflex.io/docs/review-pitfalls.md): the most common reasons staff send a version back, curated by staff. Check a template and listing against it before submitting. ## Reference - [Template data contract](https://marketplace.rafflex.io/docs/template-context.md): every variable a template receives, with generated samples, and the two playthrough hooks a game carries: `data-rafflex-play` on the element that plays the next entry, and `data-rafflex-result="win|lose"` set on the element that reveals each outcome, so a browser can prove every play reveals the platform's predetermined result. - [Template data contract (HTML)](https://marketplace.rafflex.io/docs/template-context): the same reference as a web page. - [MCP server reference](https://marketplace.rafflex.io/docs/mcp.md): the server URL, sign in and scopes, every tool with its inputs and output fields, error and check issue codes, upload limits, rate limits, and guard rails. - [Approved libraries](https://marketplace.rafflex.io/docs/libraries.md): every approved third party JavaScript build (such as three.js) with its version, contents, shared URL, SHA-256, and licence notice, plus how to reference one through the files map and how to request another. - [Local dev kit](https://marketplace.rafflex.io/docs/dev-kit.md): the `@rafflex/dev` command line kit that keeps every product the creator sells in one workspace on their computer, for building, previewing, and checking templates: the workspace layout (`rafflex.json`, one folder per product under its type folder), every command and its JSON output, the quality loop (`verify` before every push: the house style, lint, the check, and with Playwright a browser run through and game playthrough, with tests and screenshots kept in each product folder), version control and `restore`, the sync loop with the MCP tools, versions and release notes, how assets map to tags, the `check --json` output and exit codes, known renderer differences, and the public rule endpoints below. The platform's rules as data (public JSON, no sign in, versioned by a content hash in each document): - [/dev-kit/manifest.json](https://marketplace.rafflex.io/dev-kit/manifest.json): every other document's URL and current version, where the kit starts. - [/dev-kit/rules.json](https://marketplace.rafflex.io/dev-kit/rules.json): the sandbox whitelist and caps, the template size limit, the banned patterns as JavaScript compatible expressions, the script rules, every check issue code with its fix, the upload rules, and the preview CSP. - [/dev-kit/contexts.json](https://marketplace.rafflex.io/dev-kit/contexts.json): the sample data a game renders with in each play scenario and play count, and the sample data a block renders with. - [/dev-kit/skeletons.json](https://marketplace.rafflex.io/dev-kit/skeletons.json): the starter templates for a game and a block. - [/dev-kit/libraries.json](https://marketplace.rafflex.io/dev-kit/libraries.json): every approved library build with its version, shared URL, SHA-256, licence, and default tag. - [/dev-kit/fixtures.json](https://marketplace.rafflex.io/dev-kit/fixtures.json): templates rendered by the platform's own renderer, so a local renderer can prove it matches. - [/dev-kit/prompts.json](https://marketplace.rafflex.io/dev-kit/prompts.json): every prompt the Rafflex app shows, with the placeholders the kit fills in, the AI apps it offers to connect, and the pages it links.