Open Source Feature Flags

Ship features with confidence

Deploy faster and safer with Togglely. The open-source feature flag platform built for teams that ship. Control releases, run experiments, and manage complexity.

Self-Hosted· Your data stays with you
Open Source· MIT Licensed on GitHub
Lightning Fast· < 1ms local evaluation
Unlimited· No usage limits
import { 
  TogglelyProvider, 
  useToggle, 
  useStringToggle,
  useTogglelyState,
  useTogglelyContext 
} from '@togglely/sdk-react';

// Wrap your app with the provider
function App() {
  return (
    <TogglelyProvider
      apiKey={process.env.REACT_APP_TOGGLELY_KEY}
      environment="production"
      baseUrl="https://api.togglely.de"
    >
      <Dashboard />
    </TogglelyProvider>
  );
}

// Use hooks in your components
function Dashboard() {
  // Boolean toggle with default fallback
  const newDashboard = useToggle('new-dashboard', false);
  
  // String toggle
  const theme = useStringToggle('theme', 'light');
  
  // Number and JSON toggles also available
  const limit = useNumberToggle('max-items', 10);
  const config = useJSONToggle('ui-config', {});
  
  // Access ready/offline state
  const { isReady, isOffline } = useTogglelyState();
  
  // Set user context for targeting
  const { setContext } = useTogglelyContext();
  
  useEffect(() => {
    setContext({ userId: currentUser.id, plan: currentUser.plan });
  }, []);

  if (!isReady) return <div>Loading...</div>;
  return newDashboard ? <NewDashboard theme={theme} /> : <OldDashboard />;
}

// Or use the FeatureToggle component
import { FeatureToggle } from '@togglely/sdk-react';

<FeatureToggle toggle="new-dashboard" fallback={<OldDashboard />}>
  <NewDashboard />
</FeatureToggle>

Built for modern development teams

Self-Hosted
TypeScript
REST API
Enterprise Ready

Features

Everything you need to ship

Togglely provides a complete feature flag solution with multi-tenancy, environments, targeting, and audit trails — all in one platform.

Real-time Feature Toggles

Enable or disable features instantly across all your applications without redeploying. Reduce risk and ship faster.

Multi-Environment Support

Seamlessly manage Dev, Staging, and Production environments. Sync flags or keep them isolated per environment.

Granular Targeting

Target specific users, groups, or segments. Support for percentages, user attributes, and custom rules.

Enterprise Security

Role-based access control with Owner, Admin, Member, and Viewer roles. Secure API keys for every use case.

Complete Audit Trail

Track every change with detailed audit logs. Know who changed what, when, and why.

Multi-Tenant Architecture

Built-in Organizations and Brands support. Perfect for SaaS companies and enterprise deployments.

Three steps to feature freedom

01

Create

Set up your organization and create feature flags with our intuitive dashboard.

02

Integrate

Install our lightweight SDK or use the REST API to check flags in your code.

03

Control

Toggle features instantly, target specific users, and roll out with confidence.

Built for scale, designed for developers

Whether you are a solo developer or an enterprise team, Togglely scales with you. Local evaluation means zero latency, and our architecture handles millions of requests.

< 1ms
Evaluation Time
99.9%
Uptime SLA
Unlimited
Feature Flags
0
Cost

Why developers choose Togglely

  • Self-hosted — your data never leaves your infrastructure
  • Open source — fully auditable and customizable
  • Offline support — SDK works without internet connection
  • Role-based access — fine-grained permissions
  • Audit logging — complete history of changes
  • No vendor lock-in — export your data anytime

Ready to ship with confidence?

Get started in minutes with Docker, or try our live demo to see Togglely in action.