Code Monkey home page Code Monkey logo

yastr's Introduction

Yastr

So far, this project is just me playing around with wirting my own Nostr relay.

In particular, I want to try bringging some features from FeoBlog into the Nostr ecosystem.

  • Permission model more suited to creating a small community around a relay.

    • Users are denied write access by default.
    • Content is allowed for users that have been granted access to the server.
    • Content is also allowed for all the users they follow.
    • This allows collecting users' feeds into one relay instead of forcing their clients to query multiple relays. (Of course, some process needs to do this collection...)
  • The ability to store files in Nostr, not as links to HTTP downloads.

    • TODO:
    • Write a draft NIP. (How can I grab an ID while it's in progress?)
    • reuse some parts of NIP-94 (kind 1063)
    • Link to the NIP-95 doc. (& use good parts from that)
    • Basic idea is like NIP-95, but we reverse the order. First id is the metadata about a file attachment. It includes "e" references to all of the parts of the file. There can be many parts since relays often have a maximum message size. This also lets a relay optionally offer an HTTP endpoint that will serve the file to a browser.

yastr's People

Contributors

nfnitloop avatar

Watchers

 avatar

yastr's Issues

More efficient blob storage

Basically what I said here:
https://njump.me/nevent1qqsqyeau2djwn4xg3jkxeyn8fs04zg6wsduq6ve04caksj9elav2cxgzyrwyxyhydv8rsgg9692zjrzpnesx5ueqqnxhyr00rysspwg45xu6cwlzd2z

There is room for space-saving in the storage implementation. If this takes off I'd want to store the BLOBs in binary instead of Base64. And I'd probably want to dedupe whole files so that we don't end up having to store multiple copies of them if multiple people upload them. BUT, that can come later without changing the public interface.

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.