SNIP-02: Geo Check-in (Persistent)

covers39238

⚡tephen

published

draft optional

Motivation

Nostr currently lacks a standardized format for users to share their physical presence that supports asynchronous discovery. While ephemeral events (20k range) are useful for "live" streams, they are not stored by relays. A persistent check-in serves as a semi-public broadcast of a user's location, allowing for:

  • Asynchronous Community Discovery: Finding other Nostr users at a conference or venue who checked in before you arrived.
  • Spontaneous Meetups: Facilitating social gatherings over a set duration (e.g., "I'm here for the next 4 hours").
  • Integration with Reviews: Check-ins serve as proof-of-visitation for SNIP-07 reviews, creating a verifiable record of presence.

Kind

This SNIP proposes kind:39238.

This kind is in the 30000-39999 range, designating it as a parameterized replaceable event according to NIP-01. Relays MUST store the most recent event for each d tag per pubkey.

Content

The .content field is a free-form string that MAY contain a human-readable description of the location, such as a business name, event title, or address.

Example: "Bitcoin Park" or "Main Street Coffee"

Tags

This event kind uses the following tags:

  • d (required): The geohash of the location. This acts as the identifier for the replaceable event, ensuring a user has exactly one "active" status per location.
  • geo (required): The geohash representing the geographical coordinates.
  • expiration (required): A UNIX timestamp (as a string) indicating when the check-in is no longer valid. Clients MUST hide the check-in event after this time.
  • a (optional): A reference to a SNIP-07 business claim event (31987:<pubkey>:<geohash>).
  • t (optional): Hashtags for categorization (e.g., #conference, #coffee).
  • u (optional): A URL providing more context about the location.

Relationship with SNIP-07

  1. Checking in at claimed businesses: Use the a tag to reference a SNIP-07 business claim.
  2. Proof of visitation for reviews: SNIP-07 reviews (kind:31986) reference check-in events via the e tag.
    • Verification Window: To ensure a review is "Verified," the reviewer's client SHOULD publish the review event (kind:31986) before the check-in event (kind:39238) expires.
    • Persistence: Once a check-in is linked to a persistent review, the check-in effectively becomes part of the public review record. Clients and specialized archival relays MAY choose to retain check-ins referenced by persistent events even after their expiration has passed.

Client Behavior

  • State Management: Clients SHOULD treat the most recent kind:39238 with a matching d tag as the user's current status at that location.
  • Expiration Handling: Clients MUST parse the expiration tag. They SHOULD NOT display check-ins in "Who's Here Now" feeds if the current time is greater than the expiration timestamp.
  • Map Display: Clients MAY use the geo tag to cluster or display active check-ins on a map.

Privacy Considerations

⚠️ PERMANENT LOGGING: While check-ins are designed to expire, any check-in linked to a persistent review (SNIP-07) or a meetup proof (SNIP-06) may be archived indefinitely by third-party clients. Users should be warned that linking a check-in to a persistent event "hardens" that location data into a permanent record.

Example Event

Check-in at an Unclaimed Location

{
  "kind": 39238,
  "tags": [
    ["geo", "dr5rukb6"],
    ["expiration", "1765152770"],
    ["t", "coffee"],
    ["u", "https://example.com/coffee-shop"]
  ],
  "content": "Central Park Cafe",
}

Check-in at a SNIP-07 Claimed Business

{
  "kind": 39238,
  "tags": [
    ["geo", "9q8yyz"],
    ["expiration", "1765152770"],
    ["a", "31987:c3e4f5d6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d2e3f4a5b6c7d8e9f0a1b2c3d4:9q8yyz"],
    ["t", "pizza"],
    ["u", "https://salspizza.com"]
  ],
  "content": "Sal's Pizza",
}

Implementation Notes

  • Relay Operators: Relays MAY implement geohash-based indexing to support proximity queries.
  • Cleanup: Relays SHOULD delete events of this kind once the expiration timestamp has passed. Exception: Relays MAY choose to preserve check-ins that are referenced by a valid e tag in a persistent review or meetup event to maintain the integrity of the verification chain.

Discussion

Connect a key to comment.