karlyanelson / dnd-map Goto Github PK
View Code? Open in Web Editor NEWDungeons and Dragons map with draggable player pieces
Dungeons and Dragons map with draggable player pieces
use HTML Canvas?
game server - https://aws.amazon.com/gamelift/
use open source PartyKit - https://github.com/partykit/partykit
Other options:
Example! - open source Beyond Table Top uses firebase
My main issue is user management and storing images, what if i just had a s3 bucket for images, but stored everything else locally? Maybe make an id per localstorage session per user and store s3 images in folder under that id?
https://www.cloudflare.com/lp/pg-developer-platform/
From Bytes.dev
Cloudflare saved us thousands of dollars
Here’s how: We own a relatively popular site called npm trends, which serves millions of requests a day. Owning a site like that is kind of like doing an Olive Garden eat-the-menu challenge. It’s (mostly) fun and games — until the host brings you the bill.After months of spending a gluttonous amount on hosting, we finally decided to save some dough and refactored our backend to use Cloudflare Workers instead of [REDACTED] — which made me feel like both a genius and an idiot. A genius because it instantly saved us thousands of dollars and easily scales to our needs, and an idiot for not switching sooner.
One more Cloudflare hack: Using R2 object storage to store and serve user data.
It’s fast, powerful, and way cheaper than Amazon S3 because it has no egress fees and an incredible free tier. And since it’s fully compatible with S3, you can save a bunch of money by using R2 for your object storage.
Try out the free tiers — you’ll thank me later.
Alt Auth: Use Clerk.dev
Store data in database per user instead of locally => google sheet?
login with google account so can use google sheet as backend?
Use IndexedDB to store data locally instead of LocalStorage ?
https://hacks.mozilla.org/2012/02/storing-images-and-files-in-indexeddb/
https://www.npmjs.com/package/idb
⭐️ https://localforage.github.io/localForage/#multiple-stores
https://jlongster.com/future-sql-web
https://web.dev/storage-for-the-web/#how-much
Bonus: Why use a wrapper for IndexedDB #
IndexedDB is a low level API that requires significant setup before use, which can be particularly painful for storing simple data. Unlike most modern promise-based APIs, it is event based. Promise wrappers like idb for IndexedDB hide some of the powerful features but more importantly, hide the complex machinery (e.g. transactions, schema versioning) that comes with the IndexedDB library.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.