next

Embed emulators in Next.js apps with OAuth and route handlers.

2|Updated May 13, 2026
One-click install
npx skills add https://github.com/rebornix/emulate --skill next-rebornix
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: next
Source: https://github.com/rebornix/emulate/tree/main/skills/next
Command: npx skills add https://github.com/rebornix/emulate --skill next-rebornix

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @emulators/adapter-next, @emulators/github, @emulators/google, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides a Next.js adapter for embedding emulators directly into Next.js applications, solving the challenge of integrating emulators with Next.js for OAuth, state management, and persistent storage.

Core Features & Use Cases

  • Next.js Integration: Embed emulators within a Next.js app, enabling direct interaction with emulated services.
  • OAuth for Vercel: Sets up same-origin OAuth for Vercel preview deployments, simplifying OAuth flows.
  • Catch-All Route Handler: Creates a catch-all route handler for emulator traffic, making it easy to serve emulator content.
  • Auth.js/NextAuth Configuration: Configures Auth.js/NextAuth with embedded emulators for secure authentication.
  • Persistence: Adds persistence to embedded emulators to maintain state across restarts.
  • Use Case: For a developer building a Next.js application that requires OAuth with GitHub or Google, this Skill allows for easy integration and state management of emulated services.

Quick Start

Use the next skill to integrate GitHub emulators into your Next.js app by running the command: npm install @emulators/adapter-next @emulators/github.

Frequently Asked Questions about next

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

FAQPage Schema
How do I integrate emulators into a Next.js application for OAuth?

To integrate emulators into a Next.js application for OAuth, you can use a Next.js adapter to embed emulated services directly, handling OAuth flows and creating catch-all route handlers for emulator traffic.

How do I set up same-origin OAuth for Vercel preview deployments?

Setting up same-origin OAuth for Vercel preview deployments involves embedding emulators within your Next.js app, which simplifies the OAuth flows specifically for Vercel preview environments.

Can I configure Auth.js and NextAuth with embedded emulators in Next.js?

Yes, you can configure Auth.js and NextAuth with embedded emulators in Next.js, enabling secure authentication directly within your application using emulated services.

Do I need specific packages to embed GitHub and Google emulators in Next.js?

Yes, to embed GitHub and Google emulators in Next.js, you need to install specific packages like @emulators/adapter-next along with @emulators/github or @emulators/google.

Does this approach support state persistence for emulators across restarts?

Yes, this approach supports state persistence for emulators across restarts by adding persistence configurations to the embedded emulators within your Next.js application.