Skip to content

Installation

This guide covers how to install Flowfull Client in your project.

NPM

Install using npm:

bash
npm install @pubflow/flowfull-client

Yarn

Install using Yarn:

bash
yarn add @pubflow/flowfull-client

PNPM

Install using pnpm:

bash
pnpm add @pubflow/flowfull-client

Bun

Install using Bun:

bash
bun add @pubflow/flowfull-client

Platform Requirements

Flowfull Client works in all JavaScript environments:

PlatformSupportedNotes
React✅ YesVite, Create React App, etc.
React Native✅ YesExpo, bare React Native
Next.js✅ YesApp Router, Pages Router, Server Components
Node.js✅ YesVersion 18+
Bun✅ YesAll versions
Browser✅ YesAll modern browsers

Dependencies

Flowfull Client has zero dependencies! It's a standalone package that works out of the box.

TypeScript

Flowfull Client is written in TypeScript and includes type definitions. No additional @types packages are needed.

typescript
import { createFlowfull } from '@pubflow/flowfull-client';

const api = createFlowfull('https://api.example.com');
// Full TypeScript support!

React Native Setup

For React Native, you need to install @react-native-async-storage/async-storage for session storage:

bash
npm install @react-native-async-storage/async-storage

Then configure it in your app:

typescript
// app.json or app.config.js
{
  "expo": {
    "plugins": [
      "@react-native-async-storage/async-storage"
    ]
  }
}

Next Steps

Now that you have Flowfull Client installed, check out:

Troubleshooting

Module not found

If you get a "module not found" error, make sure you've installed the package:

bash
npm install @pubflow/flowfull-client

TypeScript errors

If you get TypeScript errors, make sure your tsconfig.json includes:

json
{
  "compilerOptions": {
    "moduleResolution": "node",
    "esModuleInterop": true
  }
}

React Native AsyncStorage error

If you get an AsyncStorage error in React Native, install the package:

bash
npm install @react-native-async-storage/async-storage

Version Compatibility

Flowfull ClientNode.jsReactReact NativeNext.js
1.x18+16.8+0.60+13+

Need Help?