https://github.com/croquet/croquet
Client-side (!) Multiplayer for JavaScript
https://github.com/croquet/croquet
Last synced: 4 months ago
JSON representation
Client-side (!) Multiplayer for JavaScript
- Host: GitHub
- URL: https://github.com/croquet/croquet
- Owner: croquet
- License: apache-2.0
- Created: 2025-03-18T04:18:27.000Z (about 1 year ago)
- Default Branch: dev
- Last Pushed: 2025-07-31T01:39:30.000Z (10 months ago)
- Last Synced: 2025-10-11T17:48:28.357Z (8 months ago)
- Language: JavaScript
- Homepage: https://multisynq.io/docs/croquet
- Size: 19.4 MB
- Stars: 26
- Watchers: 6
- Forks: 5
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
- awesome - croquet/croquet - Client-side (!) Multiplayer for JavaScript (JavaScript)
README
# Croquet 🦩
[](http://npmjs.com/package/@croquet/croquet)
[](https://www.npmjs.com/package/@croquet/croquet?activeTab=versions)
*Croquet lets you build real-time multiuser apps without writing server-side code. Unlike traditional client/server architectures, the multiplayer code is executed on each client in a synchronized virtual machine, rather than on a server.*
Croquet is available as a JavaScript library that synchronizes Croquet apps using Multisynq's global DePIN network. Additionally, the reflector server keeping VMs in sync is available as a node.js package.
## License
Croquet is licensed under [Apache-2.0](LICENSE.txt).
## Testing
Some of the examples in `apps/` require to build a local version of Croquet, which you can do by
cd packages/croquet
./build.sh
Then the apps should work directly from their source in `apps/`.
Alternatively, run `build.sh` in this root folder, which will both build the Croquet library and build the `apps/` into a `_site/` folder. This also gets run via a GitHub action which creates the GitHub Pages site.
The examples in `apps/` use a place holder Multisynq API key that is only valid for testing on the local network and the Croquet GitHub Pages site. You can get your own key on the [Multisynq](https://multisynq.io/coder) website. Alternatively, check out Croquet-in-a-Box below.
## Repo Layout
* `apps`: various examples and tests
* `docs`: JSDoc sources
* `packages`:
* `croquet`: the client-side package
* `reflector`: the node.js server package
* `server`:
* `croquet-in-a-box`: via Docker Compose, an all-in-one server for local development, containing
* a reflector
* a web server
* and a file server