{
  "id": "supertokens",
  "name": "SuperTokens",
  "slogan": "A self-hosted authentication backend with session management, social login, and passwordless, backed by Postgres.",
  "category": "Security",
  "categorySlug": "security",
  "tags": [
    "postgres",
    "multi-service"
  ],
  "license": {
    "spdx": "Apache-2.0",
    "class": "permissive"
  },
  "memoryMiB": 256,
  "architectures": {
    "amd64": "published",
    "arm64": "published"
  },
  "trust": "listed",
  "verified": false,
  "status": "active",
  "installCommand": "levelrail-cli templates install supertokens --name my-supertokens",
  "deployFormats": [
    "cli",
    "api"
  ],
  "url": "https://levelrail.com/templates/supertokens/",
  "docsUrl": "https://supertokens.com/docs/",
  "sourceRepo": "https://github.com/supertokens/supertokens-core",
  "markdownUrl": "https://levelrail.com/templates/supertokens.md",
  "jsonUrl": "https://levelrail.com/templates/supertokens.json",
  "indexable": true,
  "description": "A self-hosted authentication backend with session management, social login, and passwordless, backed by Postgres. Runs 2 containers (postgres, supertokens), with supertokens listening on port 3567 and keeps its data in named volumes.",
  "pinnedTag": "16-alpine",
  "licenseUrl": "https://github.com/supertokens/supertokens-core/blob/master/LICENSE.md",
  "licenseClassLabel": "Permissive license",
  "needsConfig": false,
  "gpu": false,
  "firstRun": [],
  "services": [
    {
      "name": "postgres",
      "image": "postgres",
      "tag": "16-alpine",
      "ports": [],
      "volumes": [
        "supertokens_postgres_data -> /var/lib/postgresql/data"
      ]
    },
    {
      "name": "supertokens",
      "image": "registry.supertokens.io/supertokens/supertokens-postgresql",
      "tag": "latest",
      "ports": [
        3567
      ],
      "volumes": []
    }
  ],
  "env": [
    {
      "service": "postgres",
      "name": "POSTGRES_DB",
      "kind": "preset"
    },
    {
      "service": "postgres",
      "name": "POSTGRES_PASSWORD",
      "kind": "generated"
    },
    {
      "service": "postgres",
      "name": "POSTGRES_USER",
      "kind": "preset"
    },
    {
      "service": "supertokens",
      "name": "API_KEYS",
      "kind": "generated"
    },
    {
      "service": "supertokens",
      "name": "POSTGRESQL_CONNECTION_URI",
      "kind": "generated"
    }
  ],
  "verifiedTag": null,
  "verifiedArches": [],
  "aliases": [],
  "findings": [
    {
      "code": "unpinned_image",
      "severity": "review",
      "message": "Image is not pinned to a version tag, so a redeploy can pull different code"
    }
  ],
  "compose": null,
  "deploy": {
    "cli": "levelrail-cli templates deploy supertokens --name my-supertokens",
    "api": "curl -X POST -H \"Authorization: Bearer $TOKEN\" \\\n  https://levelrail.example.com/api/v1/service-templates/supertokens/deploy",
    "stack": null,
    "terraform": null,
    "formats": [
      {
        "id": "cli",
        "label": "CLI",
        "lang": "bash",
        "code": "levelrail-cli templates deploy supertokens --name my-supertokens"
      },
      {
        "id": "api",
        "label": "API",
        "lang": "bash",
        "code": "curl -X POST -H \"Authorization: Bearer $TOKEN\" \\\n  https://levelrail.example.com/api/v1/service-templates/supertokens/deploy",
        "note": "Create a token in the dashboard first. This one-click route deploys it as a trial app you can keep or remove."
      }
    ]
  }
}
