Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
Next.js movie database template demonstrating Xata's typo-tolerant full-text search, aggregations, and a type-safe ORM.
XMDB (Xata Movie Database) is a Next.js starter template that demonstrates how to build a search-driven movie catalog on Xata, using typo-tolerant full-text search, aggregations, and a type-safe ORM. The app is published by Xata under the xataio GitHub organization and ships with one-click deployment to Vercel.
XMDB is a working reference application for the Xata serverless data platform, built with the Next.js App Directory and React Server Components. It takes a Xata workspace connection (through a XATA_API_TOKEN environment variable) and an optional seed command, and outputs a complete web app for browsing, searching, and filtering a movie database. The project is maintained by Xata and lives in the xataio/xmdb repository on GitHub.
@xata.io/client generates TypeScript types from the database schema, giving end-to-end type safety from queries to components.pnpm, and connects the Xata integration automatically.pnpm xata:seed inserts 100 rows of mock movie data so the app is populated immediately after linking to a workspace.After deploying or cloning, run pnpm xata:link to connect the app to a Xata workspace and create a .xatarc file. Then run pnpm xata:seed to load 100 mock movie rows, and pnpm dev to start the development server at http://localhost:3000. Local setup requires a XATA_API_TOKEN; Vercel populates VERCEL_URL automatically, and locally it defaults to http://localhost:3000.
Yes. The app uses Xata as its database and search backend, so you need a Xata workspace and a XATA_API_TOKEN to run it locally or on Vercel.
Run pnpm xata:seed after linking the project to your Xata workspace. The seed script adds 100 rows of simulated movie records to your database.
The template uses Next.js App Directory, React Server Components, TailwindCSS for styling, Zod for schema validation, @xata.io/client as the ORM, vercel/OG for social sharing images, and react-icons for iconography.
Yes, the repository includes a Deploy with Vercel button that sets up the project, installs dependencies, and integrates Xata through the Vercel marketplace.
The project is in the xataio/xmdb repository on GitHub, with documentation and setup instructions in the README.
