How we manage plans and features in our SaaS app

How we manage plans and features in our SaaS app

To check what features a user can access based on their plan we store a set of string constants for each account in a field called features. In code:

This set of features lives as an array field on each account record a user is linked with. This is how we assert this volume limit in our backend API

Asserting users are within their plan limits on the backend is really important for all kinds of reasons, but how are we going to do “be nice about it” on the frontend, specifically in an SPA type setup?

Source: blog.checklyhq.com