Skip to content

About

Official runnable sample apps for Toggly feature flags and experiments

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

352 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Toggly

Toggly Samples

Runnable example apps for Toggly — feature flags, progressive delivery, and experiments across popular frameworks.

License: MIT Documentation Website Security

What's in this repository

Official sample applications that show how to integrate Toggly SDKs in real apps. Each folder is a standalone project with its own README and setup steps.

Get started

  1. Create a free app at toggly.io (Always Free plan available).
  2. Pick a sample from the catalog below.
  3. Follow that sample's README (env keys, feature flags, and run commands).

SDK install guides live in docs.toggly.io and in the SDK monorepo.

Samples

Sample Stack Path What it demos
SvelteKit SDK Showcase Svelte5 + SvelteKit2 / Node sveltekit-sdk/ Request hooks, signed hydration, native gates, actions, entities, filter presets and lifecycle
Svelte SDK Workshop Svelte 5 + Vite svelte-sdk/ Native Feature/stores, session identity, Order context, variants, local gates and offline exercises with @ops-ai/svelte-feature-flags-toggly
Vue SDK Workshop Vue 3 + Vite vue-sdk/ Native Feature/composables, user and Order context, variants, local gates, signed responses and offline exercises
Astro SDK Sample Astro 7 (SSG/SSR) + React/Vue/Svelte islands astro-sdk/ Server Feature gates, middleware and x-feature page gate, request identity, Order VIP, filter matrix and mixed islands with @ops-ai/astro-feature-flags-toggly
SolidJS SDK Workshop SolidJS 1.9 + Vite solidjs-sdk/ Native browser signals, signed definitions, provider-scoped targeting, Order context and local gates
SolidStart SDK Workshop SolidStart 2 + Node 24 solidstart-sdk/ Request-scoped backend guards, signed public SSR hydration, navigation, entity and local gates
Next.js SDK Showcase Next.js 15 (App Router) nextjs-server-sdk/ Server Components, Client hooks, and Edge middleware with @ops-ai/nextjs-toggly-*
Elixir Phoenix SDK Showcase Phoenix 1.8 / LiveView 1.2 / OTP 29 elixir-phoenix-sdk/ Local evaluation, signed definitions, Plug routes and isolated LiveView contexts
Nuxt SDK Showcase Nuxt 4 / Node 22 nuxt-sdk/ Vue gates, Nitro request context, Order entities, eleven filters and protected handlers with @ops-ai/nuxt-toggly
Remix SDK Sample Remix 2.17 remix-sdk/ Loaders/actions, request-scoped identity, browser gates, Order context and filter matrix with @ops-ai/remix-toggly-*
React Router SDK Sample React Router 8 + React 19 react-router-sdk/ Framework-mode loaders/actions, request-scoped identity, Feature+negate gates, Order context and filter matrix with @ops-ai/react-router-toggly
Fastify SDK Showcase Fastify 5 nodejs-fastify-sdk/ Request-scoped plugin context, native gates, Order and filter matrix with @ops-ai/toggly-fastify
Rust Actix SDK Workshop Rust 1.98.1 + Actix-web 4.15.0 rust-actix-sdk/ Native Feature extractor, TogglyMiddleware/TogglyData, signed fixtures, gates, Order and eleven-filter matrix
Rust Rocket SDK Workshop Rust 1.98.1 + Rocket 0.5.1 rust-rocket-sdk/ Native Feature guard, request context, signed fixtures, gates, Order and eleven-filter matrix
Rust Axum SDK Workshop Rust 1.98.1 + Axum 0.7.9 rust-axum-sdk/ Native Feature extractor, TogglyLayer/state, signed fixtures, gates, Order and eleven-filter matrix
Go SDK Sample Go 1.27 + net/http go-sdk/ Native templates and HTTP gates, request identity, Order, filters, signed definitions and isolated variants
Angular SDK Workshop Angular 22 standalone angular-sdk/ Native templates, directives, variants, route guard, local gates and Order context
Ruby Rails SDK Sample Rails 8.1 / Ruby 4 ruby-rails-sdk/ Native Railtie and view/controller gates, request contexts, Orders, filter matrix and cache snapshots
PHP Laravel SDK Sample PHP 8.5 + Laravel 13 php-laravel-sdk/ Native Blade, middleware, attributes, request identity, variants, filter matrix and explicit Order support limits
PHP WordPress SDK Sample PHP 8.5 + WordPress 7.1 php-wordpress-sdk/ Native plugin, shortcodes, request identity, Order, filter matrix, cron lifecycle and explicit PHP evaluator limits
JavaScript SDK Sample Vanilla TypeScript + Vite javascript-sdk/ Browser flags, variants, session identity, entity context, and live refresh with @ops-ai/feature-flags-toggly
React SDK Showcase React 19 + Vite react-sdk/ Provider, declarative and programmatic gates, session identity, Order context, eleven-filter matrix, variants, and safe no-key defaults with @ops-ai/react-feature-flags-toggly
Electron SDK Sample Electron 44 + React 19 electron-sdk/ Secure main/preload/renderer feature gates, desktop session context, Order context, cache and signed definition updates with @ops-ai/electron-feature-flags-toggly
Node Express SDK Sample Express 5 nodejs-express-sdk/ Request middleware, HTTP gates, identities, Order context and filter matrix
Node Koa SDK Sample Koa 3 nodejs-koa-sdk/ Request-scoped middleware, native gates, identities, Order context and all eleven filters with @ops-ai/toggly-koa
NestJS SDK Sample NestJS 11 HTTP nestjs-sdk/ Request-scoped DI, decorators, guards, entity context and filters
Node Hono SDK Showcase Hono 4 / Node 22 nodejs-hono-sdk/ Request context, middleware gates, eleven filters and Order entities with @ops-ai/toggly-hono
Docusaurus SDK Workshop Docusaurus 3 + React docusaurus-sdk/ Native MDX/React flags, core Order mapping, live snapshots and build/browser boundaries
Blazor SDK Workshop .NET 8 SSR / Server / WebAssembly / Auto blazor-sdk/ Native gates, scoped identity, Order, filters, hydration and lifecycle
.NET SDK Workshop ASP.NET Core 10 MVC / Razor dotnet-sdk/ Native gates, variants, request targeting, Order, filters, Hangfire, HealthChecks and NSwag
.NET Embedded Dashboard ASP.NET Core 8 / 10 Razor + SQLite dotnet-embedded-dashboard/ Packaged local dashboard, manual catalog import, targeting, entity context and persistent offline evaluation
.NET Client SDK Showcase .NET 8 console / Avalonia desktop dotnet-client-sdk/ Signed frontend delivery, session identity, Order context, local gates, offline defaults and UI-safe lifecycle
Java Servlet SDK Sample Java 26 / Tomcat 11 / Servlet 6.1 java-servlet-sdk/ Native context and gate filters, signed definitions, session identity, Order context and eleven-filter matrix
Java Spring Boot SDK Sample Spring Boot 3.5.16 + starter 1.6.0 java-spring-boot-sdk/ Starter auto-config, @FeatureEnabled / @ConditionalOnFeature, request context, Actuator, Order and eleven-filter matrix
Java Spring MVC SDK Sample Spring MVC 7 + Tomcat 11 + FreeMarker java-spring-mvc-sdk/ Native context/gate interceptors, Boolean argument injection, model-driven templates, Order and eleven-filter matrix
Java Spring WebFlux SDK Sample Spring WebFlux 7 + Reactor Netty + Java 26 java-spring-webflux-sdk/ Native reactive filters/client, isolated async users and Orders, eleven filters, signed refresh and cancellation
Python Django SDK Sample Python 3.14 + Django 6.1 python-django-sdk/ Native middleware, decorators, templates, session identity, Order and eleven-filter matrix
Python Flask SDK Workshop Flask 3 + Python 3.14 python-flask-sdk/ Native extension, Jinja, decorators, Blueprint gates, request identity and Order/filter matrix
Python FastAPI SDK Sample FastAPI 0.141 + Python 3.14 python-fastapi-sdk/ Native ASGI middleware, dependencies, router gates, async variants, request identity, Order and filter matrix
Ruby SDK Sample Ruby 4 / Rack 3 / Puma 8 ruby-sdk/ Native request contexts, ERB gates, Order, eleven filters, snapshots and lifecycle

New to feature flags? Start with a sample's first-toggle exercise, then its source-reading map. Follow configuration → initialization → one flag check → enabled/disabled branches before adding identity, Order context and filters. The JavaScript sample gives a browser-focused introduction; Next.js compares server and browser execution; Fastify shows request evaluation without a UI SDK. Sample fixtures and placeholder-key checks are not evidence of live Toggly app provisioning. Use each README's configuration recipe for your own application.

All new samples follow the Sample Contract and the shared flag and app template. Follow the application setup guide for dashboard controls and the management API procedure when a filter type is missing from the picker.

Related

License

MIT — see LICENSE.

About

Official runnable sample apps for Toggly feature flags and experiments

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages