Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Dec 12, 2025. It is now read-only.
/flagsPublic archive

⛳️ Feature Flags for Next.js

License

NotificationsYou must be signed in to change notification settings

happykit/flags

Repository files navigation


 

Add Feature Flags to your Next.js application with a single React Hook. This package integrates your Next.js application with HappyKit Flags. Create a freehappykit.dev account to get started.

Key Features

  • written for Next.js
  • integrate using a simpleuseFlags() hook orgetFlags() function
  • supports App Router (Server Components & Client Components)
  • only 2 kB gzipped size
  • extremely fast flag responses (~50ms)
  • supports Server-Side Rendering and Static Site Generation
  • supports Middleware and Edge Functions
  • supports User Targeting, Custom Rules and Rollouts

Want to see a demo?HappyKit Flags Demo


Documentation

See thefull documentation for setup instructions and usage guides.

Examples

This is roughly what the usage of feature flags looks like once you're up and running.

// pages/index.jsimport{useFlags}from"flags/client";exportdefaultfunctionIndexPage(props){constflagBag=useFlags();returnflagBag.flags.greeting==="dog" ?"Who's a good boye" :"Hello";}

The self documenting examples atflags.happykit.dev show how to use@happykit/flags for client-side, static and server-side rendering.

Full Tutorial

A full tutorial including setup instructions is published onfrontend-digest.com.


[8]ページ先頭

©2009-2026 Movatter.jp