Skip to content
Skill

postkit

by varunchopra

AI Summary

Heuristic scoring (no AI key configured).

Install

Copy this and paste it into Claude Code, Cursor, or any AI assistant:

I want to install the "postkit" skill in my project.

Please run this command in my terminal:
# Install skill into the correct directory
mkdir -p .claude/skills/postkit && curl --retry 3 --retry-delay 2 --retry-all-errors -o .claude/skills/postkit/SKILL.md "https://raw.githubusercontent.com/varunchopra/postkit/main/SKILL.md"

Then restart Claude Code (or reload the window in Cursor) so the skill is picked up.

Description

PostgreSQL-native identity, configuration, metering, and job queues. SQL functions that work with any language or driver. Use when working with user management, sessions, permissions, access control, login/logout, MFA, password resets, relationship-based access, versioned configuration, prompts, usage tracking, quotas, billing periods, or background jobs in PostgreSQL. Covers authn (user/session management), authz (ReBAC permissions), config (versioned key-value storage), meter (usage tracking with reservations), and queue (job scheduling with retries and dead letters).

Requirements

All languages (SQL functions): • PostgreSQL 14+ • Schema installed from dist/ files Python SDK only (optional wrapper): • psycopg>=3.1.0 (not psycopg2) • Python 3.11+

Setup (REQUIRED FIRST STEP)

Clone the repository if not already present: `bash [ -d postkit ] || git clone https://github.com/varunchopra/postkit.git ` Then build the dist files: `bash cd postkit && make build && cd .. ` Install the SQL schema on the user's database: `bash psql $DATABASE_URL -f postkit/dist/postkit.sql

Or individual modules: postkit/dist/authn.sql, postkit/dist/authz.sql, postkit/dist/config.sql, postkit/dist/meter.sql, postkit/dist/queue.sql

` For the optional Python SDK: `bash pip install -e "./postkit/sdk[binary]" `

Instructions

• Read postkit/AGENTS.md for multi-tenancy, hashing, login flows, and module API maps • Read the relevant module docs based on what the user needs: • Authentication (users/sessions): postkit/docs/authn/ • Authorization (permissions): postkit/docs/authz/ • Configuration (versioned key-value): postkit/docs/config/ • Metering (usage tracking, quotas): postkit/docs/meter/ • Job Queues (scheduling, retries): postkit/docs/queue/

Discussion

0/2000
Loading comments...

Health Signals

MaintenanceCommitted 2mo ago
Active
AdoptionUnder 100 stars
8 ★ · Niche
DocsREADME + description
Well-documented

GitHub Signals

Stars8
Issues0
Updated2mo ago
View on GitHub
Apache-2.0 License

My Fox Den

Community Rating

Sign in to rate this booster

Works With

Claude Code