g14o
Getting Started

Installation

Install commands and peer dependencies for each @g14o package.

@g14o/cache

pnpm add @g14o/cache @upstash/redis

@upstash/redis is a peer dependency — required for Redis-backed cache in production.

@g14o/ratelimit

pnpm add @g14o/ratelimit @upstash/redis @upstash/ratelimit

Peers are optional for metadata-only installs; add both Upstash packages for Redis-backed limits in production.

@g14o/ratelimit-nextjs

pnpm add @g14o/ratelimit-nextjs @upstash/redis @upstash/ratelimit next

next is required. Upstash packages are optional peers (in-memory fallback without Redis).

@g14o/env-core

pnpm add @g14o/env-core zod

Install only the validator you use: zod, valibot, or arktype (all optional peers).

@g14o/paystack

pnpm add @g14o/paystack zod

@g14o/paystack-better-auth

pnpm add @g14o/paystack @g14o/paystack-better-auth better-auth zod

Requires @g14o/paystack for the API client.

Next steps

PackageGuide
CacheSetup
Rate limitSetup
Rate limit (Next.js)Setup
EnvOverview
PaystackClient
Paystack + Better AuthServer setup

On this page