ScalarFlux Playground
Examples...
Basic Math
Chaining
Flows
AI Generation (Pro)
▶ Run
Clear
Share
// ScalarFlux Playground // Free tier: 1000 operations/month, 1 AI generation/month const flux = new ScalarFlux({ apiKey: localStorage.getItem('sfx_token') }); // Basic operations console.log('Add:', flux.add(10, 5)); console.log('Chain:', flux.chain(100).divide(4).sqrt().get()); // Create flow const temp = flux.flow('c_to_f', [ {operation:'multiply', operand:9/5}, {operation:'add', operand:32} ]); console.log('0°C =', temp.exec(0).result + '°F'); // Check usage console.log('Usage:', flux.usage()); // Try AI (requires Pro) // const mortgage = await flux.generate("$400k loan at 6.5% for 30 years monthly payment"); // console.log(await mortgage.explain());
Output