{"id":13723723,"url":"https://github.com/beyonk-group/svelte-trustpilot","last_synced_at":"2026-02-28T03:10:00.631Z","repository":{"id":97338538,"uuid":"166044197","full_name":"beyonk-group/svelte-trustpilot","owner":"beyonk-group","description":"Svelte / Vanilla JS Trustpilot Widget with proper SPA support","archived":false,"fork":false,"pushed_at":"2022-07-15T16:28:08.000Z","size":24,"stargazers_count":4,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-16T11:25:38.638Z","etag":null,"topics":["beyonk","ratings","reviews","spa","svelte","trustpilot","vanillajs"],"latest_commit_sha":null,"homepage":null,"language":"Svelte","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/beyonk-group.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,"governance":null}},"created_at":"2019-01-16T13:24:01.000Z","updated_at":"2023-05-03T16:34:53.000Z","dependencies_parsed_at":"2023-07-16T17:17:04.244Z","dependency_job_id":null,"html_url":"https://github.com/beyonk-group/svelte-trustpilot","commit_stats":null,"previous_names":["beyonk-group/svelte-trustpilot","beyonk-adventures/svelte-trustpilot"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/beyonk-group/svelte-trustpilot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beyonk-group%2Fsvelte-trustpilot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beyonk-group%2Fsvelte-trustpilot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beyonk-group%2Fsvelte-trustpilot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beyonk-group%2Fsvelte-trustpilot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/beyonk-group","download_url":"https://codeload.github.com/beyonk-group/svelte-trustpilot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beyonk-group%2Fsvelte-trustpilot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273100561,"owners_count":25045697,"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-09-01T02:00:09.058Z","response_time":120,"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":["beyonk","ratings","reviews","spa","svelte","trustpilot","vanillajs"],"created_at":"2024-08-03T01:01:44.917Z","updated_at":"2026-02-28T03:09:55.609Z","avatar_url":"https://github.com/beyonk-group.png","language":"Svelte","funding_links":[],"categories":["components and libraries"],"sub_categories":["social and other 3rd party services"],"readme":"\u003ca href=\"https://beyonk.com\"\u003e\n    \u003cbr /\u003e\n    \u003cbr /\u003e\n    \u003cimg src=\"https://user-images.githubusercontent.com/218949/144224348-1b3a20d5-d68e-4a7a-b6ac-6946f19f4a86.png\" width=\"198\" /\u003e\n    \u003cbr /\u003e\n    \u003cbr /\u003e\n\u003c/a\u003e\n\n## Svelte Trustpilot\n\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](http://standardjs.com) [![CircleCI](https://circleci.com/gh/beyonk-adventures/svelte-trustpilot.svg?style=shield)](https://circleci.com/gh/beyonk-adventures/svelte-trustpilot) [![svelte-v2](https://img.shields.io/badge/svelte-v2-orange.svg)](https://v2.svelte.dev) [![svelte-v3](https://img.shields.io/badge/svelte-v3-blueviolet.svg)](https://svelte.dev)\n\nPure vanilla JS Trustpilot integration\n\n![trustpilot](https://user-images.githubusercontent.com/218949/51251849-2ea51080-1992-11e9-8683-d46ea7aa8bf6.png)\n\n## Install\n\n```bash\n$ npm install --save-dev @beyonk/svelte-trustpilot\n```\n\n## Usage (With Svelte)\n\n```html\n\u003cTrustpilot businessUnit=\"12345\" domain=\"www.example.com\"  /\u003e\n\n\u003cscript\u003e\n  import Trustpilot from '@beyonk/svelte-trustpilot'\n\u003c/script\u003e\n```\n\nThe attributes you pass to the Trusilot component are listed below, but you need `domain` and `businessUnit` at a minimum.\n\n## Usage (Vanilla JS)\n\n```html\n\u003cdiv id=\"trustpilot-wrapper\"\u003e\u003c/div\u003e\n\n\u003cscript\u003e\n  import Trustpilot from '@beyonk/svelte-trustpilot'\n\n\tconst trustpilot = new Trustpilot({\n\t\ttarget: document.querySelector('#trustpilot-wrapper'),\n\t\tdata: {\n\t\t\tbusinessUnit: '12345',\n\t\t\tdomain: 'www.example.com'\n\t\t}\n\t})\n\u003c/script\u003e\n```\n\n## Other configuration attributes\n\nThere are a number of configuration attributes you can pass, but all are optional.\n\nList of possible options in the module:\n\n| Option            | Default      | Required | Description                                                                                                                           |\n|-------------------|--------------|----------|---------------------------------------------------------------------------------------------------------------------------------------|\n| widget (1)        | micro-star   | false    | Widget type as per [https://businessapp.b2b.trustpilot.com/?locale=en-US#/integrations/trustbox/library](Trustpilot Trustbox library) |\n| domain            | -            | true     | Sets the domain/product name on Trustpilot (for the link when a user clicks your widget)                                              |\n| businessUnit      | -            | true     | Sets `data-businessunit-id` as per docs                                                                                               |\n| width             | 100%         | false    | Sets `data-style-width` as per docs                                                                                                   |\n| height            | 500px        | false    | Sets `data-style-height` as per docs                                                                                                  |\n| theme             | dark         | false    | Sets `data-theme` as per Trustpilot docs                                                                                              |\n| lib               | package-name | false    | Unique id to determine if component is loaded. You probably don't need to change this.                                                |\n| version           | v5           | false    | Trustpilot SDK version (best not to change)                                                                                           |\n| * (2)             | -            | false    | Pass any other parameter you want here. See below.                                                                                    |\n\n1) You can pass any widget template name in its hyphenated form, or, just pass the template id here instead. You can get the template id from the trustpilot integration url:\n\n`https://businessapp.b2b.trustpilot.com/?locale=en-US#/integrations/trustbox/configuration/\u003cwidget-id-is-here\u003e`\n\n2) You can pass any `data-` attribute you normally pass to Trustpilot's widgets. These will be passed verbatim to the underlying widget HTML.\n\n## License\n\n[MIT License](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeyonk-group%2Fsvelte-trustpilot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbeyonk-group%2Fsvelte-trustpilot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeyonk-group%2Fsvelte-trustpilot/lists"}