Every feature is a window in the user's stall.

Login, data, sharing, contacts, files, orgs and selling. All in one SDK, all landing in a database the user or their org owns, never on a server of yours.

LoginDataSharingSocialFilesOrganizationsSelling
Login STABLE
Sign-up and log-in in one call, with a Bazaar account. No passwords, sessions or user table in your app. The user's stall opens the first time they sign in. Limit: every user needs a Bazaar account. Login →
const bzr = new BazaarApp({ appId, loginRedirectUri })
bzr.login()
bzr.onLogin(() => render())
Data & realtime STABLE
Schema-less collections of JSON documents in the user's own database. Query, insert, subscribe: every open tab updates live. Limit: no queries across users. Data & realtime →
const tasks = bzr.collection("tasks")
await tasks.insertOne({ name: "Buy milk" })
await tasks.subscribeAll({}, { onAdd: render })
Sharing STABLE
Grant another user, an organization or anyone read or write on a collection, down to single documents. Nothing is copied; revoke and it's gone. Share links carry a grant, single-use if you like. Limit: a careless "anyone" grant is still a leak. Review shares like code. Sharing →
await bzr.permissions.create({
  collectionName: "lists",
  granteeType: GranteeType.USER, granteeId: friendId,
  types: [PermissionType.READ],
})
Social STABLE
Find people by handle, keep contacts, request connections. One address book shared by every Bazaar app, so your social app isn't empty on day one. Limit: the network is small today. Social →
const ana = await bzr.social.getUser({ handle: "ana" })
const contacts = await bzr.social.contacts.list()
Files BETA
Photos and documents next to the data, in the owner's storage and counted in their quota. Share them like anything else. Limit: 10 MB per file. Files →
await bzr.files.upload(file, { path: "photos/" })
Organizations STABLE
An organization gets its own database, apart from any member's. Members sign in with their own Bazaar accounts, access is granted per collection, and the data stays when people leave. Needs a Team plan or higher. Organizations →
// the org's database, not a member's
const org = await bzr.createContext({ ownerId: orgId })
const updates = org.collection("updates")
Selling BETA · US & EU PAYOUTS
One-time purchases and subscriptions with checkout handled. A paywall is a permission filter: no webhooks, no entitlement table, no sync bugs. Buyers cancel in their dashboard. Fees: 10% of each payment after tax + $0.30 (US) or €0.30 (EU), card processing included. Selling needs the Creator plan, or Business for an org. Payouts: sellers in the US, EU, UK, Switzerland, Norway, Liechtenstein and Gibraltar. Selling →
bzr.monetization.purchases.openPopup({ productId })
// buyers of a tier can read its posts
filter: { tiers: { $containsAny: "$purchases" } }

Use what you already use.

What you won't find here.

Server codeNo functions, cron, push or outbound calls. Not planned for now.
Cross-user queriesNo global leaderboards or analytics over everyone.
Anonymous readsPublic pages need a signed-in viewer.