https://github.com/repcomm/mwot
My World Of Text - Pocketbase backend and Web client similar to ywot and owot
https://github.com/repcomm/mwot
Last synced: 10 months ago
JSON representation
My World Of Text - Pocketbase backend and Web client similar to ywot and owot
- Host: GitHub
- URL: https://github.com/repcomm/mwot
- Owner: RepComm
- License: mit
- Created: 2023-04-30T19:34:27.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-05-02T00:02:08.000Z (over 2 years ago)
- Last Synced: 2025-01-28T08:51:47.384Z (12 months ago)
- Language: JavaScript
- Size: 16.3 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: ReadMe.md
- License: license_pocketbase.md
Awesome Lists containing this project
README
# mwot
My World Of Text
Similar in ways to [Our World Of Text](https://ourworldoftext.com) aka [NodeWorldOfText](https://github.com/system2k/NodeWorldOfText)
## How it works
- backend - pocketbase, database and static web server
- admin bot (not impl yet) - node.js script, connects to pocketbase as superuser, queries and adjusts data
- client - typescript, HTML 2d canvas, connects w/ realtime API of pocketbase, facilitates frontend experience
### data
- chunks
- unique chunk index cx,cy
- src - raw text of the chunk, client uses fixed width/height to render text
- editorid - last user id string required for create/update of chunk
- chats
- from - single user, required to create/update a message
- to - zero, or multiple users - when populated, message only queryable by these users, otherwise visible to any user
- message - raw text content
- cursors
- tx,ty global text offset in the world, used to render user's cursor(s)
- users
- normal user stuff
- cursors - refers to cursors collection, a set of cursors belonging to the user