📦 Installation

This guide will help you install next-supa-utils and its peer dependencies.

1. Install via NPM/Yarn/PNPM

Run the following command in your terminal:

npm install next-supa-utils

If you use yarn:

yarn add next-supa-utils

2. Peer Dependencies

next-supa-utils relies on standard React, Next.js, and Supabase packages. Ensure your project meets the following version requirements:

PackageMinimum VersionNote
react>= 18.0.0Required for Server Components/Actions
next>= 14.0.0Requires App Router (app/)
@supabase/supabase-js^2.0.0Core Supabase JS SDK
@supabase/ssr>= 0.5.0Server-Side Rendering tools

If you just initialized a fresh Next.js project, you likely already meet all React and Next.js requirements.

3. Next Steps

Once installed, you must configure your Supabase credentials. Head over to the Environment Variables section to learn how.