{"id":16357946,"url":"https://github.com/tstreamdoth/react-dp","last_synced_at":"2025-12-16T14:30:43.026Z","repository":{"id":93123629,"uuid":"265859839","full_name":"tstreamDOTh/react-dp","owner":"tstreamDOTh","description":null,"archived":false,"fork":false,"pushed_at":"2020-05-23T09:14:24.000Z","size":163,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-29T09:43:05.495Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/tstreamDOTh.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-05-21T13:46:50.000Z","updated_at":"2023-03-21T17:13:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"fc9185ce-c5e7-43bf-8d7f-6eca1f7460dc","html_url":"https://github.com/tstreamDOTh/react-dp","commit_stats":{"total_commits":6,"total_committers":1,"mean_commits":6.0,"dds":0.0,"last_synced_commit":"8f41186209efb911e177027024597cf4dedbad1e"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tstreamDOTh%2Freact-dp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tstreamDOTh%2Freact-dp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tstreamDOTh%2Freact-dp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tstreamDOTh%2Freact-dp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tstreamDOTh","download_url":"https://codeload.github.com/tstreamDOTh/react-dp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239686784,"owners_count":19680596,"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-10-11T02:04:31.160Z","updated_at":"2025-12-16T14:30:37.705Z","avatar_url":"https://github.com/tstreamDOTh.png","language":"JavaScript","readme":"# react-dp\n\n\u003ca href=\"https://www.npmjs.com/package/react-dp\"\u003e\u003cimg alt=\"npm version\" src=\"https://badge.fury.io/js/react-dp.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://npmjs.org/package/react-dp\"\u003e\u003cimg alt=\"Downloads\" src=\"http://img.shields.io/npm/dm/react-dp.svg\"\u003e\u003c/a\u003e\n\nTwitter like profile picture component \u0026 add custom overlay.\n📸Export as base64 image using a clear user interface.\n\n# Install\n\nJust use yarn or npm to add it to your project:\n\n```\nyarn add react-dp\n```\n\nrespective\n\n```\nnpm install --save react-dp\n```\n\n# Usage\n\n```javascript\nimport React, { useRef } from 'react';\nimport DisplayPicEditor from 'react-dp';\n\nclass MyEditor extends React.Component {\n  render() {\n    return (\n      \u003cDisplayPicEditor\n        src='https://media.kubric.io/api/assetlib/83e20ab9-43ff-4a96-afd1-94f26f1b77f1.png'\n        overlay='https://media.kubric.io/api/assetlib/a80605c8-d308-4b59-9c13-15a9ad1952ac.png'\n        size={400}\n        backgroundColor='#888'\n      /\u003e\n        \u003cbutton\n          onClick={() =\u003e {\n            dpEditor.current.saveAsImage();\n          }}\u003e\n          Save Image\n        \u003c/button\u003e˝\n    );\n  }\n}\n\nexport default MyEditor;\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftstreamdoth%2Freact-dp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftstreamdoth%2Freact-dp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftstreamdoth%2Freact-dp/lists"}