# flatbase

> Flatbase JavaScript client — createClient for Auth, Database, Storage and Functions

Latest version **1.0.0** (published 2026-10-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install flatbase
pnpm add flatbase
yarn add flatbase
bun add flatbase
```

## Health

**Score 65/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; recently updated; high maintenance score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2026-10-16 |
| First published | 2026-08-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=18 |
| Dependencies | 0 |
| Unpacked size | 17.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | rekov |
| Keywords | flatbase, baas, auth, storage, postgres |

## Links

- npm: https://www.npmjs.com/package/flatbase
- Homepage: https://flatbase.rekov.co/docs/javascript
- npm.io page: https://npm.io/package/flatbase

## Alternatives

- [@pothos/plugin-authz](https://npm.io/package/@pothos/plugin-authz.md) — 12.4K weekly downloads
- [@bounded-sh/client](https://npm.io/package/@bounded-sh/client.md) — 3.2K weekly downloads
- [@luigi-project/plugin-auth-oauth2](https://npm.io/package/@luigi-project/plugin-auth-oauth2.md) — 2.3K weekly downloads
- [@nocobase/plugin-verification](https://npm.io/package/@nocobase/plugin-verification.md) — 2.0K weekly downloads
- [escher-request](https://npm.io/package/escher-request.md) — 545 weekly downloads

## Recent versions

- 1.0.0 (latest) — 2026-10-16
- 0.3.0 — 2026-08-14

## README

# flatbase

Cliente oficial de Flatbase para JavaScript y TypeScript (Auth, Database, Storage, Functions).

**npm:** `flatbase@0.3.0` · CLI de gestión: [`flatbase-cli`](https://www.npmjs.com/package/flatbase-cli)

## Install

```bash
npm i flatbase
```

## Uso

```ts
import { createClient } from "flatbase";

const client = createClient(
  process.env.NEXT_PUBLIC_FLATBASE_URL!,
  process.env.NEXT_PUBLIC_FLATBASE_ANON_KEY!,
);
```

### Realtime channel

```ts
const channel = client
  .channel("changes")
  .on(
    "postgres_changes",
    { event: "INSERT", schema: "public", table: "messages" },
    (payload) => console.log(payload),
  )
  .subscribe();
```

Docs: https://flatbase.rekov.co/docs/javascript

## License

MIT

---
_Source: https://npm.io/package/flatbase · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
