# nsarno/knock

Seamless JWT authentication for Rails API

Repository: https://github.com/nsarno/knock
Canonical: https://ross.abutalabs.com/products/knock
Language: Ruby
License: MIT
License Family: permissive
Archived: true
Last push: 2021-03-21T22:06:07+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 4069, "days_push": 1991, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: archived
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2054, forks 254 (observed 2026-08-28T04:06:09.770978+00:00)

## What it is
Knock is a Ruby gem providing seamless JWT-based authentication for Rails API-only applications. It integrates with Rails controllers via an Authenticable module to authenticate users from JSON Web Tokens.

## Use cases
- add jwt authentication to a rails api
- authenticate api requests with json web tokens
- get current_user in rails controllers from a token
- protect rails api endpoints with before_action auth
- token-based login for api-only rails apps

## When to choose
- you maintain a legacy Rails API already using Knock
- you need a minimal JWT auth layer tightly integrated with Rails controllers

## When to avoid
- you are starting a new project - the maintainer explicitly recommends against using it
- you want actively maintained software with security updates
- you can use the ruby-jwt gem directly instead

## Facets
- artifact type: library
- maturity: abandoned
- function: auth, middleware
- domain: web-development, backend, security, apis
- platform: ruby
- tags: jwt, rails, api-only, token-authentication, unmaintained, web-server

## Member repositories
- nsarno/knock (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:09.770978+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:57:18.425858+00:00, confidence not recorded.
  - readme: https://github.com/nsarno/knock (fetched 2026-08-28T04:06:09.770978+00:00, sha 43cfaa9d505f)
- Data as of 2026-08-30T08:39:29.467469+00:00.
