For developers
Register for an API key and you can create and read fraglets through the fraglet.org API. If you've used Stripe or OpenAI it will feel familiar: a prefixed key, Bearer auth, JSON in and out.
Everything goes through the fraglet.org API. There are three main ways to use it.
Create a developer account and receive an API key. The key is shown once, so store it somewhere safe.
Account created
Copy your API key now. It will not be shown again.
Developer ID:
You can also register programmatically via
POST /register with a JSON body containing
email, name, and optionally
organisation. The response includes your
api_key and developer_id.
Registration is rate-limited to 5 requests per hour per IP.
Three steps to start using fraglets in your service.
Register as a developer at fraglet.org. You'll receive an API key prefixed frag_live_. Use it as a Bearer token in the Authorization header on every request.
POST /api/v1/fraglets to create a fraglet. The API generates the embedding automatically. GET /api/v1/fraglets/{id} to fetch one. GET /api/v1/fraglets/discover to browse open fraglets by domain.
Fetch the fraglet with ?include_embedding=true to get the embedding vector. Use it with your existing vector database (pgvector, Pinecone, Qdrant, etc.) to find the items in your catalogue closest to the fraglet.
import requests
API_KEY = "frag_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
BASE = "https://api.fraglet.org/api/v1"
HEADERS = {"Authorization": f"Bearer {API_KEY}"}
# Create a fraglet — embedding generated server-side
fraglet = requests.post(f"{BASE}/fraglets", headers=HEADERS, json={
"title": "Late-night small-combo jazz",
"brief": "Post-bop and modal jazz in small rooms, ideally after 10pm.",
"detail": "Ahmad Jamal and Shabaka Hutchings at the centre, "
"with detours into ECM and spiritual jazz...",
"category": "Contemporary jazz and fusion",
"tags": ["jazz", "post-bop", "small-venues"],
"domain": "music",
"visibility": "open"
}).json()
print(fraglet["id"]) # UUID
print(fraglet["embedding"]) # null (not included by default)
# Fetch it back with embedding
fetched = requests.get(
f"{BASE}/fraglets/{fraglet['id']}?include_embedding=true",
headers=HEADERS
).json()
# Match against your catalogue
results = your_vector_db.query(
vector=fetched["embedding"], # 1536-dim vector
top_k=20,
threshold=0.3
)
-- pgvector: rank your catalogue items
-- by similarity to the fraglet embedding
SELECT id, title, description,
1 - (embedding <=> $1) AS similarity
FROM your_items
WHERE 1 - (embedding <=> $1) > 0.3
ORDER BY embedding <=> $1
LIMIT 20;
const API_KEY = 'frag_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx';
const BASE = 'https://api.fraglet.org/api/v1';
const headers = { Authorization: `Bearer ${API_KEY}` };
// Create a fraglet
const fraglet = await fetch(`${BASE}/fraglets`, {
method: 'POST',
headers: { ...headers, 'Content-Type': 'application/json' },
body: JSON.stringify({
title: 'Late-night small-combo jazz',
brief: 'Post-bop and modal jazz in small rooms, ideally after 10pm.',
detail: 'Ahmad Jamal and Shabaka Hutchings at the centre...',
category: 'Contemporary jazz and fusion',
tags: ['jazz', 'post-bop', 'small-venues'],
domain: 'music',
visibility: 'open'
})
}).then(r => r.json());
// Fetch with embedding included
const withEmbed = await fetch(
`${BASE}/fraglets/${fraglet.id}?include_embedding=true`,
{ headers }
).then(r => r.json());
// Match against your catalogue
const results = await vectorDb.query({
vector: withEmbed.embedding,
topK: 20
});
Every fraglet has the same schema, whatever the domain. Here is
an example from music. The embedding field is
null unless you ask for it with
?include_embedding=true.
{
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"title": "Late-night small-combo jazz",
"brief": "Post-bop and modal jazz in small rooms, ideally after
10pm, played by people who stretch a standard rather than
play it straight.",
"detail": "Ahmad Jamal and Shabaka Hutchings at the centre:
trios and quartets, live recordings where you can hear the
room, long solos. Branches out into ECM-style European jazz,
spiritual jazz and the current London scene. Prefers seated
venues under 200 capacity and sets that start after 9pm.
Not interested in big-band swing or smooth jazz...",
"additional": {
"sub_profiles": [
{"label": "Jazz", "examples": ["Ahmad Jamal", "Shabaka Hutchings"]},
{"label": "Adjacent", "examples": ["Floating Points", "Khruangbin"]}
],
"sonic_preferences": {
"energy": "low-to-medium",
"setting": "small seated venues"
}
},
"category": "Contemporary jazz and fusion",
"tags": ["jazz", "post-bop", "modal", "small-venues",
"improvisation", "London-scene"],
"domain": "music",
"embedding": null,
"parent_id": null,
"visibility": "open",
"created_at": "2026-03-15T14:30:00Z"
}
music, food, travel, etc. Fraglets are only comparable within the same domain.
null by default. Pass ?include_embedding=true to include it.
private, selective, or open. Determines who can read and associate.
null for originals. Enables edit history and adoption provenance.
The fraglet.org API publishes its capabilities at a well-known endpoint. No registration needed to check it.
{
"version": "1.0",
"embedding": {
"model": "text-embedding-3-large",
"dimensions": 1536
},
"domains": ["music", "food", "travel"],
"api_base": "https://api.fraglet.org/api/v1"
}
The metadata endpoint is public. No API key required. Use it to verify the embedding model before matching fraglet embeddings against your catalogue. Your catalogue items must be embedded with the same model for cosine similarity to be meaningful.
Every fraglet conforms to the same structural schema. The core fields are always the same. Domain-specific extensions use the additional field.
Every fraglet has a resolvable address: https://api.fraglet.org/api/v1/fraglets/{id}. Store the URI or the UUID. Both are stable and permanent.
Three visibility levels govern who can read each fraglet. Private: only the developer that created it. Other developers can't read it or associate with it. Selective: the creator plus specific developers granted access. Open: discoverable by anyone. Selective visibility lets users share fraglets with chosen services without making them globally discoverable.
All endpoints are at api.fraglet.org and require
an API key as a Bearer token, except where noted.
The API handles fraglet storage, embedding generation, associations, and discovery. You provide the text fields; the server generates the embedding. Rate limiting is per-developer, per-endpoint category.
# Authentication
# All requests: Authorization: Bearer frag_live_xxxxxxxx
GET /.well-known/fraglets # Server metadata (public, no auth)
POST /register # Create developer account (no auth)
# Fraglets
POST /api/v1/fraglets # Create (embedding auto-generated)
GET /api/v1/fraglets/{id} # Read a fraglet
PATCH /api/v1/fraglets/{id} # Edit (private drafts only)
DELETE /api/v1/fraglets/{id} # Delete (creator only, see below)
POST /api/v1/fraglets/batch # Batch read by IDs (max 50)
GET /api/v1/fraglets/discover # Browse open fraglets by domain
# Query parameters
GET /api/v1/fraglets/{id}?include_embedding=true # Include embedding
# Associations
POST /api/v1/fraglets/{id}/associate # Associate with a fraglet
DELETE /api/v1/fraglets/{id}/associate # Disassociate
# Grants (selective visibility)
POST /api/v1/fraglets/{id}/grants # Grant a developer read access
DELETE /api/v1/fraglets/{id}/grants/{dev_id} # Revoke a grant
GET /api/v1/fraglets/{id}/grants # List grants (creator only)
# Jackets
POST /api/v1/jackets # Create jacket
GET /api/v1/jackets/{id} # Read a jacket
PATCH /api/v1/jackets/{id} # Update (immutability enforced)
DELETE /api/v1/jackets/{id} # Delete
POST /api/v1/jackets/{id}/fraglets # Add fraglets to jacket
DELETE /api/v1/jackets/{id}/fraglets # Remove fraglets from jacket
GET /api/v1/jackets/discover # Browse open jackets
GET /api/v1/jackets/mine # List your jackets
POST /api/v1/jackets/{id}/associate # Associate with a jacket
DELETE /api/v1/jackets/{id}/associate # Disassociate from a jacket
POST /api/v1/jackets/{id}/adapt # Fork a jacket
# Developer
GET /api/v1/users/me/fraglets # List your associated fraglets
Creating a fraglet automatically associates the creator with it.
Private drafts are editable. You can
PATCH a fraglet if it is private and no other developer
is associated with it. Once a fraglet is shared or published, it
becomes immutable. To "edit" an immutable fraglet, create a new one
with parent_id set to the original's ID.
DELETE is also restricted: the creator can only delete a
fraglet if no other developers are associated. To withdraw from a
shared fraglet you created, set its visibility to private
via PATCH. Embeddings are not included in responses by
default. Pass ?include_embedding=true to request them.
Jackets are named collections of fraglets representing
personas. They follow the same immutability pattern: once other developers
associate, the composition is frozen. Use POST /{id}/adapt
to fork a jacket with changes. Jacket associations support follow mode
(live-tracking the current composition) and snapshot mode (frozen at
association time).
Selective sharing via grants. When a fraglet has
selective visibility, the creator can grant specific
developers read access using POST /api/v1/fraglets/{id}/grants
with {"developer_id": "..."}. The granted developer can then
fetch the fraglet as if it were open, but it stays out of public discovery.
Each grant covers one fraglet and one developer, and can be revoked at any
time. We recommend this for sharing between services, because users can
choose which services see a fraglet without publishing it.
AI agents interact with fraglets as MCP tools. No SDK or API client needed.
The fraglet MCP server exposes the full lifecycle as tools:
list_my_fraglets, create_fraglet,
discover_fraglets, select_fraglets (the picker),
create_jacket, list_my_jackets,
associate_with_fraglet, adapt_jacket,
and more.
Most of the work is done by the picker
(select_fraglets). Given a request, it chooses which
fraglets are relevant and how much detail to include. It accepts an optional jacket_id
to scope selection through a persona, with context mode (bias) or
strict mode (hard filter).
Users set up MCP access at fraglet.com. The MCP server runs in stdio mode (local) and as a remote Streamable HTTP endpoint. Configuration is a single JSON snippet added to any MCP-compatible client.
Limits are per developer, per category, rolling window.
Exceeding a limit returns 429 Too Many Requests.
Errors come back as JSON. Most use {"error": "<status>", "message": "..."}.
409 and 422 responses currently use a detail field instead.
{
"detail": "Cannot edit fraglet: other developers are associated"
}
The full technical documentation, if you want to build your own server.
No. The fraglet.org API handles storage, embeddings, associations and discovery, so an API key and an HTTP client are enough. If you want to match fraglets against your own items, you'll need those items embedded somewhere you can search.
fraglet.org currently uses OpenAI's text-embedding-3-large at 1536 dimensions. Check api.fraglet.org/.well-known/fraglets for the current model and dimensions. Your catalogue items need to be embedded with the same model for cosine similarity to work.
You can re-embed the fraglet's text fields (detail, tags, additional) using your own model. The text is always available; the server-generated embedding is a convenience for same-model matching.
Register as a developer and receive an API key prefixed frag_live_. Include it as a Bearer token in every request: Authorization: Bearer frag_live_xxx. Keys are shown once at creation, so store them securely. The /.well-known/fraglets metadata endpoint is the only public endpoint that doesn't require a key.
Private drafts are editable. You can PATCH a fraglet if it is still private and no other developer has associated with it. Once a fraglet is shared, published, or associated with by others, its content is fixed. To "edit" it, create a new one with parent_id set to the original's ID. So if you cache a shared fraglet, it won't change under you, and you can follow the parent_id chain to see how a profile has changed over time.
Users don't "own" fraglets; they associate with them, and many users can associate with the same one. That's what makes adoption work: a music venue publishes a fraglet describing the audience it books for, and people who fit associate with it. Associations are managed server-side, not in the fraglet entity itself.
Named collections of fraglets representing personas for different situations. A jacket is cross-domain: a date-night jacket might combine food, music, and travel fraglets. Jackets follow the same immutability pattern as fraglets: once others associate, the composition is frozen. Use the adapt endpoint to fork a jacket with changes.
Yes. Configure the fraglet MCP server in any MCP-compatible client and your agent gets tools for reading, creating, discovering, and selecting fraglets. The picker (select_fraglets) is the one you'll use most. It chooses which fraglets suit a request and how much detail to send. Users set up MCP access at fraglet.com.
Yes. The format specification and the reference implementation guide are public, and anyone can build a server that follows them. fraglet.org is the main hosted service, but the format doesn't depend on it. There's no licence fee.