{"id":18975021,"url":"https://github.com/bufferapp/sharejs","last_synced_at":"2025-04-19T16:44:30.659Z","repository":{"id":13669757,"uuid":"16363420","full_name":"bufferapp/sharejs","owner":"bufferapp","description":"Trigger the Buffer Share popup from any DOM element","archived":false,"fork":false,"pushed_at":"2014-02-17T15:59:33.000Z","size":290,"stargazers_count":14,"open_issues_count":1,"forks_count":6,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-03-29T10:23:50.350Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bufferapp.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}},"created_at":"2014-01-29T23:53:38.000Z","updated_at":"2023-06-27T14:05:09.000Z","dependencies_parsed_at":"2022-09-23T14:00:58.072Z","dependency_job_id":null,"html_url":"https://github.com/bufferapp/sharejs","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bufferapp%2Fsharejs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bufferapp%2Fsharejs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bufferapp%2Fsharejs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bufferapp%2Fsharejs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bufferapp","download_url":"https://codeload.github.com/bufferapp/sharejs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249223965,"owners_count":21232843,"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-08T15:17:04.379Z","updated_at":"2025-04-16T09:34:27.558Z","avatar_url":"https://github.com/bufferapp.png","language":"JavaScript","readme":"Share.js (0.0.3)\n=======\n\nTrigger the Buffer Share Popup from any specified DOM element\n\n\nShare.js is a super minimal and easy plug in to make any DOM element trigger a Buffer share.  It loads asynchronously to your page and doesn't add any overhead. Share.JS is still early in development, so please be sure to send any issues over to Sunil \u003csunil@bufferapp.com\u003e. \n\n##How to use Share.js\n1. Include this script in your header\n    ```\n\u003cscript src='https://d389zggrogs7qo.cloudfront.net/js/sharejs/0.0.3/share.min.js'\u003e\u003c/script\u003e\n    ```\n2. Add an anchor tag with attribute `data-buffer-share` and parameters\n\n    ###Example:\n\n    ```\n    \u003ca data-buffer-share\n    data-url='http://blog.bufferapp.com' \n    data-text=\"The Buffer Blog!\" \n    data-preferred-login=\"twitter\" \n    data-partner-source='feedly' \n    data-partner-placement='mini' \n    data-via='sunils34'\u003eShare to Buffer\u003c/a\u003e\n    ```\n\n##Optional Parameters:\n\n- **data-url**: URL to share.  If not specified, the url will be the current page\n- **data-text**: Text to share. \n- **data-preferred-login**: \u003ctwitter, linkedin, facebook\u003e Preferred service to share to or login from\n- **data-via**: Via (twitter screen_name)\n- **data-partner-source**: Partner name.  \n- **data-partner-placement**: Partner specified identifier (ie. mini)\n\n####Native Retweets\nShare.js supports creating Native Retweets.  You'll need to supply four params if you'd like to use this. \n- **data-retweeted-tweet-id**: Numeric Twitter ID of the status.  You can find this on the twitter url of a status\n- **data-retweeted-user-id**: The twitter user id who created the status\n- **data-retweeted-user-name**: The user screen name of the twitter user who created the status\n- **data-retweeted-user-display-name**: The display name of the twitter user who created this status\n\n\n##Creating Buffer Share DOM Elements with Javascript\nNo worries ;-), Buffer will be automatically attached to elements created with javascript after window.onload is called.\n\n#Development\nBuffer Share.js is open source.  While maintained by Buffer, we welcome any improvements you have!  Here's how you can get started contributing. \n\n##Building\n1. Install grunt.js\n\n```\n$ sudo npm install -g grunt-cli\n$ npm install\n```\n\n2. Run grunt after you're satisfied with your changes. \n```\n$ grunt\n```\n\n##Contributing\nWhen you've made your changes, feel free to submit pull requests.  When/if merged, we'll be sure to update the Share.JS version and upload it onto the Buffer CDN. \n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbufferapp%2Fsharejs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbufferapp%2Fsharejs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbufferapp%2Fsharejs/lists"}