Hi - I answer from the OpenSmartRoute documentation: routing, the API, plans and quotas, self-hosting. Ask away, or open a support ticket if you need a person.
Grounded in the docs - follow a source before acting on it.
Bun Convert an ArrayBuffer to a Blob - Skill - OpenSmartRoute
Imported from keplar-404/screen-shot-to-code (.agents/skills/bun-convert-an-arraybuffer-to-a-blob/SKILL.md). Install upstream with npx skills add keplar-404/screen-shot-to-code --skill bun-convert-an-arraybuffer-to-a-blob. Copyright stays with the author.
Convert an ArrayBuffer to a Blob
A Blob can be constructed from an array of "chunks", where each chunk is a string, binary data structure, or another Blob.
const buf = new ArrayBuffer(64);const blob = new Blob([buf]);
By default the type of the resulting Blob will be unset. This can be set manually.
const buf = new ArrayBuffer(64);const blob = new Blob([buf], { type: "application/octet-stream" });blob.type; // => "application/octet-stream"
Copy one of these into your project. Installing also returns the manifest and these snippets.
# after Install: the listing is in your workspace's routing pool - a plan picks it for its slot
curl -s -X POST https://api.opensmartroute.ai/api/v1/route -H 'Authorization: Bearer $OSR_API_KEY' -H 'Content-Type: application/json' -d '{"text": "...", "plan": true}'
Manifest
An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.
{
"ocm": "1",
"id": "keplar-404-screen-shot-to-code-bun-convert-an-arraybuffe-85ac28",
"kind": "skill",
"name": "Bun Convert an ArrayBuffer to a Blob",
"description": "Convert an ArrayBuffer to a Blob",
"publisher": "keplar-404",
"version": "1.0.0",
"capabilities": {
"domains": [
"general"
],
"tags": [
"skill-md",
"github"
],
"languages": [
"en"
]
},
"quality_prior": 0.6,
"examples": [
"Convert an ArrayBuffer to a Blob"
],
"primary": false,
"metadata": {
"source": {
"provider": "github",
"repository": "https://github.com/keplar-404/screen-shot-to-code",
"path": ".agents/skills/bun-convert-an-arraybuffer-to-a-blob/SKILL.md",
"ref": "abc0b62df72c9c253edd8f0e4bdae5a32e4d73f4",
"url": "https://github.com/keplar-404/screen-shot-to-code/blob/abc0b62df72c9c253edd8f0e4bdae5a32e4d73f4/.agents/skills/bun-convert-an-arraybuffer-to-a-blob/SKILL.md",
"key": "keplar-404/screen-shot-to-code/.agents/skills/bun-convert-an-arraybuffer-to-a-blob/SKILL.md"
}
},
"instructions": "# Convert an ArrayBuffer to a Blob\n\nA [`Blob`](https://developer.mozilla.org/en-US/docs/Web/API/Blob) can be constructed from an array of \"chunks\", where each chunk is a string, binary data structure, or another `Blob`.\n\n```ts theme={\"theme\":{\"light\":\"github-light\",\"dark\":\"dracula\"}}\nconst buf = new ArrayBuffer(64);\nconst blob = new Blob([buf]);\n```\n\n***\n\nBy default the `type` of the resulting `Blob` will be unset. This can be set manually.\n\n```ts theme={\"theme\":{\"light\":\"github-light\",\"dark\":\"dracula\"}}\nconst buf = new ArrayBuffer(64);\nconst blob = new Blob([buf], { type: \"application/octet",
"cost": {
"context_tokens": 198
}
}
Fetch it by URL: GET /api/v1/registry/keplar-404-screen-shot-to-code-bun-convert-an-arraybuffe-85ac28/manifest?version=1.0.0
Reviews
Star ratings from people who tried it. One review per account; edit yours any time.
No reviews yet. Install it, try it, and be the first to rate it.