{"id":23109215,"url":"https://github.com/bpanel-org/price","last_synced_at":"2025-04-03T23:15:29.885Z","repository":{"id":104866295,"uuid":"160084704","full_name":"bpanel-org/price","owner":"bpanel-org","description":"A middleware plugin for bPanel that fetches crypto/fiat exchange rates","archived":false,"fork":false,"pushed_at":"2019-01-23T19:53:44.000Z","size":161,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-17T20:54:14.700Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bpanel-org.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-12-02T19:33:41.000Z","updated_at":"2019-01-23T19:53:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"faf1caae-060e-4f1c-8c29-d6a528e17fc7","html_url":"https://github.com/bpanel-org/price","commit_stats":{"total_commits":37,"total_committers":2,"mean_commits":18.5,"dds":0.08108108108108103,"last_synced_commit":"6cc3c582c57989084761ecd3a9921ac9c83a34b1"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bpanel-org%2Fprice","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bpanel-org%2Fprice/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bpanel-org%2Fprice/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bpanel-org%2Fprice/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bpanel-org","download_url":"https://codeload.github.com/bpanel-org/price/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247092392,"owners_count":20882218,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-17T01:34:28.119Z","updated_at":"2025-04-03T23:15:29.868Z","avatar_url":"https://github.com/bpanel-org.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Price\n\nThis plugin runs entirely in middleware and has no views.\n\nIt listens for the following actions:\n\n```\nUPDATE_PRICE\nUPDATE_FIAT\nUPDATE_CRYPTO\nUPDATE_FEED\nUPDATE_AVAIL_FIATS\nREFRESH_PRICE\nSET_CURRENT_CLIENT\n```\n\n...and maintains price data in the application state like this:\n\n```\nstate.plugins.price = {\n  price: \"137.53000000\"\n  fiat: \"GBP\"\n  fiatSymbol: \"£\"\n  crypto: \"BCH\"\n  feed: \"Coinbase\"\n}\n```\n\nAdditional APIs can be added in `lib/feeds.js`, template and details are in the comments.\n\nPrice data can be displayed and modified from other plugins, such as the simple footer widget [price-widget](https://github.com/bpanel-org/price-widget). On its own, this plugin will ONLY fetch the price on application load, and whenever `STATE_REFRESHED` is dispatched. Otherwise it requires an additional plugin (like the footer widget) to dispatch `REFRESH_PRICE`.\n\n**Important:** This plug in currently requires the bPanel backend plugin `@bpanel/curl` to be installed separately by the user:\n\nUsing [bpanel-cli](https://github.com/bpanel-org/bpanel-cli)\n\n```bash\n$ bpanel-cli i @bpanel/curl\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbpanel-org%2Fprice","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbpanel-org%2Fprice","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbpanel-org%2Fprice/lists"}