Build on Kuriko

Building a tool

You describe a tool, and your AI tool builds and ships it on Kuriko. This page is what happens along the way, and the rules every tool follows.

What a tool is

A tool is a small web app with an id, registered with Kuriko along with the data it needs. Kuriko gives it everything else, with nothing to set up: who's using it, somewhere to save its own records (shared by everyone who can open it, updating live), and the company data it declared.

ShapeYour AI tool writesKuriko adds
Just pages (most tools)index.html and any .js and .css filesThe server that serves them
Its own serverThe server and a DockerfileNothing: it builds and runs your image

From idea to live

Prompt
Use Kuriko to build a tool called "Investor log" for tracking our conversations withinvestors: fund, partner, stage, next step and notes. Everyone should see the same list,updating live. Deploy it and give me the preview link.
StepAskWhat happens
RegisterPart of the first askThe tool gets an id, a name and the data it needs, which must be within your own access. It starts private.
Deploy“Deploy it.”Kuriko builds it, in about a minute, and you get a preview link only you can open.
Iterate“Add a search box.”Each change is a new deploy and a new preview. Nothing changes for anyone else.
Publish“Publish it.”The latest ready deploy becomes the live version.
Share“Share it with everyone.”It appears in Kuriko for everyone whose access covers its data.
Roll back“Roll it back.”The previous live version comes back.

Every tool also has a page in Kuriko with its live version, every deploy and its build log, previews, publishing and rollback, so you can do all of this without an AI tool too.

Declaring data

When a tool is registered it lists every data source and resource it reads or writes. It can only ever use those, and only for people allowed them, so one tool shows different people different data, as their access says: different fields masked, and, with row rules, different rows. So a tool never needs to filter by who's using it; Kuriko already has. If a tool needs something new, ask your AI tool to add it; if you don't have that access yourself, ask your platform team.

The SDK

A tool's pages import Kuriko's SDK with a relative path. There's nothing to configure: no keys, no database, no sign-in code. Your AI tool already knows it; this is what it's writing.

index.html
import { kuriko } from "./_kuriko/sdk.js"; // Who's hereconst me = await kuriko.me();             // { email, name, role }, names from SSOconst team = await kuriko.people();       // [{ email, name }]: everyone who can open this tool // The tool's own records: shared by everyone who can open itconst deals = kuriko.collection("deals");const d = await deals.add({ company: "Acme", stage: "intro" });await deals.update(d.id, { stage: "won" });   // merges; null removes a fieldawait deals.remove(d.id);await deals.list({ where: { stage: "won" }, order: "-createdAt", limit: 50 });const stop = deals.watch({ order: "-updatedAt" }, render);   // live, including others' changes // Company data the tool declared, as the person using itconst { rows, masked, truncated } = await kuriko.data("warehouse", "accounts").list();await kuriko.data("hubspot", "contacts").add({ email: "ana@acme.com" });   // where the source takes new rows
  • Records get id, createdBy, createdByName, createdAt, updatedBy, updatedByName and updatedAt, filled in by Kuriko.
  • list() on data returns every row the person may see, up to 10,000, already filtered and masked for them. Don't page or filter by user yourself. truncated is true only if there were more: show a note.
  • Per-person sources: until someone connects their account, list() and add() throw an error with e.connect set. Show a Connect button whose click calls kuriko.connect(e), then load again (browsers block the window if it isn't opened from a click).

Feature requests and bug reports

Every tool's page in Kuriko has Feature requests and Bug reports, like issues on GitHub. Anyone who can open the tool can open one, comment and upvote. The tool's owner (and your admins) label, close and reopen them, and see a dot in the menu when there's something new.

Rules and limits

  • Ids are lowercase letters, digits and dashes, starting with a letter, up to 40 characters. They're part of the tool's address.
  • A deploy is up to 200 files and 3 MB. Data and build output are left out.
  • Tools are served under /t/<id>/ on your Kuriko's gateway, and use relative links.
  • No secrets in tools. If a tool needs data from somewhere new, your platform team adds it as a data source.
  • Plain HTTP, including streamed responses. Live connections (WebSockets) are coming soon.