{"id":41358075,"url":"https://github.com/soub4i/react-spotifycode","last_synced_at":"2026-01-23T07:43:40.015Z","repository":{"id":57161644,"uuid":"345202733","full_name":"soub4i/react-spotifycode","owner":"soub4i","description":"React library for Spotify codes","archived":false,"fork":false,"pushed_at":"2021-03-06T23:17:03.000Z","size":213,"stargazers_count":11,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-26T21:57:17.438Z","etag":null,"topics":["codes","component","props","react","scanable","spotify"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/soub4i.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":"2021-03-06T21:51:34.000Z","updated_at":"2022-10-20T05:44:46.000Z","dependencies_parsed_at":"2022-09-09T10:11:30.321Z","dependency_job_id":null,"html_url":"https://github.com/soub4i/react-spotifycode","commit_stats":null,"previous_names":["abderrahimsoubaielidrissi/react-spotifycode"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/soub4i/react-spotifycode","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soub4i%2Freact-spotifycode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soub4i%2Freact-spotifycode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soub4i%2Freact-spotifycode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soub4i%2Freact-spotifycode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/soub4i","download_url":"https://codeload.github.com/soub4i/react-spotifycode/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soub4i%2Freact-spotifycode/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28683996,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-23T05:48:07.525Z","status":"ssl_error","status_checked_at":"2026-01-23T05:48:07.129Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["codes","component","props","react","scanable","spotify"],"created_at":"2026-01-23T07:43:39.950Z","updated_at":"2026-01-23T07:43:40.003Z","avatar_url":"https://github.com/soub4i.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @soubai/react-spotifycode\n\n\u003cp align=\"center\"\u003e\n\u003cimg alt=\"spotify:user:spotify:playlist:37i9dQZF1DXcBWIGoYBM5M\" src=\"https://scannables.scdn.co/uri/plain/jpeg/BAED54/black/640/spotify:user:spotify:playlist:37i9dQZF1DXcBWIGoYBM5M\"\u003e\n\u003c/p\u003e\n\nReact library for Spotify codes\n\n\u003eSpotify Code is a QR-like “scannable” tag that can be used to quickly share or access a piece of content within Spotify\n\n[![NPM](https://img.shields.io/npm/v/@soubai/react-spotifycode.svg)](https://www.npmjs.com/package/@soubai/react-spotifycode) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)\n\n## Install\n\n```bash\nnpm install --save @soubai/react-spotifycode\n```\n\n## Usage\n\n```tsx\nimport React, { Component } from 'react'\n\nimport SpotifyCode from '@soubai/react-spotifycode'\n\nclass Example extends Component {\n  render() {\n    return (\n      \u003cSpotifyCode code='spotify:user:spotify:playlist:37i9dQZF1DXcBWIGoYBM5M' /\u003e\n    )\n  }\n}\n```\n\n## Props\n\nThe component accept a few props:\n\n- **code**: The Spotify URI - **required**\n- **format** The image format - 'jpeg' | 'png' | 'svg' - **default** : 'jpeg'\n- **barColor**: Bar color - 'black' | 'white' - **default** : 'black'\n- **backgroundColor**: The background color - **default** : '000' - **example** : '000' or '000000' for #000 color\n- **size**: The image size on pixel - **default** : 640\n\n## Development\n\nLocal development is broken into two parts (ideally using two tabs).\n\nFirst, run rollup to watch your `src/` module and automatically recompile it into `dist/` whenever you make changes.\n\n```bash\nnpm start # runs rollup with watch flag\n```\n\nThe second part will be running the `example/` create-react-app that's linked to the local version of your module.\n\n```bash\n# (in another tab)\ncd example\nnpm start # runs create-react-app dev server\n```\n\n## License\n\nMIT © [AbderrahimSoubaiElidrissi](https://github.com/AbderrahimSoubaiElidrissi)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoub4i%2Freact-spotifycode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoub4i%2Freact-spotifycode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoub4i%2Freact-spotifycode/lists"}