Comments (8)
For "Local storage size" and "Object count" we could add an ipfs repo stat
command to go-ipfs.
For "Location" -- can use the local node's addresses, and geocode them the same way the peers are.
from js-ipfsd-ctl.
I've pulled https://github.com/Dignifiedquire/electron-app/blob/settings-hot/app/helpers.js from the webui into the electron-app. So the question is where to best have this code to avoid this duplication, maybe it makes sense to have it in here, or just as a format function of https://github.com/krl/ipfs-geoip. Thoughts?
from js-ipfsd-ctl.
yeah probably makes sense to put in geoip.
also -- https://github.com/Dignifiedquire/electron-app/blob/settings-hot/app/helpers.js#L1 is that ES6? or what? are we compiling into regular js for now, or what's the goal?
from js-ipfsd-ctl.
@krl would you mind moving ipfs-geoip into ipfs/
org? or do you want to keep maintaining it? either way is fine but we probably will need to fork it to ipfs org to ensure it survives and gets long term maintained, etc
from js-ipfsd-ctl.
Seems that Location is done https://github.com/ipfs/ipfs-geoip , ^5 to @dignifiedquire
For the other two, @whyrusleeping what you think of adding those as CLI commands and exposing them through the http API as well?
from js-ipfsd-ctl.
local storage size is implemented in a PR by @rht (ipfs/kubo#1495) but i dont think its exposed via command line quite yet.
object count can be retrieved naively by piping ipfs refs local
to wc
. And any command we write for getting that number will do the same under the hood.
from js-ipfsd-ctl.
object count can be retrieved naively by piping ipfs refs local to wc. And any command we write for getting that number will do the same under the hood.
Sounds good, we can use the node-ipfs-api to fetch that info :) //cc @dignifiedquire
from js-ipfsd-ctl.
object count can be retrieved naively by piping ipfs refs local to wc. And any command we write for getting that number will do the same under the hood.
counting internal to the node would avoid piping a ton of data out.
wonder if we should keep these counts in a repo object somewhere, cached and recomputed every once in a while.
from js-ipfsd-ctl.
Related Issues (20)
- IPFS_PATH is no longer used after 1.x
- initialized not set after spawning HOT 3
- aegir being used as regular dependency
- HTTPError: Bad Request when spawning go daemon inside electron process HOT 3
- webpack_require(...).path is not a function HOT 2
- AlreadyInitializedError: cannot re-initialize an initialized node HOT 3
- api.files.mv API can't terminate? HOT 2
- interface-ipfs-core with patched ipfsd-ctl 3.0.0 leaves a lot of PIPEWRAP behind HOT 6
- NULL API fatal error HOT 3
- Debug stdout proc daemon HOT 1
- Electron + electron-builder windows asar HOT 3
- The line const Ctl = require('ipfsd-ctl'); causes : "Your browser does not have secure random generator HOT 1
- Error: 404 on all server endpoints HOT 2
- Non-disposable node not working if repo exists HOT 4
- Need to trap JSON.parse and emit more informative error on parse failure HOT 1
- Proper error propagation HOT 3
- doesn't properly work in Electron HOT 2
- What are the steps for running multiple instances? HOT 1
- how to provide a custom libp2p instance? HOT 6
- test-chrome and test-firefox failing on master HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from js-ipfsd-ctl.