Nothing to it...
npm install replicache replicache-react nanoid
... well, almost nothing.
Replicache uses Wasm internally. Most bundlers don't deal with this well yet, so it's easiest to just serve it as a static asset.
Copy the Replicache Wasm module to your static assets directory:
cp node_modules/replicache/out/*.wasm public/