{"id":18492402,"url":"https://github.com/makevoid/faucet","last_synced_at":"2025-08-21T03:16:59.099Z","repository":{"id":77774821,"uuid":"43636129","full_name":"makevoid/faucet","owner":"makevoid","description":"Simplistic bitcoin faucet using bitcoin core json rpc api - made in 2015 - status: prototype","archived":false,"fork":false,"pushed_at":"2015-11-14T15:25:08.000Z","size":252,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-07T19:05:50.733Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/makevoid.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-10-04T12:41:09.000Z","updated_at":"2020-03-06T20:25:36.000Z","dependencies_parsed_at":"2023-03-12T01:58:55.619Z","dependency_job_id":null,"html_url":"https://github.com/makevoid/faucet","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/makevoid/faucet","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/makevoid%2Ffaucet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/makevoid%2Ffaucet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/makevoid%2Ffaucet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/makevoid%2Ffaucet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/makevoid","download_url":"https://codeload.github.com/makevoid/faucet/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/makevoid%2Ffaucet/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271420155,"owners_count":24756491,"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","status":"online","status_checked_at":"2025-08-21T02:00:08.990Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-11-06T13:07:49.228Z","updated_at":"2025-08-21T03:16:59.075Z","avatar_url":"https://github.com/makevoid.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Readme\n\nThis is an Alpha Prototype of a Bitcoin faucet\n\nUse at your own risk tm.\n\n\nYou'll probably need to fork, if your is an advanced use case, the bitcoin-client library/gem and change, add, tweak some actions, don't worry the library is minimal, it's all in the `api.rb` file\n\nThe concept is, if you are connected to a Bitcoin Core node via a Json Rpc Api you are connected in the best possible available way to the blokchain, and it should be always easy to update (you just download the latest version of bitcoin core from bitcoin.org or from github/bitcoin/bitcoin)\n\nRoda provides a nice API (Ruby) at gread speed! (It's only a thin layer over Rack, efficency of routing-trees and modularity through a good plugin system)\n\nThis time I can really say that Routing-Tree frameworks like Roda not only let your app runs faster, but because of routes like\n\n```rb\n# For APIs\n#\n# plugin :json\n# plugin :not_found\n# set response status\n# params plugin or create a shorter helper\n\n# For UIs\n#\n# plugin :render\n# set session secret\n\n# inside the route, pseudo code (no ends)\n\nr.on \":id\" do |id|\n  r.is do\n    resource = Resource.get id\n\n    r.get\n      resource\n\n    r.put\n      resource.put params\n      resource\n\n\n```\n\n----\n\nFIP (faucet improvement proposal)\n\nadd configs\n\nFaucet config\n\n# simple faucet\n#\n# Faucet.config (\n#   share: \"0.05\" 1/20th of the donations present\n# )\n\n\n# protip faucet\n#\n# Faucet.config(\n#   treshold: \"10\",\n#   share: \"0.1\" # 1/10th\n# )\n\n\n\n----\n\n### TODOs\n\n- PR to Roda to accept hashes `faucet_ui.rb` `:19`\n- move in external css `views/layout.haml` `:10`\n- :markdown `views/redistribute.haml` `:5`\n- move in external js: %script{ async: true,  } `views/register.haml` `:114`\n\n\n\n----\n\nthis way you don#'t have to use before filter\n\n\nalso if you group the specs the same way (lets and before blocks in rspec) you end up with a very flexible structure that lets you quickly but effectively spec your core requirements or to organize a more complete spec suite \u003e80% coverage\n\n\n# Old readme from\n\n# BitcoinClient usage example\nSimple example on how to start an app using bitcoin-client or similar 1:1 bitcoind api via JSON\n\n\n### Prereqs\n\nOSX/Linux\n\n- Download bitcoin core (bitcoin-qt or bitcoind) from:\n\n##### http://bitcoin.org\n\n### Bitcoin Core Configuration ( ~/.bitcoin/bitcoin.conf )\n\n```sh\nrpcuser=bitcoin\nrpcpassword=password\n\n# prevents full blockchain dl\nconnect=127.0.0.1\n\n# enables deamon in bitcoin-qt\nserver=1\n```\n\n### Running\n\n    rake\n\n\n### Infos\n\nlook at the presentation:\n\nhttp://bitbath.mkvd.net/#32 (slide 32)\n\n\nhttp://bitbath.mkvd.net (from the start)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmakevoid%2Ffaucet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmakevoid%2Ffaucet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmakevoid%2Ffaucet/lists"}