# spruceid/siwe

Sign-In with Ethereum library

Repository: https://github.com/spruceid/siwe
Canonical: https://ross.abutalabs.com/products/siwe
Homepage: https://login.xyz
Language: TypeScript
License: Apache-2.0
License Family: permissive
Topics: identity, ethereum
Last push: 2025-05-30T18:55:36+00:00

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

## Adoption (not part of the score)
Stars 1119, forks 140 (observed 2026-08-28T04:03:39.418060+00:00)

## What it is
A TypeScript library implementing Sign-In with Ethereum (EIP-4361), a standard message format for Ethereum accounts to authenticate with off-chain services via message signing. It provides a self-custodied alternative to centralized identity providers for establishing web sessions.

## Use cases
- authenticate users with ethereum wallets instead of passwords
- implement sign-in with ethereum in a web app
- create cookie-based sessions from wallet signatures
- replace centralized identity providers with self-custodial login
- verify signed siwe messages on a backend
- add wallet-based login to a dapp

## When to choose
- you want passwordless, self-custodial authentication for an Ethereum-based service
- you need standards-compliant EIP-4361 message creation and verification in TypeScript
- you are building a dapp or backend that establishes sessions from wallet signatures

## When to avoid
- you need traditional email/password or OAuth-based authentication
- your stack is not JavaScript/TypeScript and you cannot use a JS runtime
- you require a formally audited security-critical implementation

## Facets
- artifact type: library
- maturity: active
- function: auth, cryptography, sdk
- domain: security, blockchain, web-development, apis
- platform: -
- tags: ethereum, siwe, eip-4361, wallet-authentication, self-custodial-identity, dapp, nodejs, typescript, web-server

## Member repositories
- spruceid/siwe (main) score 34

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:39.418060+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-30T06:41:25.798329+00:00, confidence not recorded.
  - readme: https://github.com/spruceid/siwe (fetched 2026-08-28T04:03:39.418060+00:00, sha d0b964e6b327)
  - homepage: https://login.xyz (fetched 2026-08-29T12:45:10.489107+00:00, sha fe6cf250f047)
  - registry_npm: https://registry.npmjs.org/siwe (fetched 2026-08-29T12:45:10.498147+00:00, sha c9e5f35d5897)
- Data as of 2026-08-30T08:39:29.467469+00:00.
