Replicache is framework agnostic, and you can use most any libraries and frameworks you like.
Create an empty Next.js project:
npx create-next-app --example=basic-css chat
Install Replicache and a few other utilities we'll use for this sample:
npm install replicache replicache-react nanoid pg pg-mem pg-promise pusher pusher-js
Next, we'll design our Client View – the schema for our client-side data.