Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: light-weight mode #190

Open
SHAcollision opened this issue Nov 12, 2024 · 0 comments
Open

Feat: light-weight mode #190

SHAcollision opened this issue Nov 12, 2024 · 0 comments
Labels

Comments

@SHAcollision
Copy link
Collaborator

Feature Request: Light-weight Mode for Nexus Indexer

Nexus currently functions as a full-content indexer, reshaping and serving every object in /pubky.app to facilitate building pubky.app clients and enhance UX and latency.

Problem Statement

There are strong use cases for a "light-weight" mode in Nexus. A Nexus in light-weight mode will be serving only URIs to homeservers, leaving clients to fetch data directly from the source. As a light-weight Nexus would consume less memory, storage, and overall resources, running a home indexer would become more feasible. This will further help decentralisation. In addition, light-clients avoid the legal hazard in some jurisdictions of serving other parties' data.

Proposed Solution

Introduce a new setting to switch Nexus between two modes:

  1. Full-content mode (current functionality)
  2. Light-weight mode - serves URIs only

Alternative Option

Consider a "pruned" Nexus that holds no content/files but only serves URIs. Additionally, we could add an option to each API endpoint, lightweight=true, allowing:

  • Full-content Nexus to support both full-content and light-weight clients
  • Pruned Nexus to exclusively support light-weight clients

Note: Light-weight clients will be "fat", more akin to Nostr clients. A lightweight indexer would require more processing on the client's end.

@SHAcollision SHAcollision self-assigned this Nov 12, 2024
@SHAcollision SHAcollision changed the title Feat: light-weight Mode Feat: light-weight mode Nov 12, 2024
@SHAcollision SHAcollision removed their assignment Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant