GithubHelp home page GithubHelp logo

thesimplekid / contact-group-auth Goto Github PK

View Code? Open in Web Editor NEW
2.0 3.0 0.0 105 KB

gRPC authz server for nostr-rs-rely.

License: BSD 3-Clause "New" or "Revised" License

Rust 100.00%
nostr nostr-relay

contact-group-auth's Introduction

Contact Group gRPC Server

License

gRPC Extensions for nostr-rs-relay

gRPC authz server for nostr-rs-rely. Admits events based on the proximity of a social graph. Principal users are set in the config file, other users are categorized into tiers based on the proximity to that primary group.

If the relay has nip42 enabled it will use the authenticated pubkey if not the author pubkey of the note will be used.

Tiers

  • Principal users
  • Primary follows - users that are followed by principal follows
  • Secondary follows - users that are followed by primary follows
  • Tertiary follows - users that are followed by secondary follows
  • Others

Ability to enable/disable posts and rate limits can be defined for each tier.

Currently only ability to post, posts per hour and posts per day are the limitation but more will be added for example max event size, kind, tag content etc.

License

Code is under the BSD 3-Clause License

Contribution

All contributions welcome.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, shall be licensed as above, without any additional terms or conditions.

Contact

I can be contacted for comments or questions on nostr at [email protected] (npub1qjgcmlpkeyl8mdkvp4s0xls4ytcux6my606tgfx9xttut907h0zs76lgjw) or via email [email protected].

TODO:

  • async
  • DB will often have to be deleted and recreated fairly often to fix some corruption error. Seems to function okay but if database is closed cant be reopened.
  • db entries should probably be trimmed

contact-group-auth's People

Contributors

thesimplekid avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.