Skip to main content

Installation

Add Syft to your next.js application in less than 5 minutes.

npm install --save @syftdata/next

Include the Analytics Script

To enable Syft in your app you'll need to expose the Syft context. Include <SyftProvider />, at the top level of your application as shown below:

src/pages/_app.tsx
import { SyftProvider } from "@syftdata/next";

export default function MyApp({ Component, pageProps }) {
return (
<SyftProvider>
<Component {...pageProps} />
</SyftProvider>
);
}