autumn-gating

Installation
SKILL.md

Checking and Tracking Usage

Autumn handles your customer's payments and grants them the features defined in your plan configuration. There are 2 functions you need to enforce limits and gating:

  • check for feature access, before allowing a user to do something
  • track the usage in Autumn afterwards (if needed)

Your Autumn configuration is in autumn.config.ts. If it doesn't exist, run npx atmn init to log in and generate the file.

Step 1: Detect Integration Type

Check if the codebase already has Autumn set up:

  • If there's an AutumnProvider and autumnHandler mounted -> React hooks available (can use for UX)
  • Backend SDK should always be used to enforce limits server-side

Report what you detected before proceeding.


Installs
1
GitHub Stars
2.7K
First Seen
3 days ago
autumn-gating — useautumn/autumn