Module · GREM

Growth & Analytics Engine

SEO, event analytics, and waitlist tooling — built for founders who want growth infrastructure without the privacy tradeoffs.

GREM — Port 8002

What GREM gives you

SEO Automation Engine

Generates dynamic sitemap.xml and robots.txt from your content. Adds structured data (JSON-LD) for articles, products, and organizations. Meta tags managed server-side — no client-side SEO hacks.

Server-Side Analytics Bus

Track custom events via a single POST endpoint. Events include user_id, session_id, page, action, and arbitrary metadata. No third-party scripts, no ad blockers, no GDPR nightmares.

Waitlist + Referral System

Capture email signups before launch. Each signup gets a unique referral code. Track referral chains and automatically move high-referrers up the waitlist.

Conversion Event Tracking

Pre-wired events for subscription_started, trial_activated, and payment_failed are sent from PREM automatically. Visualize your conversion funnel without extra instrumentation.

Public Feedback Board

Embeddable feedback widget and standalone board. Users submit bug reports and feature requests. Anonymous voting via unique identifiers. Supabase RPCs handle vote counts atomically.

Sitemap + Robots Management

Serve dynamically generated sitemap.xml and robots.txt from GREM's API. Works with Vercel's edge network. Ping search engines on content updates via IndexNow.

Install GREM

terminal
# Scaffold GREM module
$ npx kiban@latest init --module grem

# Run migrations
$ kiban migrate

# Add to your Next.js root layout:
import { KibanAnalytics } from '@kiban/grem-client'

# Track a custom event:
track('checkout_started', { plan: 'pro' })

✔ GREM running on http://localhost:8002

Privacy-first analytics

GREM's analytics bus stores events in your own Supabase database — not a third-party service. There are no tracking cookies, no fingerprinting, and no cross-site data sharing. IP addresses are hashed before storage. Session IDs are randomly generated per visit and expire after 30 minutes of inactivity.

The feedback board uses a similar privacy model: votes are linked to auser_identifier (hashed email or random UUID) — never to a persistent cookie or IP address.

How to integrate

Scaffold GREM

Run kiban init --module grem. The CLI adds GREM_BACKEND_URL to your .env and wires the frontend analytics client.

Run migrations

kiban migrate runs feedback_items, feedback_votes, and waitlist_signups migrations in order, with referral tracking columns.

Embed the analytics snippet

Add <KibanAnalytics /> to your root layout. It hooks into Next.js router events and sends page_view automatically.

Track custom events

Call track('checkout_started', { plan: 'pro' }) anywhere in your app. Events are batched and flushed server-side every 5 seconds.

GREM is included in Pro and Enterprise

Growth infrastructure should not cost a monthly SaaS fee on top of your stack. With a Kiban Pro or Enterprise license, GREM is yours — perpetually, with no event volume caps and no per-seat pricing.