Easy deployable system (API) for creating subscription based applications
- You have desktop or other application that requires subscription
- You want to use subscription-like tokens/keys
- Deploy API on the your server
- Query your subscription key from user inside your application (fetch API call)
- Create and manage new subscription for users (by hand, implementing own management tool, or use premade inside
frontends
directory)
Project does provide support for storing / analysing (KPI) of prices/revenue, but not the purchasing via any payment provider or etc, you can write own frontend for that or publishing subscriptions by own
SUBSCRIBY_AUTH_METHOD
Auth methods to use
none
: No additional authorizationsecret
: Requiresecret
GET field orAuthorization
header (with or withoutBearer
) which should equals toSUBSCRIBY_AUTH_SECRET
custom
: Will callplugins/custom_auth
plugin with your own code.
- Telegram bot
frontends/telegram
- Creating new subscriptions
- Checking subscription status
- Revoking subscriptions
- Analytics (KPI, even for your payload via plugin)
- Custom payload injected within subscriptions
- Auth for system methods (publish, revoke)
- Webhook notification for clients
There is support for custom plugins for:
- Auth (Check own custom auth)
- Payload (Inject custom payload with or without validation)
- Analytics (Inject own KPI trackers)
(How to deploy API)
- Do
git clone
on your server - Edit
backend/.example.env
and copy to.env
- Run
docker compose up -d
insidebackend
directory
- Python (FastAPI)
- PostgreSQL (SQLAlchemy)
- Docker
- Gunicorn with Uvicorn under the hood
Should be same as default deployment but you have to declare proxy to the API (Like, for NGINX)