An experimental starter that explores a new way to build applications on Reddit's developer platform.
- Devvit: A way to build and deploy immersive games on Reddit
- Vite: For compiling the webView
- React: For UI
- Express: For backend logic
- Tailwind: For styles
- Typescript: For type safety
Make sure you have Node 22 downloaded on your machine before running!
npm install -g devvit
devvit login- Create your project from the template

- Set up your new repo

- Clone the repo down to your computer

cd your-app-namenpm install- Make a subreddit: Make a private subreddit on Reddit.com. This will be where you do your own development. Go to Reddit.com, scroll the left side bar down to communities, and click "Create a community."
- Update the name in package.json: Find the
dev:devvitcommand and replaceYOUR_SUBREDDIT_NAMEwith the subreddit name you just created. - Update yaml file: In
devvit.yamlreplaceYOUR_APP_NAMEwith the name of your app. This will be shown to users that play your app. - Upload: Run
npm run deployand go through the prompts - Playtest: Run
npm run devto playtest your application in production by going to your subreddit. Create a post using the subreddit menu action called "Word Guesser: New Post".
npm run dev: Starts a development server where you can develop your application live on Reddit.npm run deploy: Uploads a new version of your appnpm run check: Type checks, lints, and prettifies your app
This template comes with a pre-configured cursor environment. To get started, download cursor and enable the devvit-mcp when prompted.