{"id":13479082,"url":"https://github.com/happykit/flags","last_synced_at":"2025-05-15T05:08:28.103Z","repository":{"id":44412190,"uuid":"293348625","full_name":"happykit/flags","owner":"happykit","description":"⛳️ Feature Flags for Next.js","archived":false,"fork":false,"pushed_at":"2024-04-02T12:13:32.000Z","size":2183,"stargazers_count":1054,"open_issues_count":9,"forks_count":11,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-14T08:12:11.712Z","etag":null,"topics":["feature-flags","feature-toggles","nextjs","react","reactjs"],"latest_commit_sha":null,"homepage":"https://happykit.dev","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/happykit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-09-06T19:33:15.000Z","updated_at":"2025-04-03T20:58:18.000Z","dependencies_parsed_at":"2023-02-19T00:46:05.492Z","dependency_job_id":"89f65dce-e871-47a5-8f0b-cee4d4752c96","html_url":"https://github.com/happykit/flags","commit_stats":{"total_commits":271,"total_committers":4,"mean_commits":67.75,"dds":0.01845018450184499,"last_synced_commit":"b234b2abbda1fc35382e34434ffb730ddb128bf5"},"previous_names":[],"tags_count":33,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/happykit%2Fflags","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/happykit%2Fflags/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/happykit%2Fflags/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/happykit%2Fflags/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/happykit","download_url":"https://codeload.github.com/happykit/flags/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254276447,"owners_count":22043867,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["feature-flags","feature-toggles","nextjs","react","reactjs"],"created_at":"2024-07-31T16:02:08.971Z","updated_at":"2025-05-15T05:08:23.095Z","avatar_url":"https://github.com/happykit.png","language":"TypeScript","readme":"\u003ca id=\"nav\"\u003e\n  \u003cimg src=\"https://i.imgur.com/MS2Gtkj.png\" width=\"100%\" /\u003e\n\u003c/a\u003e\n\n\u003cdiv align=\"right\"\u003e\n  \u003ca href=\"https://github.com/happykit/flags/tree/master/package\"\u003eDocumentation\u003c/a\u003e\n  \u003cspan\u003e\u0026nbsp;•\u0026nbsp;\u003c/span\u003e\n  \u003ca href=\"https://flags.happykit.dev/\" target=\"_blank\"\u003eExamples\u003c/a\u003e\n  \u003cspan\u003e\u0026nbsp;•\u0026nbsp;\u003c/span\u003e\n  \u003ca href=\"https://medium.com/frontend-digest/using-feature-flags-in-next-js-c5c8d0795a2?source=friends_link\u0026sk=d846a29f376acf9cfa41e926883923ab\" target=\"_blank\"\u003eFull Tutorial\u003c/a\u003e\n  \u003cspan\u003e\u0026nbsp;•\u0026nbsp;\u003c/span\u003e\n  \u003ca href=\"https://happykit.dev/solutions/flags\" target=\"_blank\"\u003ehappykit.dev\u003c/a\u003e\n  \u003cspan\u003e\u0026nbsp;•\u0026nbsp;\u003c/span\u003e\n  \u003ca href=\"https://twitter.com/happykitdev\" target=\"_blank\"\u003e@happykitdev\u003c/a\u003e\n\u003c/div\u003e\n\n\u003cbr /\u003e\n\n\u0026nbsp;\n\nAdd Feature Flags to your Next.js application with a single React Hook. This package integrates your Next.js application with HappyKit Flags. Create a free [happykit.dev](https://happykit.dev/signup) account to get started.\n\n## Key Features\n\n- written for Next.js\n- integrate using a simple `useFlags()` hook or `getFlags()` function\n- supports App Router (Server Components \u0026 Client Components)\n- only 2 kB gzipped size\n- extremely fast flag responses (~50ms)\n- supports Server-Side Rendering and Static Site Generation\n- supports Middleware and Edge Functions\n- supports User Targeting, Custom Rules and Rollouts\n\n\u003cbr /\u003e\n\n\u003cdetails\u003e\n  \u003csummary\u003e\u003cb\u003eWant to see a demo?\u003c/b\u003e\u003c/summary\u003e\n\n  \u003cimg alt=\"HappyKit Flags Demo\" src=\"https://user-images.githubusercontent.com/1765075/94278500-90819000-ff53-11ea-912a-a59cfb491406.gif\" /\u003e\n  \u003cbr /\u003e\u003cbr /\u003e\n\u003c/details\u003e\n\n\u003cbr /\u003e\n\n## Documentation\n\nSee the [full documentation](https://github.com/happykit/flags/tree/master/package) for setup instructions and usage guides.\n\n## Examples\n\nThis is roughly what the usage of feature flags looks like once you're up and running.\n\n```js\n// pages/index.js\nimport { useFlags } from \"flags/client\";\n\nexport default function IndexPage(props) {\n  const flagBag = useFlags();\n\n  return flagBag.flags.greeting === \"dog\" ? \"Who's a good boye\" : \"Hello\";\n}\n```\n\nThe self documenting examples at [flags.happykit.dev](https://flags.happykit.dev/) show how to use `@happykit/flags` for client-side, static and server-side rendering.\n\n## Full Tutorial\n\nA full tutorial including setup instructions is published on [frontend-digest.com](https://medium.com/frontend-digest/using-feature-flags-in-next-js-c5c8d0795a2?source=friends_link\u0026sk=d846a29f376acf9cfa41e926883923ab).\n","funding_links":[],"categories":["TypeScript","📦 Legacy \u0026 Inactive Projects"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhappykit%2Fflags","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhappykit%2Fflags","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhappykit%2Fflags/lists"}