Quickstart
Sign up, write two documents and find them again by exact text, regex and filters, an exact count, SQL and meaning, with the answers you should see.
SkimmerDB is a hosted search database: a namespace per customer, user or agent, searched by exact
text, regex, metadata filters, SQL and vectors. This page takes about five minutes: one account,
two documents, and every way of finding them again. Each step shows the answer you should get,
so you can tell at once whether it worked. You need curl and jq, or Python 3, or Node.
Note These examples were last run end to end on October 20, 2026: curl 8.7.1 with jq 1.7.1,
the Python client 0.1.0 on Python 3.14 and the TypeScript client 0.1.0 on Node 24, each against
a fresh account. Timings (took_ms) and timestamps will differ on yours; ids, counts and rows
should not.
1. Sign up
Signing up makes your account and its first tenant, and answers with your first API key. That
key has full access (scope admin) and is shown only once: keep it somewhere safe. You can also
sign up on the sign-up page and copy a key from the
dashboard.
B=https://api.skimmerdb.com/v1
KEY=$(curl -s $B/signup -d '{"email": "ada@example.com", "name": "Ada", "password": "correct horse"}' | jq -r .key)
echo $KEY # tb_...# pip install skimmerdb
from skimmerdb import SkimmerDB
db = SkimmerDB.signup("ada@example.com", "correct horse")
print(db.key) # tb_... : keep it; next time SkimmerDB("tb_...") or SKIMMERDB_KEY// npm install skimmerdb
import { SkimmerDB } from "skimmerdb";
const db = await SkimmerDB.signup("ada@example.com", "correct horse");
console.log(db.key); // tb_... : keep it; next time new SkimmerDB("tb_...") or SKIMMERDB_KEYUntil you click the link in the verification email, a free account gets 1% of the free plan's allowances, which is plenty for this page.
Tip Give apps and agents narrower keys than this one: POST /v1/keys makes a write key by default, and a key can be read-only or limited to some namespaces. See Keys, scopes and tenants.
2. Write documents
A document is an id, the text you search, and meta you filter and group by. Writing to a
namespace that doesn't exist makes it, and the answer says "created": true.
curl -s $B/namespaces/support/docs -H "Authorization: Bearer $KEY" -d '{
"wait": true,
"docs": [
{"id": "t-1", "text": "Refund requested for order ACME-1042", "meta": {"status": "open", "priority": 3}},
{"id": "t-2", "text": "Login fails with error E401 on mobile", "meta": {"status": "closed", "priority": 1}}
]}'ns = db.namespace("support")
ns.write([
{"id": "t-1", "text": "Refund requested for order ACME-1042", "meta": {"status": "open", "priority": 3}},
{"id": "t-2", "text": "Login fails with error E401 on mobile", "meta": {"status": "closed", "priority": 1}},
], wait=True)const ns = db.namespace("support");
await ns.write([
{ id: "t-1", text: "Refund requested for order ACME-1042", meta: { status: "open", priority: 3 } },
{ id: "t-2", text: "Login fails with error E401 on mobile", meta: { status: "closed", priority: 1 } },
], { wait: true });{"written": 2, "deleted": 0, "version": 1, "stored_bytes": 996, "created": true}A write is durable when it answers. wait: true makes it answer only once the documents are
searchable too, which is what you want in a script that searches straight after writing. Without
wait the write answers sooner and the documents are searchable within about a second; use that
for bulk loads, where nothing reads the documents back at once. Writing an id again replaces
that document.
3. Search
Plain text is matched literally, ignoring case. Hits come newest first, with the matched text and the line around it.
curl -s $B/namespaces/support/search -H "Authorization: Bearer $KEY" -d '{"q": "acme-1042"}'for hit in ns.search("acme-1042").hits:
print(hit.id, hit.match, hit.line)const { hits } = await ns.search("acme-1042");
hits.forEach((h) => console.log(h.id, h.match, h.line));{"namespace": "support", "hits": [{"id": "t-1", "match": "ACME-1042", "line": "Refund requested for order ACME-1042",
"meta": {"status": "open", "priority": 3}, "written_at": "2026-10-20T11:30:43Z"}], "next": "", "docs": 2,
"took_ms": 0.505, "partial": false, "temperature": "cold", "store_gets": 0, "store_bytes": 0,
"cpu_ms": 0.198, "timed_out": false}The hit is t-1, with match showing the text as stored. How to read the rest of the answer is
below.
4. Filter, regex and count
Filters match meta: equal, one of, a numeric range, not equal. Regex is opt-in (RE2). Counts
are exact.
curl -s $B/namespaces/support/search -H "Authorization: Bearer $KEY" \
-d '{"q": "E[0-9]{3}", "regex": true, "filter": {"priority": {"gte": 1, "lt": 4}}}'
curl -s $B/namespaces/support/count -H "Authorization: Bearer $KEY" -d '{"q": "", "filter": {"status": "open"}}'ns.search("E[0-9]{3}", regex=True, filter={"priority": {"gte": 1, "lt": 4}})
ns.count(filter={"status": "open"}) # 1await ns.search("E[0-9]{3}", { regex: true, filter: { priority: { gte: 1, lt: 4 } } });
await ns.count("", { filter: { status: "open" } }); // 1The regex search finds t-2 (its match is E401; t-1 has no code of that shape). The count
is 1, with "exact": true: counts are never estimates unless you ask for one. More in
Search and filters and the filter reference.
5. SQL
Every top-level meta key is a column, and id is one too.
curl -s $B/namespaces/support/sql -H "Authorization: Bearer $KEY" \
-d '{"sql": "SELECT status, COUNT(*) AS n, AVG(priority) AS p FROM docs GROUP BY status ORDER BY n DESC"}'r = ns.sql("SELECT status, COUNT(*) AS n, AVG(priority) AS p FROM docs GROUP BY status ORDER BY n DESC")
print(r.columns, r.rows)const r = await ns.sql("SELECT status, COUNT(*) AS n, AVG(priority) AS p FROM docs GROUP BY status ORDER BY n DESC");
console.log(r.columns, r.rows);{"columns": ["status", "n", "p"], "types": ["text", "int", "float"], "rows": [["open", 1, 3.0], ["closed", 1, 1.0]], ...}Both statuses have one document, so the two rows tie on n; add a second key to ORDER BY when
the order matters. See Analytics with SQL and the SQL reference.
6. Search by meaning
Make a namespace with an embedding model, write plain text, and search with semantic. Here
SkimmerDB embeds the text itself (provider: "skimmerdb", hosted, billed at the model's cost;
the free plan includes 5 million tokens a month), so there are no vectors to make. filter and
q narrow the candidates (hybrid search).
curl -s $B/namespaces -H "Authorization: Bearer $KEY" -d '{"name": "notes", "embed": {"provider": "skimmerdb"}}'
curl -s $B/namespaces/notes/docs -H "Authorization: Bearer $KEY" -d '{"wait": true, "docs": [
{"id": "n-1", "text": "Webhook deliveries time out since Tuesday", "meta": {"team": "api"}},
{"id": "n-2", "text": "New logo for the landing page", "meta": {"team": "design"}}]}'
curl -s $B/namespaces/notes/search -H "Authorization: Bearer $KEY" \
-d '{"semantic": "callbacks to our endpoint keep hanging", "limit": 2}'notes = db.create_namespace("notes", embed={"provider": "skimmerdb"})
notes.write([
{"id": "n-1", "text": "Webhook deliveries time out since Tuesday", "meta": {"team": "api"}},
{"id": "n-2", "text": "New logo for the landing page", "meta": {"team": "design"}},
], wait=True)
for hit in notes.search(semantic="callbacks to our endpoint keep hanging", limit=2).hits:
print(hit.id, hit.score)const notes = await db.createNamespace("notes", { embed: { provider: "skimmerdb" } });
await notes.write([
{ id: "n-1", text: "Webhook deliveries time out since Tuesday", meta: { team: "api" } },
{ id: "n-2", text: "New logo for the landing page", meta: { team: "design" } },
], { wait: true });
const found = await notes.search("", { semantic: "callbacks to our endpoint keep hanging", limit: 2 });
found.hits.forEach((h) => console.log(h.id, h.score));{"namespace": "notes", "hits": [{"id": "n-1", "score": 0.519, "meta": {"team": "api"}, ...},
{"id": "n-2", "score": 0.342, "meta": {"team": "design"}, ...}], "partial": false, ...}The query shares no words with n-1; it's found by meaning. Hits come nearest first with a
cosine score. To bring your own embeddings or another provider's model instead, see
Embeddings and Vector and hybrid search.
Reading an answer
Every search, count and SQL answer says how it was answered, as well as what it found:
| Field | Meaning |
|---|---|
partial | false: the answer is complete. true: the query stopped early (its time limit, timed_out: true, or its budget of object-storage reads) and these are the hits found so far, never wrong ones. Narrow the query or retry. A count that can't finish fails instead of answering short. |
next | Empty when there are no more hits. Otherwise pass it as cursor for the next page. |
temperature | warm: the namespace was open; local: opened from the server's disk; cold: opened from object storage. |
store_gets, store_bytes | What this query read from object storage (0 when cached). |
took_ms, cpu_ms | Time on the server and the CPU the query used. |
In the runs behind this page every answer was complete (partial: false). More on partial and
refused answers in Search and filters.
Next
- Give each customer their own namespace and a key that can only read it: Keys, scopes and tenants.
- Build customer-isolated retrieval: Multi-tenant RAG.
- Shape your data well from the start: Data model.
- Load files: Importing files (CSV, NDJSON, Parquet).
- Give an agent access: Connect an agent and the agent skill.