Quickstart
Get Flux running in your project in under 5 minutes.
Install the SDK
Rust (Cargo)
cargo add flux-sdkPython (pip)
pip install flux-sdkNode.js (npm)
npm install @flux/sdkInitialize Flux
Rust
use flux_sdk::Flux;
fn main() {
let flux = Flux::init("your-api-key");
// Auth is ready
let user = flux.auth().verify_session(&token)?;
// Feature flags are ready
if flux.flags().is_enabled("new-dashboard", &user) {
// show new dashboard
}
// Billing is ready
let plan = flux.billing().get_plan(&user.)?;
}Python
import flux
flux.("your-api-key")
# Auth is ready
user = flux.auth.()
# Feature flags are ready
if flux.flags.("new-dashboard",):
# show new dashboard
pass
# Billing is ready
plan = flux.billing.(.)Node.js
import Flux from '@flux/sdk';
const flux = Flux.init('your-api-key');
// Auth is ready
const user = await flux.auth.verifySession(token);
// Feature flags are ready
if (await flux.flags.isEnabled('new-dashboard', user)) {
// show new dashboard
}
// Billing is ready
const plan = await flux.billing.getPlan(user.orgId);Next Steps
- Auth & SSO — Set up authentication for your app
- Feature Flags — Roll out features safely
- Billing — Add subscriptions and usage metering