Code Monkey home page Code Monkey logo

gossip's People

Contributors

acarlton avatar badonyx avatar bogdanolar avatar bu5hm4nn avatar cryptoquick avatar dtonon avatar ezicheq avatar fiatjaf avatar jamesob avatar jeremyd avatar jnmclarty avatar mikedilger avatar nate-levin avatar nbenaglia avatar ok300 avatar optout21 avatar randymcmillan avatar sgvictorino avatar splix avatar striezel avatar taivlam avatar thesimplekid avatar tonygiorgio avatar ulrichard avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gossip's Issues

wait on minion's signal

We should wait for a new minion to signal the bus before we message it.
Otherwise that message may never reach them (if they didn't clone a receiver yet).

private key management

Never display it (but possibly PKCS export it later on)

Add Drop traits to always zero out the memory.

Store it in the database encrypted with a PIN number that they enter to use it.

Add Drop traits on the PIN number too.

ready and render signals

'ready' is a command the front end should call to the backend. The backend should not send javascript events until it is ready, it should queue them.

'render' is a flag in pinia which a rust message will turn on. It should stay off until rust has uploaded all of its changes. It disables taking any action on pinia changes that are subscribed to... but it itself is subscribed to and when it goes on the actions then occur.

These should improve performance and responsiveness.

Startup events

  1. Read from database
  2. Then read from relays until EOSE or a timeout
  3. Then filter, sort, and translate into Posts (front-end data)
  4. Then send to front end in a single event

This process can be repeated if the user changes their filter/sort parameters.

Not sure about subsequent events. Right now we can just forward them through, but we might want to redo all of that, compute a diff, and send over the diff (just an idea still).

On startup, get missing user data

On startup, fetch missing user data:

Query relays for type-0 metadata with no 'since' date, and pick the latest metadata to fill in their data.

Switch to async or connection pool for sqlite

possibly r2d2-sqlite or tokio-sqlite

Or somehow figure out if we can have many readers at once (I know it's only 1 writer, but can you have that writer going while readers are also going?)

dismiss without predjudice

Hide a post. This doesn't delete the post, nothing gets saved. If you restart it comes back.

Might need to signal the backend since the backend aggregates.

Minions

nostr/mod and webscoket handler shuld be combined into a Minion.

Make the minion build the filters. Overlord can use RelayPicker and send it the relay and keys.

Fix DateAgo

Initially the values are really wrong.

Even sub-minute seconds are not ticking over.

Create a second last_fetched

turn last_fetched into last_fetched_feed (which looks back at most one feed_chunk, even the very first time)

create a last_fetched_other (which looks all the way back the first time).

Follow secretly

Option to follow people without publishing that into your follow list.

Option to auto-secretly-follow all new people encountered.

Keep date range for person_relay

When we follow someone, we don't get their entire history. But people will want to 'load more' at which point we should query an older date range.

DateAgo seems broken

Sometimes the feed loads with dateago values that are way off, and tabbing out and back fixes them.

relay rank data

The dates are unused.

But we should count how many times a minion serving a relay died, versus how many times we have used that relay.

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.