PlayFab + Svelte


PlayFab is a super easy, free and well documented service Microsoft offers. After describing it to someone, they commented "Oh, it sounds kinda like a firebase for games." I think that's pretty on the nose.

I was using a few functions a few times on different views and it was getting a little bit spaghetti, so I figured I ought to turn the functions I need into components. Separation of concerns.

In SvelteKit every route is also a component, so all these routes are also components. To get x functionality, pop in that component.

how to use:

  1. add playfab script to head of app.html
  2. add whichever components you need
  3. configure your titleId

components:

notes: