{"id":18302998,"url":"https://github.com/etchteam/kerbside-lookup","last_synced_at":"2025-06-30T20:36:44.424Z","repository":{"id":39710043,"uuid":"239495842","full_name":"etchteam/kerbside-lookup","owner":"etchteam","description":"The Kerbside Lookup Widget by Recycle Now","archived":false,"fork":false,"pushed_at":"2024-10-19T18:32:09.000Z","size":9586,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-15T04:25:39.781Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://recyclenow.com","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/etchteam.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":"2020-02-10T11:29:20.000Z","updated_at":"2024-10-19T18:32:11.000Z","dependencies_parsed_at":"2024-09-18T06:44:06.994Z","dependency_job_id":"bf9a172b-dea9-481b-bf0d-21d02bfbf3e0","html_url":"https://github.com/etchteam/kerbside-lookup","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/etchteam%2Fkerbside-lookup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/etchteam%2Fkerbside-lookup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/etchteam%2Fkerbside-lookup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/etchteam%2Fkerbside-lookup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/etchteam","download_url":"https://codeload.github.com/etchteam/kerbside-lookup/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248018070,"owners_count":21034048,"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-05T15:23:38.906Z","updated_at":"2025-04-09T10:13:51.599Z","avatar_url":"https://github.com/etchteam.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# The Kerbside Lookup Widget\nPowered by [RecycleNow](https://recyclenow.com)\n\n[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=etchteam_kerbside-lookup\u0026metric=alert_status)](https://sonarcloud.io/summary/new_code?id=etchteam_kerbside-lookup)\n\nContact the [RecycleNow Digital Team](mailto:digitalteam@wrap.co.uk) for API Access.\n\n## Usage\n\nInclude the script and CSS (optional) from jsdeliver:\n\n```html\n\u003clink rel=\"stylesheet\" href=\"https://cdn.jsdelivr.net/gh/etchteam/kerbside-lookup/dist/index.css\" /\u003e\n\u003cscript src=\"https://cdn.jsdelivr.net/gh/etchteam/kerbside-lookup/dist/index.min.js\" async defer\u003e\u003c/script\u003e\n```\n\nAdd the following `div` in the location you want the widget to appear:\n\n```html\n\u003cdiv id=\"wrap-klw\"\u003e\u003c/div\u003e\n```\n\n### Options\n\nYou can set the following using `data-prop` attributes on your `div` tag.\n\n* `token` - Your API token (required)\n* `materials` - An array of material IDs to restrict the widget to (optional)\n* `postcode` - A postcode to restrict the widget to (optional)\n* `locale` - `cy` or `en`. Defaults to `en`.\n* `button` - Button text. Defaults to `Submit` or `Cyflwyno` depending on the `locale` setting.\n* `placeholder` - Placeholder text. Defaults to `Enter a postcode...` or `Rhowch eich cod post...` depending on `locale` setting.\n* `apihost` - Used in development to override the api host on pre-built widget code.\n\nFor example:\n\n```html\n\u003cdiv id=\"wrap-klw\"\n  data-prop-token=\"MySuperSecureApiToken\"\n  data-prop-locale=\"cy\"\n\u003e\u003c/div\u003e\n```\n\nAlternatively, you can ue a script tag with a JSON object inside.\n\n```html\n\u003cdiv id=\"wrap-klw\"\u003e\n  \u003cscript type=\"text/props\"\u003e\n    {\n      \"token\": \"MySuperSecureApiToken\",\n      \"locale\": \"cy\"\n    }\n  \u003c/script\u003e\n\u003c/div\u003e\n```\n\n## Support\n\nFor API access, full documentation, and a list of material IDs, please contact the [RecycleNow Digital Team](mailto:digitalteam@wrap.co.uk).\n\nRaise issues on this repository for any bugs you find or feature requests that you have.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fetchteam%2Fkerbside-lookup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fetchteam%2Fkerbside-lookup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fetchteam%2Fkerbside-lookup/lists"}