Introduction

ClickBase is a Backend-as-a-Service: Authentication, a JSON document database, realtime updates, security rules and file storage, exposed through a REST API and a tiny JavaScript SDK. The API surface is intentionally close to Firebase so existing knowledge carries over.

Concepts

TermMeaning
ProjectAn isolated app backend with its own users, database, files and keys. URL: https://clickbase.thepakclicktes.com/v1/{projectId}/…
API key cb_pk_…Public key you ship in browser/mobile apps. Identifies the project; security rules apply.
Secret key cb_sk_…Server-only key. Bypasses rules, manages users. Never expose it.
Access tokenJWT (1 hour) returned after sign in; sent as Authorization: Bearer.
Refresh token30-day token used to get new access tokens (SDK does this automatically).
Collection / DocumentLike a table / row, but each document is free-form JSON.

Architecture

Each project gets a private SQLite database on the ClickBase server. Reads/writes go through PHP; realtime uses a change feed streamed over Server-Sent Events. This runs on ordinary PHP hosting, so the service is cheap and portable.

What it's good for

POS systems, school/college portals, small e-commerce, admin dashboards, IoT logging, hackathon & FYP projects, mobile app backends (Flutter/React Native via REST).

Not (yet) for

Millions of concurrent users, complex joins/aggregations, multi-region replication. Be honest with your users, we are with ours.


Was this page helpful? Tell us. · Download SDK