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

Remove dependency on patchcore (for browser compatibility) #88

Open
Happy0 opened this issue Jun 1, 2021 · 0 comments
Open

Remove dependency on patchcore (for browser compatibility) #88

Happy0 opened this issue Jun 1, 2021 · 0 comments

Comments

@Happy0
Copy link
Owner

Happy0 commented Jun 1, 2021

If we want to get ssb-chess into the browser eventually, we should get rid of the patchcore dependency which I think is only used to wrap the call through to ssb-backlinks at the moment.

Patchcore brings in dependencies which assume a nodejs environment (such as ssb-client, secret-handshake, etc.)

A good way to do this might be to 'abstract' the things we expect / need from the ssb-client sbot object that is passed as a parameter to this module into functions that can be implemented in different ways depending on what environment it is in rather than requiring ssb-client itself.

E.g. expect an object that has the following functions:

backlinks,
messagesByType,
publish,
get,
// Social graph functions to find friends / followees
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant