Giter Site home page Giter Site logo

feature-flag-hypertune's Introduction

name slug description framework useCase css deployUrl demoUrl relatedTemplates
Hypertune Integration example
feature-flag-hypertune
Learn to use Hypertune, a powerful feature flag, A/B testing and app configuration platform.
Next.js
Edge Middleware
Tailwind
maintenance-page
feature-flag-apple-store

Feature flags, A/B testing and app configuration with Hypertune and Vercel Edge Config

Hypertune is a powerful feature flag, A/B testing and app configuration platform. Built for TypeScript, Next.js, Vercel and the modern stack with full type-safety and Git version control.

The Hypertune SDK works on both the server and the client, so you don't need to set up and use different SDKs in your Next.js app. It ships with the Hypertune CLI which auto-generates code from your project schema so you can access your flags, initialize context arguments and update flag logic with end-to-end type-safety.

This example uses Vercel Edge Config to initialize the Hypertune SDK with zero latency, so you can access your feature flags and run A/B tests with no performance impact to your app.

Deploy with Vercel

Deploy this example with Vercel in one click:

Deploy with Vercel

You'll be guided through installing the Hypertune Vercel integration and setting up the required environment variables.

Update your feature flag logic

Once you've deployed your project, open the Hypertune console to update your feature flag logic.

Develop your project locally

  1. Clone your project's repository and cd into it
  2. Run vercel link to link to the Vercel project
  3. Run vercel env pull .env.development.local to pull your environment variables
  4. Copy the NEXT_PUBLIC_HYPERTUNE_TOKEN variable from .env.development.local to .env
  5. Run npm i
  6. Run npm run dev

This example assumes your Hypertune project has an exampleFlag feature flag defined on the root field in your project schema. If you created a new Hypertune project while installing the integration, it will have this feature flag by default.

But if you connected an existing Hypertune project without this example flag, follow the instructions below.

Add new feature flags

To add new feature flags, define them in your project schema and configure their logic in the Hypertune console.

Then add them to hypertune.graphql and run npx hypertune to generate type-safe methods for them which you can use in your app.

feature-flag-hypertune's People

Contributors

sirmews avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.