Package Exports
- @flowtag/variables
Readme
Flowtag Variables
Runtime agnostic client for Flowtag variables
Installation
# pnpm
pnpm add @flowtag/variables
# bun
bun add @flowtag/variables
# yarn
yarn add @flowtag/variables
# npm
npm install @flowtag/variablesUsage
import { createClient } from "@flowtag/variables";
const flowtag = createClient(process.env.FLOWTAG_VARIABLES_TOKEN!);
// Toggle (boolean)
const darkMode = await flowtag.getVariable<boolean>("wkpthnbqafoijselxvudcmrz"); // replace with your variable id
// JSON variable (typed object)
const config = await flowtag.getVariable<{ limit: number }>("zdjylvmocbqsaepxnrfkuthw"); // replace with your variable idDocumentation
You can find it here
Contributing
Thanks for your interest in contributing to Flowtag! 💛
Development setup
Fork the repo and clone your fork.
Install dependencies (pnpm):
pnpm install
Build the package:
pnpm build
Making changes
Keep PRs small and focused.
If you're adding a feature, please include:
- a brief explanation of the use case
- tests (when applicable)
- documentation updates (README/examples) if the public API changes
Commit & PR guidelines
Use clear commit messages (e.g.
fix: ...,feat: ...,docs: ...).Open a PR against the
mainbranch.In the PR description, include:
- what changed
- why it changed
- how to test it locally
Reporting bugs / requesting features
- For bugs: include reproduction steps, expected vs actual behavior, and environment details (OS, Node/Bun version, package version).
- For features: describe the problem you're trying to solve and a suggested API (if you have one).
Code style
- Follow the existing code style and patterns in the repo.
- Keep public APIs stable and well-documented.
- Prefer small, composable functions and readable names over cleverness.
By contributing, you agree that your contributions will be licensed under the project's license.
License
useflowtag/variables-js is licensed under Apache-2.0 License
© 2026 Flowtag. All rights reserved.