Skip to content
Back to search

spacetimedb-plugins

MarketplaceWorks with Claude CodeGitHub

SpacetimeDB plugins for Claude Code

Safety scan

A static text scan, not a guarantee. Select the badge to see what was scanned and every finding.

Checked today

Check it deeper on your machine

It has changed since its scan on 11 Nov 2026.

As a Claude Code plugin, install it and then ask Claude Code:

/plugin marketplace add keithmackay/mackayi/plugin install scanskillsafety@mackayiDo a deep scan of https://github.com/clockworklabs/SpacetimeDB with scanskillsafety

Or from a terminal, clone it and run it:

git clone https://github.com/keithmackay/scanskillsafety-skill ~/.claude/skills/scanskillsafetynode ~/.claude/skills/scanskillsafety/cli.cjs --deep 'https://github.com/clockworklabs/SpacetimeDB'

It checks the exact commit: every file, its packages against OSV (api.osv.dev), how it compares with this page's scan (findsafeskills.com receives the repository's address), and, if you agree, Claude reading every file with your own Claude subscription. It never runs the code.

Badge for your README
findsafeskills safety rating

Markdown

[![findsafeskills safety rating](/api/listings/clockworklabs-spacetimedb/badge.svg)](/listings/clockworklabs-spacetimedb)

HTML

<a href="/listings/clockworklabs-spacetimedb"><img src="/api/listings/clockworklabs-spacetimedb/badge.svg" alt="findsafeskills safety rating" /></a>

Install

Install instructions from the README

As written by the repo's author. findsafeskills has not verified these steps.

These steps run a script from the network that findsafeskills does not scan.

1. Install

# macOS / Linux
curl -sSf https://install.spacetimedb.com | sh

# Windows (PowerShell)
iwr https://windows.spacetimedb.com -useb | iex

2. Log in

spacetime login

This opens a browser to authenticate with GitHub. Your identity is linked to your account so you can publish databases.

3. Start developing

spacetime dev --template chat-react-ts

That is it. This creates a project from a template, publishes it to [Maincloud](https://spacetimedb.com/docs/how-to/deploy/maincloud), and watches for file changes, automatically rebuilding and republishing on save. See [pricing](https://spacetimedb.com/pricing) for details.

What was scanned

The files the safety scan read, as written by the repository's author and shown as plain text. Lines with a finding are marked.

.claude-plugin/marketplace.json · Manifest · 42 lines

View this file on GitHub (read at the repository's current version: the scan did not record which commit it read)

This file has changed since it was scanned, so this is not exactly the text that was scanned, and no line is marked. The findings are listed with the safety scan above.

  1. {
  2. "$schema": "https://anthropic.com/claude-code/marketplace.schema.json",
  3. "name": "spacetimedb-plugins",
  4. "description": "SpacetimeDB plugins for Claude Code",
  5. "owner": {
  6. "name": "Clockwork Labs",
  7. "url": "https://spacetimedb.com"
  8. },
  9. "plugins": [
  10. {
  11. "name": "spacetimedb",
  12. "displayName": "SpacetimeDB",
  13. "description": "SpacetimeDB skills for building modules and clients in Rust, C#, TypeScript, C++, Unity, and Unreal, plus an MCP server that lists your databases, reads schemas, runs SQL, and calls reducers with your CLI login.",
  14. "author": {
  15. "name": "Clockwork Labs"
  16. },
  17. "category": "database",
  18. "homepage": "https://spacetimedb.com",
  19. "source": "./skills",
  20. "strict": false,
  21. "skills": [
  22. "./cli",
  23. "./concepts",
  24. "./cpp-server",
  25. "./csharp-client",
  26. "./csharp-server",
  27. "./mcp",
  28. "./rust-server",
  29. "./typescript-client",
  30. "./typescript-server",
  31. "./unity",
  32. "./unreal"
  33. ],
  34. "mcpServers": {
  35. "spacetimedb": {
  36. "command": "spacetime",
  37. "args": ["mcp"]
  38. }
  39. }
  40. }
  41. ]
  42. }
README.md · README · 278 lines

View this file on GitHub (read at the repository's current version: the scan did not record which commit it read)

This file has changed since it was scanned, so this is not exactly the text that was scanned, and no line is marked. The findings are listed with the safety scan above.

  1. <p align="center">
  2. <a href="https://spacetimedb.com#gh-dark-mode-only" target="_blank">
  3. <img width="320" src="./images/dark/logo.svg" alt="SpacetimeDB Logo">
  4. </a>
  5. <a href="https://spacetimedb.com#gh-light-mode-only" target="_blank">
  6. <img width="320" src="./images/light/logo.svg" alt="SpacetimeDB Logo">
  7. </a>
  8. </p>
  9. <p align="center">
  10. <a href="https://spacetimedb.com#gh-dark-mode-only" target="_blank">
  11. <img width="250" src="./images/dark/logo-text.svg" alt="SpacetimeDB">
  12. </a>
  13. <a href="https://spacetimedb.com#gh-light-mode-only" target="_blank">
  14. <img width="250" src="./images/light/logo-text.svg" alt="SpacetimeDB">
  15. </a>
  16. <h3 align="center">
  17. Development at the speed of light.
  18. </h3>
  19. </p>
  20. <p align="center">
  21. <a href="https://github.com/clockworklabs/spacetimedb"><img src="https://img.shields.io/github/v/release/clockworklabs/spacetimedb?color=%23ff00a0&include_prereleases&label=version&sort=semver&style=flat-square"></a>
  22. &nbsp;
  23. <a href="https://github.com/clockworklabs/spacetimedb"><img src="https://img.shields.io/badge/built_with-Rust-dca282.svg?style=flat-square"></a>
  24. &nbsp;
  25. <a href="https://github.com/clockworklabs/spacetimedb/actions"><img src="https://img.shields.io/github/actions/workflow/status/clockworklabs/spacetimedb/ci.yml?style=flat-square&branch=master"></a>
  26. &nbsp;
  27. <a href="https://status.spacetimedb.com"><img src="https://img.shields.io/uptimerobot/ratio/7/m784409192-e472ca350bb615372ededed7?label=cloud%20uptime&style=flat-square"></a>
  28. &nbsp;
  29. <a href="https://hub.docker.com/r/clockworklabs/spacetimedb"><img src="https://img.shields.io/docker/pulls/clockworklabs/spacetimedb?style=flat-square"></a>
  30. &nbsp;
  31. <a href="https://github.com/clockworklabs/spacetimedb/blob/master/LICENSE.txt"><img src="https://img.shields.io/badge/license-BSL_1.1-00bfff.svg?style=flat-square"></a>
  32. </p>
  33. <p align="center">
  34. <a href="https://crates.io/crates/spacetimedb"><img src="https://img.shields.io/crates/d/spacetimedb?color=e45928&label=Rust%20Crate&style=flat-square"></a>
  35. &nbsp;
  36. <a href="https://www.nuget.org/packages/SpacetimeDB.Runtime"><img src="https://img.shields.io/nuget/dt/spacetimedb.runtime?color=0b6cff&label=NuGet%20Package&style=flat-square"></a>
  37. &nbsp;
  38. <a href="https://www.npmjs.com/package/spacetimedb"><img src="https://img.shields.io/npm/dm/spacetimedb?color=cb0000&label=npm&style=flat-square"></a>
  39. </p>
  40. <p align="center">
  41. <a href="https://discord.gg/spacetimedb"><img src="https://img.shields.io/discord/1037340874172014652?label=discord&style=flat-square&color=5a66f6"></a>
  42. &nbsp;
  43. <a href="https://twitter.com/spacetimedb"><img src="https://img.shields.io/badge/twitter-Follow_us-1d9bf0.svg?style=flat-square"></a>
  44. &nbsp;
  45. <a href="https://clockworklabs.io/join"><img src="https://img.shields.io/badge/careers-Join_us-86f7b7.svg?style=flat-square"></a>
  46. &nbsp;
  47. <a href="https://www.linkedin.com/company/clockworklabs/"><img src="https://img.shields.io/badge/linkedin-Connect_with_us-0a66c2.svg?style=flat-square"></a>
  48. </p>
  49. <p align="center">
  50. <a href="https://discord.gg/spacetimedb"><img height="25" src="./images/social/discord.svg" alt="Discord"></a>
  51. &nbsp;
  52. <a href="https://twitter.com/spacetimedb"><img height="25" src="./images/social/twitter.svg" alt="Twitter"></a>
  53. &nbsp;
  54. <a href="https://github.com/clockworklabs/spacetimedb"><img height="25" src="./images/social/github.svg" alt="GitHub"></a>
  55. &nbsp;
  56. <a href="https://twitch.tv/SpacetimeDB"><img height="25" src="./images/social/twitch.svg" alt="Twitch"></a>
  57. &nbsp;
  58. <a href="https://youtube.com/@SpacetimeDB"><img height="25" src="./images/social/youtube.svg" alt="YouTube"></a>
  59. &nbsp;
  60. <a href="https://www.linkedin.com/company/clockwork-labs/"><img height="25" src="./images/social/linkedin.svg" alt="LinkedIn"></a>
  61. &nbsp;
  62. <a href="https://stackoverflow.com/questions/tagged/spacetimedb"><img height="25" src="./images/social/stackoverflow.svg" alt="StackOverflow"></a>
  63. </p>
  64. <br>
  65. ## What is SpacetimeDB?
  66. SpacetimeDB is a relational database that is also a server. You upload your application logic directly into the database, and clients connect to it without any server in between. It is built for reactive applications, where every client sees changes as they happen: web apps like collaborative tools, dashboards, and chat, as well as multiplayer games.
  67. Write your schema and business logic as a **module** in [Rust](https://spacetimedb.com/docs/quickstarts/rust), [C#](https://spacetimedb.com/docs/quickstarts/c-sharp), [TypeScript](https://spacetimedb.com/docs/quickstarts/typescript), or [C++](https://spacetimedb.com/docs/quickstarts/c-plus-plus). SpacetimeDB compiles it, runs it inside the database, and automatically synchronizes state to connected clients in real-time.
  68. Instead of deploying a web or game server that sits in between your clients and your database, your clients connect directly to the database and execute your application logic in your module. You can write all of your permission and authorization logic right inside your module just as you would in a normal server.
  69. This means that you can write your entire application in a single language and deploy it as a single binary. No more separate webserver, no more containers, no more Kubernetes, no more VMs, no more DevOps, no more caching later. Zero infrastructure to manage.
  70. <figure>
  71. <img src="./images/basic-architecture-diagram.png" alt="SpacetimeDB Architecture" style="width:100%">
  72. <figcaption align="center">
  73. <p align="center"><b>SpacetimeDB application architecture</b><br /><sup><sub>(elements in white are provided by SpacetimeDB)</sub></sup></p>
  74. </figcaption>
  75. </figure>
  76. SpacetimeDB is optimized for maximum speed and minimum latency. SpacetimeDB provides all the ACID guarantees of a traditional RDBMS, with all the speed of an optimized web server. Hot data stays in memory for fast access and colder data lives on disk, while a commit log provides [durability](#durability) and crash recovery. The entire backend of our MMORPG [BitCraft Online](https://bitcraftonline.com) runs as a single SpacetimeDB module: chat, items, terrain, player positions, everything, synchronized to thousands of players in real-time.
  77. ## Quick Start
  78. ### 1. Install
  79. ```bash
  80. # macOS / Linux
  81. curl -sSf https://install.spacetimedb.com | sh
  82. # Windows (PowerShell)
  83. iwr https://windows.spacetimedb.com -useb | iex
  84. ```
  85. ### 2. Log in
  86. ```bash
  87. spacetime login
  88. ```
  89. This opens a browser to authenticate with GitHub. Your identity is linked to your account so you can publish databases.
  90. ### 3. Start developing
  91. ```bash
  92. spacetime dev --template chat-react-ts
  93. ```
  94. That is it. This creates a project from a template, publishes it to [Maincloud](https://spacetimedb.com/docs/how-to/deploy/maincloud), and watches for file changes, automatically rebuilding and republishing on save. See [pricing](https://spacetimedb.com/pricing) for details.
  95. ## How It Works
  96. SpacetimeDB modules define **tables** (your data) and **reducers** (your logic). Clients connect, call reducers, and subscribe to tables. When data changes, SpacetimeDB pushes updates to subscribed clients automatically.
  97. ```rust
  98. // Define a table
  99. #[spacetimedb::table(accessor = messages, public)]
  100. pub struct Message {
  101. #[primary_key]
  102. #[auto_inc]
  103. id: u64,
  104. sender: Identity,
  105. text: String,
  106. }
  107. // Define a reducer (your API endpoint)
  108. #[spacetimedb::reducer]
  109. pub fn send_message(ctx: &ReducerContext, text: String) {
  110. ctx.db.messages().insert(Message {
  111. id: 0,
  112. sender: ctx.sender,
  113. text,
  114. });
  115. }
  116. ```
  117. On the client side, subscribe and get live updates:
  118. ```typescript
  119. const [messages] = useTable(tables.message);
  120. // messages updates automatically when the server state changes.
  121. // No polling. No refetching.
  122. ```
  123. ## Use Cases
  124. SpacetimeDB is well suited to web application backends, from everyday CRUD apps to reactive ones like collaborative tools, live dashboards, and chat. Write your module in TypeScript and connect from the browser with the [TypeScript SDK](https://spacetimedb.com/docs/clients/typescript), which includes React hooks like `useTable` and integrations for Vue, Svelte, Angular, and other frameworks. Each reducer runs as an ACID transaction, and subscribed clients receive committed changes automatically, so you don't need polling, a separate API server, or a pub/sub layer to keep them in sync. The `chat-react-ts` template from the Quick Start is a working example.
  125. SpacetimeDB is optimized for low-latency transactional workloads like these, rather than batch processing or analytical queries.
  126. ## Durability
  127. Every transaction that changes data is written to an on-disk [commitlog](https://spacetimedb.com/docs/reference/internals/commitlog), which is replayed to recover the database after a crash. Transactions are fsynced in batches, so many transactions share a single `fsync` (group commit) ([`local.rs`](crates/durability/src/imp/local.rs)).
  128. Since SpacetimeDB 2.0, clients get [confirmed reads](https://spacetimedb.com/docs/upgrade#confirmed-reads-enabled-by-default) by default: the server holds back a transaction's subscription updates, and the caller's reducer result, until that transaction is durable ([`client_connection.rs`](crates/core/src/client/client_connection.rs)), so the data a client receives from its subscriptions and reducer calls will survive a crash. SQL queries over HTTP wait for durability by default too. On Maincloud and other replicated deployments, durable instead means [persisted by the replicas the database's replication settings require](https://spacetimedb.com/docs/clients/typescript#method-withconfirmedreads). Apps that can tolerate a client occasionally seeing a write that is then lost in a crash, like many games, can opt out with `withConfirmedReads(false)` for lower latency.
  129. ## Language Support
  130. ### Server Modules
  131. Write your database logic in any of these languages:
  132. | Language | Quickstart |
  133. |----------|-----------|
  134. | **Rust** | [Get started](https://spacetimedb.com/docs/quickstarts/rust) |
  135. | **C#** | [Get started](https://spacetimedb.com/docs/quickstarts/c-sharp) |
  136. | **TypeScript** | [Get started](https://spacetimedb.com/docs/quickstarts/typescript) |
  137. | **C++** | [Get started](https://spacetimedb.com/docs/quickstarts/c-plus-plus) |
  138. ### Client SDKs
  139. Connect from any of these platforms:
  140. | SDK | Quickstart |
  141. |-----|-----------|
  142. | **TypeScript** (React, Next.js, Vue, Svelte, Angular, Node.js, Bun, Deno) | [Get started](https://spacetimedb.com/docs/quickstarts/react) |
  143. | **Rust** | [Get started](https://spacetimedb.com/docs/quickstarts/rust) |
  144. | **C#** (standalone and Unity) | [Get started](https://spacetimedb.com/docs/quickstarts/c-sharp) |
  145. | **C++** (Unreal Engine) | [Get started](https://spacetimedb.com/docs/quickstarts/c-plus-plus) |
  146. ## Running with Docker
  147. ```bash
  148. docker run --rm --pull always -p 3000:3000 clockworklabs/spacetime start
  149. ```
  150. ## Building from Source
  151. If you need features from `master` that have not been released yet:
  152. ```bash
  153. # Prerequisites: Rust toolchain with wasm32-unknown-unknown target
  154. curl https://sh.rustup.rs -sSf | sh
  155. git clone https://github.com/clockworklabs/SpacetimeDB
  156. cd SpacetimeDB
  157. cargo build --locked --release -p spacetimedb-standalone -p spacetimedb-update -p spacetimedb-cli
  158. ```
  159. Then install the binaries:
  160. <details>
  161. <summary>macOS / Linux</summary>
  162. ```bash
  163. mkdir -p ~/.local/bin
  164. STDB_VERSION="$(./target/release/spacetimedb-cli --version | sed -n 's/.*spacetimedb tool version \([0-9.]*\);.*/\1/p')"
  165. mkdir -p ~/.local/share/spacetime/bin/$STDB_VERSION
  166. cp target/release/spacetimedb-update ~/.local/bin/spacetime
  167. cp target/release/spacetimedb-cli ~/.local/share/spacetime/bin/$STDB_VERSION
  168. cp target/release/spacetimedb-standalone ~/.local/share/spacetime/bin/$STDB_VERSION
  169. # Add to your shell config if not already present:
  170. export PATH="$HOME/.local/bin:$PATH"
  171. # Set the active version:
  172. spacetime version use $STDB_VERSION
  173. ```
  174. </details>
  175. <details>
  176. <summary>Windows (PowerShell)</summary>
  177. ```powershell
  178. $stdbDir = "$HOME\AppData\Local\SpacetimeDB"
  179. $stdbVersion = & ".\target\release\spacetimedb-cli" --version |
  180. Select-String -Pattern 'spacetimedb tool version ([0-9.]+);' |
  181. ForEach-Object { $_.Matches.Groups[1].Value }
  182. New-Item -ItemType Directory -Path "$stdbDir\bin\$stdbVersion" -Force | Out-Null
  183. Copy-Item "target\release\spacetimedb-update.exe" "$stdbDir\spacetime.exe"
  184. Copy-Item "target\release\spacetimedb-cli.exe" "$stdbDir\bin\$stdbVersion\"
  185. Copy-Item "target\release\spacetimedb-standalone.exe" "$stdbDir\bin\$stdbVersion\"
  186. # Add to your system PATH: %USERPROFILE%\AppData\Local\SpacetimeDB
  187. # Then in a new shell:
  188. spacetime version use $stdbVersion
  189. ```
  190. </details>
  191. Verify with `spacetime --version`.
  192. To find your way around the code, see the [architecture diagram](docs/DEVELOP.md#architecture) of what runs inside SpacetimeDB Standalone.
  193. ## Documentation
  194. To set up a coding agent such as Claude Code, Codex, or Cursor, paste this prompt into it. It points the agent to the [agent setup guide](docs/static/agent-setup.md).
  195. ```text
  196. Set yourself up to build with Spacetime (SpacetimeDB).
  197. 1. Read https://spacetimedb.com/agent-setup.md carefully, in full rather than a summary, and follow it. Run the commands yourself, and ask me only for approvals, logins, or restarts.
  198. 2. Read https://spacetimedb.com/docs/intro/misconceptions/ carefully, in full. Spacetime has changed a lot, so what you remember about it, and older articles online, may be out of date. When you describe Spacetime or compare it with other backends, go by the current docs.
  199. 3. Tell me what you installed, what you verified, and anything I still need to do.
  200. ```
  201. Full documentation is available at **[spacetimedb.com/docs](https://spacetimedb.com/docs)**, including:
  202. - [Quickstart guides](https://spacetimedb.com/docs) for every supported language and framework
  203. - [Core concepts](https://spacetimedb.com/docs/core-concepts): tables, reducers, subscriptions, authentication
  204. - [Tutorials](https://spacetimedb.com/docs/tutorials/chat-app): chat app, Unity multiplayer, Unreal Engine multiplayer
  205. - [Deployment guide](https://spacetimedb.com/docs/how-to/deploy/maincloud): publishing to Maincloud
  206. - [CLI reference](https://spacetimedb.com/docs/cli-reference)
  207. - [SQL reference](https://spacetimedb.com/docs/reference/sql/)
  208. ## License
  209. SpacetimeDB is licensed under the [Business Source License 1.1 (BSL)](LICENSE.txt). It converts to the AGPL v3.0 with a linking exception after a few years. The linking exception means you are **not** required to open-source your own code if you use SpacetimeDB. You only need to contribute back changes to SpacetimeDB itself.
  210. **Why did we choose this license?**
  211. We chose to license SpacetimeDB under the MariaDB Business Source License for 4 years because we can't compete with AWS while also building our products for them.
  212. We chose GPLv3 with linking exception as the open source license because we want contributions merged back into mainline (just like Linux), but we don't want to make anyone else open source their own code (i.e. linking exception).

Ratings and comments

Sign in to rate this skill.

Sign in

Free to use. If it’s helped, pass it on.