GithubHelp home page GithubHelp logo

Comments (8)

jbenet avatar jbenet commented on May 30, 2024

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.

dignifiedquire avatar dignifiedquire commented on May 30, 2024

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.

jbenet avatar jbenet commented on May 30, 2024

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.

jbenet avatar jbenet commented on May 30, 2024

@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.

daviddias avatar daviddias commented on May 30, 2024

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.

whyrusleeping avatar whyrusleeping commented on May 30, 2024

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.

daviddias avatar daviddias commented on May 30, 2024

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.

jbenet avatar jbenet commented on May 30, 2024

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)

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.