NNextron Docs
Modules

Integration modules

Foundations for APIs, AI, payments, and background work.

tRPC

Generates a tRPC v11 router, example procedure, React Query client, provider, and App Router endpoint. Register additional routers in the generated server router.

npx @edwinfom/nextron@latest add trpc

AI

Generates an AI SDK provider setup, streaming chat endpoint, reusable chat components, and a starter view. Choose Anthropic, OpenAI, DeepSeek, or Google during project creation.

Add the provider API key listed in .env.example before calling the endpoint.

Stripe

Generates a server client, webhook utilities, and /api/stripe/webhook. Configure the endpoint in Stripe and test locally with:

stripe listen --forward-to localhost:3000/api/stripe/webhook

Polar

Generates a Polar server client, webhook utilities, and three App Router endpoints: /api/polar/checkout, /api/polar/portal, and /api/polar/webhook. Polar acts as the Merchant of Record and handles tax compliance for you.

npx @edwinfom/nextron@latest add polar

Redirect customers to checkout with a product query parameter:

/api/polar/checkout?products=<PRODUCT_ID>

Development runs against the Polar sandbox by default; set POLAR_SERVER=production when you go live. Configure the webhook endpoint (POST /api/polar/webhook) in your Polar organization settings and copy the signing secret into POLAR_WEBHOOK_SECRET.

Inngest

Generates an Inngest client, example function registry, and /api/inngest route. Start the local development server with:

npx inngest-cli@latest dev

On this page