Deploy faster and safer with Togglely. The open-source feature flag platform built for teams that ship. Control releases, run experiments, and manage complexity.
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
Everything you need to ship
Togglely provides a complete feature flag solution with multi-tenancy, environments, targeting, and audit trails — all in one platform.
Enable or disable features instantly across all your applications without redeploying. Reduce risk and ship faster.
Seamlessly manage Dev, Staging, and Production environments. Sync flags or keep them isolated per environment.
Target specific users, groups, or segments. Support for percentages, user attributes, and custom rules.
Role-based access control with Owner, Admin, Member, and Viewer roles. Secure API keys for every use case.
Track every change with detailed audit logs. Know who changed what, when, and why.
Built-in Organizations and Brands support. Perfect for SaaS companies and enterprise deployments.
Set up your organization and create feature flags with our intuitive dashboard.
Install our lightweight SDK or use the REST API to check flags in your code.
Toggle features instantly, target specific users, and roll out with confidence.
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.
Get started in minutes with Docker, or try our live demo to see Togglely in action.