Close Menu

    Subscribe to Updates

    Get the latest creative news from FooBar about art, design and business.

    What's Hot

    The Download: the rise of luxury car theft, and fighting antimicrobial resistance

    The curious case of the disappearing Lamborghinis

    Meta’s new deal with Nvidia buys up millions of AI chips

    Facebook X (Twitter) Instagram
    • Artificial Intelligence
    • Business Technology
    • Cryptocurrency
    • Gadgets
    • Gaming
    • Health
    • Software and Apps
    • Technology
    Facebook X (Twitter) Instagram Pinterest Vimeo
    Tech AI Verse
    • Home
    • Artificial Intelligence

      Read the extended transcript: President Donald Trump interviewed by ‘NBC Nightly News’ anchor Tom Llamas

      February 6, 2026

      Stocks and bitcoin sink as investors dump software company shares

      February 4, 2026

      AI, crypto and Trump super PACs stash millions to spend on the midterms

      February 2, 2026

      To avoid accusations of AI cheating, college students are turning to AI

      January 29, 2026

      ChatGPT can embrace authoritarian ideas after just one prompt, researchers say

      January 24, 2026
    • Business

      The HDD brand that brought you the 1.8-inch, 2.5-inch, and 3.5-inch hard drives is now back with a $19 pocket-sized personal cloud for your smartphones

      February 12, 2026

      New VoidLink malware framework targets Linux cloud servers

      January 14, 2026

      Nvidia Rubin’s rack-scale encryption signals a turning point for enterprise AI security

      January 13, 2026

      How KPMG is redefining the future of SAP consulting on a global scale

      January 10, 2026

      Top 10 cloud computing stories of 2025

      December 22, 2025
    • Crypto

      Metaplanet Reports FY2025 Results as Bitcoin Unrealized Losses Top $1 Billion

      February 17, 2026

      Crypto’s AI Pivot: Hype, Infrastructure, and a Two-Year Countdown

      February 17, 2026

      The RWA War: Stablecoins, Speed, and Control

      February 17, 2026

      Jeffrey Epstein Emails Show Plans to Meet Gary Gensler To Talk Crypto

      February 17, 2026

      Bitcoin Bounce Fades, Q1 Losses Deepen, and New Price Risk Back in Focus

      February 17, 2026
    • Technology

      The Download: the rise of luxury car theft, and fighting antimicrobial resistance

      February 18, 2026

      The curious case of the disappearing Lamborghinis

      February 18, 2026

      Meta’s new deal with Nvidia buys up millions of AI chips

      February 18, 2026

      Stephen Colbert says CBS banned him from airing this James Talarico interview

      February 18, 2026

      Google’s AI search results will make links more obvious

      February 18, 2026
    • Others
      • Gadgets
      • Gaming
      • Health
      • Software and Apps
    Check BMI
    Tech AI Verse
    You are at:Home»Technology»SpacetimeDB v1.0: Multiplayer at the speed of light
    Technology

    SpacetimeDB v1.0: Multiplayer at the speed of light

    TechAiVerseBy TechAiVerseApril 5, 2025No Comments7 Mins Read2 Views
    Facebook Twitter Pinterest Telegram LinkedIn Tumblr Email Reddit
    SpacetimeDB v1.0: Multiplayer at the speed of light
    Share
    Facebook Twitter LinkedIn Pinterest WhatsApp Email

    SpacetimeDB v1.0: Multiplayer at the speed of light



    Multiplayer at the speed of light.


     

     

     

     

     


     


     

     

     


     

     

     

     

     

     

    What is SpacetimeDB?

    You can think of SpacetimeDB as both a database and server combined into one.

    It is a relational database system that lets you upload your application logic directly into the database by way of fancy stored procedures called “modules.”

    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 inside the database itself. You can write all of your permission and authorization logic right inside your module just as you would in a normal server.

    This means that you can write your entire application in a single language, Rust, and deploy it as a single binary. No more microservices, no more containers, no more Kubernetes, no more Docker, no more VMs, no more DevOps, no more infrastructure, no more ops, no more servers.

    SpacetimeDB application architecture
    (elements in white are provided by SpacetimeDB)

    It’s actually similar to the idea of smart contracts, except that SpacetimeDB is a database, has nothing to do with blockchain, and is orders of magnitude faster than any smart contract system.

    So fast, in fact, that the entire backend of our MMORPG BitCraft Online is just a SpacetimeDB module. We don’t have any other servers or services running, which means that everything in the game, all of the chat messages, items, resources, terrain, and even the locations of the players are stored and processed by the database before being synchronized out to all of the clients in real-time.

    SpacetimeDB is optimized for maximum speed and minimum latency rather than batch processing or OLAP workloads. It is designed to be used for real-time applications like games, chat, and collaboration tools.

    This speed and latency is achieved by holding all of application state in memory, while persisting the data in a write-ahead-log (WAL) which is used to recover application state.

    Installation

    You can run SpacetimeDB as a standalone database server via the spacetime CLI tool.
    Install instructions for supported platforms are outlined below.
    The same install instructions can be found on our website at https://spacetimedb.com/install.

    Install on macOS

    Installing on macOS is as simple as running our install script. After that you can use the spacetime command to manage versions.

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

    Install on Linux

    Installing on Linux is as simple as running our install script. After that you can use the spacetime command to manage versions.

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

    Install on Windows

    Installing on Windows is as simple as pasting the above snippet into PowerShell. If you would like to use WSL instead, please follow the Linux install instructions.

    iwr https://windows.spacetimedb.com -useb | iex

    Installing from Source

    A quick note on installing from source: we recommend that you don’t install from source unless there is a feature that is available in master that hasn’t been released yet, otherwise follow the official installation instructions.

    MacOS + Linux

    Installing on macOS + Linux is pretty straightforward. First we are going to build all of the binaries that we need:

    # Install rustup, you can skip this step if you have cargo and the wasm32-unknown-unknown target already installed.
    curl https://sh.rustup.rs -sSf | sh
    # Clone SpacetimeDB
    git clone https://github.com/clockworklabs/SpacetimeDB
    # Build and install the CLI
    cd SpacetimeDB
    cargo build --locked --release -p spacetimedb-standalone -p spacetimedb-update -p spacetimedb-cli
    
    # Create directories
    mkdir -p ~/.local/bin
    export STDB_VERSION="$(./target/release/spacetimedb-cli --version | sed -n 's/.*spacetimedb tool version ([0-9.]*);.*/1/p')"
    mkdir -p ~/.local/share/spacetime/bin/$STDB_VERSION
    
    # Install the update binary
    cp target/release/spacetimedb-update ~/.local/bin/spacetime
    cp target/release/spacetimedb-cli ~/.local/share/spacetime/bin/$STDB_VERSION
    cp target/release/spacetimedb-standalone ~/.local/share/spacetime/bin/$STDB_VERSION

    At this stage you’ll need to add ~/.local/bin to your path if you haven’t already.

    # Please add the following line to your shell configuration and open a new shell session:
    export PATH="$HOME/.local/bin:$PATH"
    
    

    Then finally set your SpacetimeDB version:

    
    # Then, in a new shell, set the current version:
    spacetime version use $STDB_VERSION
    
    # If STDB_VERSION is not set anymore then you can use the following command to list your versions:
    spacetime version list
    

    You can verify that the correct version has been installed via spacetime --version.

    Windows

    Building on windows is a bit more complicated. You’ll need a slightly different version of perl compared to what comes pre-bundled in most Windows terminals. We recommend Strawberry Perl. You may also need access to an openssl binary which actually comes pre-installed with Git for Windows. Also, you’ll need to install rustup for Windows.

    In a Git for Windows shell you should have something that looks like this:

    If that looks correct then you’re ready to proceed!

    # Clone SpacetimeDB
    git clone https://github.com/clockworklabs/SpacetimeDB
    
    # Build and install the CLI
    cd SpacetimeDB
    cargo build --locked --release -p spacetimedb-standalone -p spacetimedb-update -p spacetimedb-cli
    
    # Create directories
    $stdbDir = "$HOMEAppDataLocalSpacetimeDB"
    $stdbVersion = & ".targetreleasespacetimedb-cli" --version | Select-String -Pattern 'spacetimedb tool version ([0-9.]+);' | ForEach-Object { $_.Matches.Groups[1].Value }
    New-Item -ItemType Directory -Path "$stdbDirbin$stdbVersion" -Force | Out-Null
    
    # Install the update binary
    Copy-Item "targetreleasespacetimedb-update.exe" "$stdbDirspacetime.exe"
    Copy-Item "targetreleasespacetimedb-cli.exe" "$stdbDirbin$stdbVersion"
    Copy-Item "targetreleasespacetimedb-standalone.exe" "$stdbDirbin$stdbVersion"
    

    Now add the directory we just created to your path. We recommend adding it to the system path because then it will be available to all of your applications (including Unity3D). After you do this, restart your shell!

    %USERPROFILE%AppDataLocalSpacetimeDB
    

    Then finally, open a new shell and use the installed SpacetimeDB version:

    spacetime version use $stdbVersion
    
    # If stdbVersion is no longer set, list versions using the following command:
    spacetime version list
    

    You can verify that the correct version has been installed via spacetime --version.

    If you’re using Git for Windows you can follow these instructions instead:

    # Clone SpacetimeDB
    git clone https://github.com/clockworklabs/SpacetimeDB
    # Build and install the CLI
    cd SpacetimeDB
    # Build the CLI binaries - this takes a while on windows so go grab a coffee :)
    cargo build --locked --release -p spacetimedb-standalone -p spacetimedb-update -p spacetimedb-cli
    
    # Create directories
    export STDB_VERSION="$(./target/release/spacetimedb-cli --version | sed -n 's/.*spacetimedb tool version ([0-9.]*);.*/1/p')"
    mkdir -p ~/AppData/Local/SpacetimeDB/bin/$STDB_VERSION
    
    # Install the update binary
    cp target/release/spacetimedb-update ~/AppData/Local/SpacetimeDB/spacetime
    cp target/release/spacetimedb-cli ~/AppData/Local/SpacetimeDB/bin/$STDB_VERSION
    cp target/release/spacetimedb-standalone ~/AppData/Local/SpacetimeDB/bin/$STDB_VERSION
    
    # Now add the directory we just created to your path. We recommend adding it to the system path because then it will be available to all of your applications (including Unity3D). After you do this, restart your shell!
    # %USERPROFILE%AppDataLocalSpacetimeDB
    
    # Set the current version
    spacetime version use $STDB_VERSION

    You can verify that the correct version has been installed via spacetime --version.

    Running with Docker

    If you prefer to run Spacetime in a container, you can use the following command to start a new instance.

    docker run --rm --pull always -p 3000:3000 clockworklabs/spacetime start

    Documentation

    For more information about SpacetimeDB, getting started guides, game development guides, and reference material please see our documentation.

    Getting Started

    We’ve prepared several getting started guides in each of our supported languages to help you get up and running with SpacetimeDB as quickly as possible. You can find them on our docs page.

    In summary there are only 4 steps to getting started with SpacetimeDB.

    1. Install the spacetime CLI tool.
    2. Start a SpacetimeDB standalone node with spacetime start.
    3. Write and upload a module in one of our supported module languages.
    4. Connect to the database with one of our client libraries.

    You can see a summary of the supported languages below with a link to the getting started guide for each.

    Language Support

    You can write SpacetimeDB modules in several popular languages, with more to come in the future!

    Serverside Libraries

    • Rust
    • C#

    Client Libraries

    • Rust
    • C#
    • Typescript

    License

    SpacetimeDB is licensed under the BSL 1.1 license. This is not an open source or free software license, however, it converts to the AGPL v3.0 license with a linking exception after a few years.

    Note that the AGPL v3.0 does not typically include a linking exception. We have added a custom linking exception to the AGPL license for SpacetimeDB. Our motivation for choosing a free software license is to ensure that contributions made to SpacetimeDB are propagated back to the community. We are expressly not interested in forcing users of SpacetimeDB to open source their own code if they link with SpacetimeDB, so we needed to include a linking exception.

    Share. Facebook Twitter Pinterest LinkedIn Reddit WhatsApp Telegram Email
    Previous ArticleMammoth de-extinction is bad conservation
    Next Article Baldness? UCLA’s New Molecule Could Revolutionize Hair Growth
    TechAiVerse
    • Website

    Jonathan is a tech enthusiast and the mind behind Tech AI Verse. With a passion for artificial intelligence, consumer tech, and emerging innovations, he deliver clear, insightful content to keep readers informed. From cutting-edge gadgets to AI advancements and cryptocurrency trends, Jonathan breaks down complex topics to make technology accessible to all.

    Related Posts

    The Download: the rise of luxury car theft, and fighting antimicrobial resistance

    February 18, 2026

    The curious case of the disappearing Lamborghinis

    February 18, 2026

    Meta’s new deal with Nvidia buys up millions of AI chips

    February 18, 2026
    Leave A Reply Cancel Reply

    Top Posts

    Ping, You’ve Got Whale: AI detection system alerts ships of whales in their path

    April 22, 2025683 Views

    Lumo vs. Duck AI: Which AI is Better for Your Privacy?

    July 31, 2025265 Views

    6.7 Cummins Lifter Failure: What Years Are Affected (And Possible Fixes)

    April 14, 2025155 Views

    6 Best MagSafe Phone Grips (2025), Tested and Reviewed

    April 6, 2025114 Views
    Don't Miss
    Technology February 18, 2026

    The Download: the rise of luxury car theft, and fighting antimicrobial resistance

    The Download: the rise of luxury car theft, and fighting antimicrobial resistance Across the world,…

    The curious case of the disappearing Lamborghinis

    Meta’s new deal with Nvidia buys up millions of AI chips

    Stephen Colbert says CBS banned him from airing this James Talarico interview

    Stay In Touch
    • Facebook
    • Twitter
    • Pinterest
    • Instagram
    • YouTube
    • Vimeo

    Subscribe to Updates

    Get the latest creative news from SmartMag about art & design.

    About Us
    About Us

    Welcome to Tech AI Verse, your go-to destination for everything technology! We bring you the latest news, trends, and insights from the ever-evolving world of tech. Our coverage spans across global technology industry updates, artificial intelligence advancements, machine learning ethics, and automation innovations. Stay connected with us as we explore the limitless possibilities of technology!

    Facebook X (Twitter) Pinterest YouTube WhatsApp
    Our Picks

    The Download: the rise of luxury car theft, and fighting antimicrobial resistance

    February 18, 20261 Views

    The curious case of the disappearing Lamborghinis

    February 18, 20262 Views

    Meta’s new deal with Nvidia buys up millions of AI chips

    February 18, 20261 Views
    Most Popular

    7 Best Kids Bikes (2025): Mountain, Balance, Pedal, Coaster

    March 13, 20250 Views

    VTOMAN FlashSpeed 1500: Plenty Of Power For All Your Gear

    March 13, 20250 Views

    This new Roomba finally solves the big problem I have with robot vacuums

    March 13, 20250 Views
    © 2026 TechAiVerse. Designed by Divya Tech.
    • Home
    • About Us
    • Contact Us
    • Privacy Policy
    • Terms & Conditions

    Type above and press Enter to search. Press Esc to cancel.