machhub-nextjs-react

Integrate MACHHUB SDK into Next.js and React apps with templates and hooks.

1|Updated Jan 16, 2026
One-click install
npx skills add https://github.com/machhub-dev/skills --skill machhub-nextjs-react
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: machhub-nextjs-react
Source: https://github.com/machhub-dev/skills/tree/main/machhub-nextjs-react
Command: npx skills add https://github.com/machhub-dev/skills --skill machhub-nextjs-react

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps developers integrate MACHHUB SDK with Next.js and React applications, enabling a cohesive setup across App Router, Server/Client Components, and React hooks, with templates for rapid development and production-ready configurations.

Core Features & Use Cases

  • Zero-config integration via MACHHUB Designer Extension with sdk-context.tsx for rapid development.
  • Production-ready manual configuration using sdk-context.manual.tsx and environment variables.
  • Reusable hooks and components for data collections, authentication, layout providers, protected routes, and server/client patterns in Next.js apps.

Quick Start

Install a new Next.js app, copy templates from machhub-nextjs-react/templates into your project, and start coding with zero-config setup. For production deployments, switch to manual configuration and populate NEXT_PUBLIC_* env vars.

Frequently Asked Questions about machhub-nextjs-react

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I integrate an SDK with Next.js App Router and Server Components?

To integrate an SDK with Next.js App Router and Server Components, use a provider pattern to enforce client-side usage, wrapping your application routes to enable data and authentication hooks across the component tree.

What is the best way to set up React authentication hooks across Next.js app routes?

The best way to set up React authentication hooks across Next.js app routes is by using a reusable layout provider pattern that enforces client-side usage, ensuring authentication state is consistently accessible throughout your application components.

Can I use zero-config templates for rapid development and switch to manual configuration for production?

Yes, you can use zero-config templates via the Designer Extension for rapid development and switch to manual configuration using environment variables to achieve a production-ready setup for your React application.

Does the MACHHUB SDK integration support both Server and Client Components in Next.js?

Yes, MACHHUB SDK integration supports both Server and Client Components in Next.js by enforcing a client-side provider pattern, allowing you to leverage reusable hooks while maintaining App Router compatibility.

How do I configure environment variables for a production Next.js and React SDK setup?

To configure environment variables for a production Next.js and React SDK setup, populate your NEXT_PUBLIC_* variables and switch from zero-config templates to a manual configuration file to ensure secure and stable deployments.