Please have a look at the architecture diagram for more details on how it's setup:
https://supertokens.com/docs/community/architecture
Essentially, you have to run a micro service (what we call "supertokens core"), which connects to your database. This service can be self hosted, or can be managed by us.