Use this Next.js example app as a tool to start building an app with XMTP. This basic messaging app has an intentionally unopinionated UI to help make it easier for you to build with.
The app is built using the React XMTP client SDK, React, Next.js, and RainbowKit.
To keep up with the latest example app developments, see the Issues tab in this repo.
To learn more about XMTP and get answers to frequently asked questions, see the XMTP documentation.
This example app isn't a complete solution. For example, the list of conversations doesn't update when new messages arrive in existing conversations.
- In
packages/react-sdk
, runyarn build
to build the React SDK. - In
examples/nextjs
, runyarn dev
to start the development server.
yarn build
: Builds the example appyarn clean
: Removesnode_modules
,dist
, and.turbo
foldersyarn dev
: Launches the example app and watches for changes, which will trigger a rebuildyarn format
: Runs prettier format and write changesyarn format:check
: Runs prettier format checkyarn lint
: Runs ESLintyarn typecheck
: Runstsc