Giter Site home page Giter Site logo

dnd-map's People

Contributors

dependabot[bot] avatar karlyanelson avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

wushin

dnd-map's Issues

Fog of war so only parts of the map are visible

use HTML Canvas?

  • Be able to set opacity
  • Erase parts of fog of war
  • Have a DM map that can see through fog of war on one page
  • Have a player map that can't see through fog of war on another page/tab that the DM can share over zoom

Storage in the cloud instead of locally, or increased local storage

Example! - open source Beyond Table Top uses firebase

Idea

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?


User management

  • Netlify Identity
    • docs
    • pricing
      • Free up to 1k per site /month ($99 when exceeded)

Local backend options

  • Local Storage
  • File API - give user option to store info in a file on their computer that the can manage

Cloud backend options

Monbo DB

Try Cloudflare R2 or Images for Image storage

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.

AWS S3

  • S3 bucket for storing images
  • use S3 API to get images and add them
    • use cloudfront cdn? probably overkill
    • S3 pricing
  • DynamoDB for database?

Firebase

Alt Auth: Use Clerk.dev

  • great for user management
  • Free for 500 users
  • Integrates with firebase

Google Sheets

Store data in database per user instead of locally => google sheet?

login with google account so can use google sheet as backend?

Bigger local storage options

IndexDB

Use IndexedDB to store data locally instead of LocalStorage ?

https://hacks.mozilla.org/2012/02/storing-images-and-files-in-indexeddb/

  • tutorial on how to store images and files in indexeddb - READ FIRST

https://www.npmjs.com/package/idb

  • wrapper for indexdb that helps with usability

⭐️ https://localforage.github.io/localForage/#multiple-stores

  • library that has localstorage like api but uses indexdb

https://jlongster.com/future-sql-web

  • use sql with index db -> very fast

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.

https://developer.mozilla.org/en-US/docs/

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.