AI ServerBase for product builders

Ship the next AI productwithout rebuilding the backend.

VisibleBase gives OPCs, independent developers, and small teams one shared place for model routing, user tokens, usage records, and billing hooks.

Your client keeps the product experience. Your business system keeps login and payment. Base handles the repeated AI service layer.

Smallest useful setup

One client. One Base. No duplication.

Product client

import { UserClient } from "@visiblebase/client"

const client = new UserClient({
  base_url: "https://base.example.com",
  product_id: "prod_xxx",
  user_token: "ub_xxx",
})

await client.ai.text({
  model: "gpt-4o",
  prompt: "Write a welcome message",
})

Shared Base

import { Base, AIService } from "@visiblebase/core"
import Database from "better-sqlite3"
import { drizzle } from "drizzle-orm/better-sqlite3"

const sqlite = new Database("./data.sqlite")
const db = Object.assign(drizzle(sqlite), {
  $client: { exec: (sql) => sqlite.exec(sql) },
})

const base = new Base({
  db,
  dialect: "sqlite",
  raw: sqlite,
})

const ai = new AIService()
ai.use({
  id: "gpt-4o",
  name: "GPT-4o",
  handle: {
    text: async (ctx) => {
      // call OpenAI
    },
  },
})
base.use(ai)

Clients

Web app

Extension

Desktop app

Base

models

user tokens

usage

hooks

Providers

OpenAI · Claude · Gemini · private models

Business

login · plans · orders · product data