joincolony / pinion Goto Github PK
View Code? Open in Web Editor NEW๐Pin orbit-db stores and ipfs hashes
License: MIT License
๐Pin orbit-db stores and ipfs hashes
License: MIT License
Currently, we have seeing this warning on the console: "WARNING! Head hash didn't match the contents
. We need to investigate and fix that
Perhaps a wild question, but I'm definitely curious!
Add request validation, timeout, caching wherever is necessary to make sure the service doesn't crash
After opening a store, we wanna make sure we close them after a period of time so we make sure we don't have an open store we are not using.
We should debounce the store close call using two timeout levels, one for the store being opened and one more for the last message received. So if a store is opened, we will close it after some X time except if a message is received for that store then we extend that timeout a little bit longer
As a user, I wanna be able to pin IPFS content by posting a hash of it
The service should be able to validate and discard invalid requests so it doesn't crash
Currently, we are using a permissive access controller, we might wanna revisit that in the future
3rd party providers:
As a user, I wanna know when pinion is done pinning an orbit-db store
As a user, I wanna know if pinion got my request
Node 12.10.0
Error: Cannot find module 'multicodec/src/name-table'
Require stack:
- /home/mark/.nvm/versions/node/v12.10.0/lib/node_modules/@colony/pinion/node_modules/ipfs-bitswap/src/types/message/index.js
- /home/mark/.nvm/versions/node/v12.10.0/lib/node_modules/@colony/pinion/node_modules/ipfs-bitswap/src/want-manager/index.js
- /home/mark/.nvm/versions/node/v12.10.0/lib/node_modules/@colony/pinion/node_modules/ipfs-bitswap/src/index.js
- /home/mark/.nvm/versions/node/v12.10.0/lib/node_modules/@colony/pinion/node_modules/ipfs/src/core/components/start.js
- /home/mark/.nvm/versions/node/v12.10.0/lib/node_modules/@colony/pinion/node_modules/ipfs/src/core/components/index.js
- /home/mark/.nvm/versions/node/v12.10.0/lib/node_modules/@colony/pinion/node_modules/ipfs/src/core/index.js
- /home/mark/.nvm/versions/node/v12.10.0/lib/node_modules/@colony/pinion/lib/IPFSNode.js
- /home/mark/.nvm/versions/node/v12.10.0/lib/node_modules/@colony/pinion/lib/Pinion.js
- /home/mark/.nvm/versions/node/v12.10.0/lib/node_modules/@colony/pinion/lib/index.js
- /home/mark/.nvm/versions/node/v12.10.0/lib/node_modules/@colony/pinion/bin/index.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:772:15)
at Function.Module._load (internal/modules/cjs/loader.js:677:27)
at Module.require (internal/modules/cjs/loader.js:830:19)
at require (internal/modules/cjs/helpers.js:68:18)
at Object.<anonymous> (/home/mark/.nvm/versions/node/v12.10.0/lib/node_modules/@colony/pinion/node_modules/ipfs-bitswap/src/types/message/index.js:10:19)
at Module._compile (internal/modules/cjs/loader.js:936:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:947:10)
at Module.load (internal/modules/cjs/loader.js:790:32)
at Function.Module._load (internal/modules/cjs/loader.js:703:12)
at Module.require (internal/modules/cjs/loader.js:830:19) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/home/mark/.nvm/versions/node/v12.10.0/lib/node_modules/@colony/pinion/node_modules/ipfs-bitswap/src/types/message/index.js',
'/home/mark/.nvm/versions/node/v12.10.0/lib/node_modules/@colony/pinion/node_modules/ipfs-bitswap/src/want-manager/index.js',
'/home/mark/.nvm/versions/node/v12.10.0/lib/node_modules/@colony/pinion/node_modules/ipfs-bitswap/src/index.js',
'/home/mark/.nvm/versions/node/v12.10.0/lib/node_modules/@colony/pinion/node_modules/ipfs/src/core/components/start.js',
'/home/mark/.nvm/versions/node/v12.10.0/lib/node_modules/@colony/pinion/node_modules/ipfs/src/core/components/index.js',
'/home/mark/.nvm/versions/node/v12.10.0/lib/node_modules/@colony/pinion/node_modules/ipfs/src/core/index.js',
'/home/mark/.nvm/versions/node/v12.10.0/lib/node_modules/@colony/pinion/lib/IPFSNode.js',
'/home/mark/.nvm/versions/node/v12.10.0/lib/node_modules/@colony/pinion/lib/Pinion.js',
'/home/mark/.nvm/versions/node/v12.10.0/lib/node_modules/@colony/pinion/lib/index.js',
'/home/mark/.nvm/versions/node/v12.10.0/lib/node_modules/@colony/pinion/bin/index.js'
]
}
The number of open stores should be limited to a fixed amount so we can control how many stores we are currently listening to
It doesn't look like there's much that prevents us from open sourcing this (actually I can't come up with anything, really). @thiagodelgado111 what do you think?
Edit: I think we have a logo now. So left to do:
Add an UNPIN_HASH
action or similar that calls ipfs.pin.rm(hash)
Use case:
We've been using a fork but we need to install official releases as soon as we can use them with our changes and the new ipfs-log
, opening this just to track that.
Closed #7 in favour of this one
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.