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.
web_worker - Skill - OpenSmartRoute
Skillv1.0.0
web_worker
Browser-only wasm `cdylib` running inside a Dedicated Web Worker: on start it registers the worker handler with `make_api_mapping(vec![StorageCrackhouseApiGroup, WorkerApiGroup2…
Imported from Crack-Pantelimon/crack (crack_demo/web_worker/AGENTS.md). Install upstream with npx skills add Crack-Pantelimon/crack --skill web_worker. Copyright stays with the author.
web_worker
Browser-only wasm cdylib running inside a Dedicated Web Worker: on start it
registers the worker handler with make_api_mapping(vec![StorageCrackhouseApiGroup, WorkerApiGroup2, game_logic::api::GameLogicApiGroup]) via
web_serviceworker_crackslave::web_worker_registration. Wasm-only — never add
the workspace tokio dep (breaks wasm builds). .cargo/cargo.toml here is
misnamed and inert; leave it. Never set RUSTFLAGS (root .cargo/config.toml
wires the getrandom wasm_js backend).
Run tests with ./test.sh (browser wasm only: wasm-pack test --headless --firefox --chrome). See README.md for details.
Use it
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.
crack-pantelimon-crack-web-worker.ocm.jsonjson
{
"ocm": "1",
"id": "crack-pantelimon-crack-web-worker",
"kind": "skill",
"name": "web_worker",
"description": "Browser-only wasm `cdylib` running inside a Dedicated Web Worker: on start it registers the worker handler with `make_api_mapping(vec![StorageCrackhouseApiGroup, WorkerApiGroup2, game_logic::api::GameLogicApiGroup])` via `web_serviceworker_crackslave::web_worker_registration`. Wasm-only — never add the workspace `tokio` dep (breaks wasm builds). `.cargo/cargo.toml` here is misnamed and inert; leave it. Never set `RUSTFLAGS` (root `.cargo/config.toml` wires the getrandom `wasm_js` backend).",
"publisher": "Crack-Pantelimon",
"version": "1.0.0",
"capabilities": {
"domains": [
"coding"
],
"tags": [
"skill-md",
"github-agents"
],
"languages": [
"en"
]
},
"quality_prior": 0.6,
"examples": [
"Browser-only wasm `cdylib` running inside a Dedicated Web Worker: on start it registers the worker handler with `make_api_mapping(vec![StorageCrackhouseApiGroup, WorkerApiGroup2, game_logic::api::GameLogicApiGroup])` via `web_serviceworker_crackslave::web_worker_registration`. Wasm-only — never add the workspace `tokio` dep (breaks wasm builds). `.cargo/cargo.toml` here is misnamed and inert; leave it. Never set `RUSTFLAGS` (root `.cargo/config.toml` wires the getrandom `wasm_js` backend)."
],
"primary": false,
"metadata": {
"source": {
"provider": "github-agents",
"repository": "https://github.com/Crack-Pantelimon/crack",
"path": "crack_demo/web_worker/AGENTS.md",
"ref": "647ea4a611a825beef4768f04e6298f614ad423f",
"url": "https://github.com/Crack-Pantelimon/crack/blob/647ea4a611a825beef4768f04e6298f614ad423f/crack_demo/web_worker/AGENTS.md",
"key": "Crack-Pantelimon/crack/crack_demo/web_worker/AGENTS.md"
}
},
"instructions": "# web_worker\n\nBrowser-only wasm `cdylib` running inside a Dedicated Web Worker: on start it\nregisters the worker handler with `make_api_mapping(vec![StorageCrackhouseApiGroup,\nWorkerApiGroup2, game_logic::api::GameLogicApiGroup])` via\n`web_serviceworker_crackslave::web_worker_registration`. Wasm-only — never add\nthe workspace `tokio` dep (breaks wasm builds). `.cargo/cargo.toml` here is\nmisnamed and inert; leave it. Never set `RUSTFLAGS` (root `.cargo/config.toml`\nwires the getrandom `wasm_js` backend).\n\nRun tests with `./test.sh` (browser wasm only: `wasm-pack test --headless\n--firefox --chro",
"cost": {
"context_tokens": 158
}
}
Fetch it by URL: GET /api/v1/registry/crack-pantelimon-crack-web-worker/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.