{"id":19001486,"url":"https://github.com/bumi/lightning.ws-ruby","last_synced_at":"2025-10-16T04:24:33.574Z","repository":{"id":45108857,"uuid":"158875544","full_name":"bumi/lightning.ws-ruby","owner":"bumi","description":"Example ruby client for the lightning.ws webservices","archived":false,"fork":false,"pushed_at":"2023-01-20T15:21:54.000Z","size":9,"stargazers_count":2,"open_issues_count":4,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-01T18:31:33.533Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","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/bumi.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}},"created_at":"2018-11-23T20:31:39.000Z","updated_at":"2019-06-02T09:43:27.000Z","dependencies_parsed_at":"2023-02-12T03:15:42.137Z","dependency_job_id":null,"html_url":"https://github.com/bumi/lightning.ws-ruby","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bumi%2Flightning.ws-ruby","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bumi%2Flightning.ws-ruby/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bumi%2Flightning.ws-ruby/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bumi%2Flightning.ws-ruby/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bumi","download_url":"https://codeload.github.com/bumi/lightning.ws-ruby/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240020571,"owners_count":19735217,"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-11-08T18:11:22.219Z","updated_at":"2025-10-16T04:24:28.526Z","avatar_url":"https://github.com/bumi.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ruby client for lightning.ws services\n\nThis is an example of a ruby client for webservices provided by [lightning.ws](lightning.ws)\n\nIt uses the [lightning faraday middleware](https://github.com/bumi/faraday_ln_paywall/) to handle the lightning payments.\n\n## Usage\n\nSee use.rb example. \n\nyou can run the example by: \n\n    $ bundle install # install dependencies\n    $ ruby use.rb\n\nTo configure your lightning node set environment variables:\n\n    $ MACAROON_PATH=/path/admin.macaroon CREDENTIALS_PATH=/path/tls.cert ADDRESS=host:port ruby use.rb\n\n```ruby\nrequire \"./lightning_ws\"\n\nclient = LightningWs.new({\n  max_amount: 1000,\n  macaroon_path: ENV['MACAROON_PATH'],\n  credentials_path: ENV['CREDENTIALS_PATH'],\n  address: ENV['ADDRESS']\n})\n\nputs client.translate(\"hallo welt\")\nputs client.ocr(\"https://upload.wikimedia.org/wikipedia/commons/thumb/e/ee/Blocksatz-Beispiel_deutsch%2C_German_text_sample_with_fully_justified_text.svg/1500px-Blocksatz-Beispiel_deutsch%2C_German_text_sample_with_fully_justified_text.svg.png\")\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbumi%2Flightning.ws-ruby","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbumi%2Flightning.ws-ruby","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbumi%2Flightning.ws-ruby/lists"}