--- agent: instructions: "Use this search API to find relevant content across this site with keywords or natural-language queries, instead of crawling individual pages. Results are returned in Markdown." endpoint: "https://martech.zone/.well-known/search?q={query}" method: "GET" documentation: "https://developers.cloudflare.com/ai-search/how-to/search-for-agents/" description: Adding social sharing can often be tedious for developers and website owners, and open-source goodshare.js simplifies buttons for a website or application. title: "goodshare.js: Simplify Your Social Sharing in Web Applications With This Lightweight JavaScript Library | Martech Zone" image: https://martech.zone/wp-content/uploads/2024/09/goodshare-javascript-social-share-library.webp --- ![Goodshare.js: Javascript Social Sharing Button Library](https://martech.zone/wp-content/uploads/2024/09/goodshare-javascript-social-share-library-420x236.webp "goodshare.js: Simplify Your Social Sharing in Web Applications With This Lightweight JavaScript Library 1") In the age of social media, sharing content across various platforms has become an integral part of user engagement. However, implementing social sharing functionality can often be tedious for developers and website owners. Enter goodshare.js, an open-source JavaScript library that simplifies adding social sharing buttons to your website or application. ## What is goodshare.js? goodshare.js is a lightweight, modern JavaScript solution that allows users to share links from your website to social networks and mobile messengers. Designed with simplicity, it’s incredibly easy to install and configure, making it an excellent choice for developers of all skill levels. The library’s performance-focused approach ensures that it loads quickly and has minimal impact on your site’s speed, weighing in at just 1.04 KB when minified and gzipped. goodshare.js stands out for its flexibility, supporting a wide range of sharing options across various social platforms and messaging apps, which can be easily customized to match your site’s design. Unlike many social sharing solutions, goodshare.js prioritizes user privacy by avoiding the inclusion of user tracking scripts. The library benefits from active development, with regular updates and maintenance ensuring its continued reliability and compatibility with the latest web standards. Whether building a personal blog or a large-scale web application, goodshare.js provides a powerful, efficient, and user-friendly solution for implementing social sharing functionality. ## Key Features and Benefits ### 1. Ease of Use One of the standout features of goodshare.js is its simplicity. You can integrate various social sharing options into your website with minimal setup. The library uses data attributes in your [HTML](https://martech.zone/acronym/html/), allowing you to specify sharing options without complex JavaScript configurations. ### 2. Extensive Provider Support goodshare.js supports an impressive range of social networks and messaging platforms, including: - **Popular social networks:** Facebook, Twitter, LinkedIn, Pinterest - **Regional networks:** VKontakte, Odnoklassniki, Weibo - **Messaging apps:** WhatsApp, Telegram, Viber, Skype - **Blogging platforms:** Tumblr, WordPress, Blogger This wide support ensures your content can be shared across various platforms, catering to a global audience. ### 3. Customization Options The library offers flexibility in customization. You can easily style the sharing buttons to match your website’s design. Moreover, you can specify custom URLs, titles, and images for each sharing option, giving you control over how your content appears. ### 4. Performance-Focused goodshare.js is built with performance in mind: - **Small Bundle Size**: At just 1.04 KB (minified and gzipped), it minimizes your site’s load time. - **No External Dependencies**: The library works standalone, reducing [HTTP](https://martech.zone/acronym/http-1/) requests and potential points of failure. - **Clean Code**: It doesn’t include scripts for tracking user activity, ensuring faster performance, and respecting user privacy. ### 5. SEO-Friendly Unlike some social sharing solutions that rely heavily on JavaScript, goodshare.js’s HTML data attributes make it more [SEO](https://martech.zone/acronym/seo/)-friendly. Search engines can easily crawl and understand the sharing options on your page. ### 6. Counter Support For certain social networks, goodshare.js can display share counts, providing social proof that can encourage further sharing. ## How to Use goodshare.js Implementation is straightforward: 1. Include the `goodshare.js` script in your HTML. 2. Add data attributes to your HTML elements to specify sharing options. For example: ``` Share on Facebook Share on Twitter ``` ### HTML Attributes goodshare.js uses additional HTML data attributes to configure sharing options. Here are the attributes you can include in your HTML: - `data-social`: Specifies the social network or sharing method (required) ``` data-social="facebook" ``` - `data-url`: Sets a custom [URL](https://martech.zone/acronym/url/) to share (optional) ``` data-url="https://example.com/custom-page" ``` - `data-title`: Sets a custom title for the shared content (optional) ``` data-title="Check out this awesome article!" ``` - `data-image`: Sets a custom image URL for the shared content (optional) ``` data-image="https://example.com/image.jpg" ``` - `data-description`: Sets a custom description for the shared content (optional) ``` data-description="This article explains goodshare.js in detail." ``` - `data-counter`: Used to display the share count (for supported networks) ``` ``` Here’s an example of how these attributes can be used together: ``` Share on Facebook ``` Not all social networks support all attributes; some may have specific requirements or limitations. Always refer to the latest documentation for the most up-to-date information on attribute support for each sharing option. Don't miss an article! This is a weekly newsletter. Signing up uses double opt-in — check your inbox to confirm. Once you confirm, you can select the topics you are interested in from the [email preferences](https://martech.zone/email-preferences/) link in that message. Email address Subscribe Leave blank [goodshare.js](https://refer.martech.zone/goodshare-js/) offers a robust, efficient, and user-friendly solution for implementing social sharing in web applications. Its ease of use, extensive customization options, and performance focus make it an excellent choice for developers looking to enhance their websites with social sharing capabilities. Whether building a small personal blog or a large-scale web application, goodshare.js provides the tools you need to integrate social sharing into your project seamlessly. [Download Goodshare.js](https://refer.martech.zone/goodshare-js/) [Donate to the Author](https://paypal.me/koddr) ### Related Articles [![Isometric shopping cart of product boxes, a store shelf, a falling bar chart, and a glowing AI orb on a dark slab](<> "The State of the Consumer Goods Industry: A Strategic Outlook for Retailers and D2C Marketers 2")](https://martech.zone/state-of-the-cpg-industry/) ### [The State of the Consumer Goods Industry: A Strategic Outlook for Retailers and D2C Marketers](https://martech.zone/state-of-the-cpg-industry/) Dec 5, 2026 [![Isometric smartphone showing an abstract search bar and AI answer card, with a teal map pin, capsule microphone, and shopping bag on a dark slab](<> "The Expanding State of Mobile Search: Voice, AI Overviews, and Shopping 3")](https://martech.zone/mobile-search/) ### [The Expanding State of Mobile Search: Voice, AI Overviews, and Shopping](https://martech.zone/mobile-search/) Dec 5, 2026 [![Isometric megaphone, smartphone social feed, rising teal bar chart, and verification badge on a dark slab, with the X logo](<> "X Statistics: Users, Advertising, and How Marketers Use the Platform 4")](https://martech.zone/x-statistics/) ### [X Statistics: Users, Advertising, and How Marketers Use the Platform](https://martech.zone/x-statistics/) Dec 5, 2026 [![The Answer Economy by Pete Blackshaw with a navy hardcover lying flat on a desk beside a bright window](<> "The Answer Economy: Pete Blackshaw's Playbook for Earning AI Recommendations 5")](https://martech.zone/the-answer-economy-pete-blackshaw/) ### [The Answer Economy: Pete Blackshaw’s Playbook for Earning AI Recommendations](https://martech.zone/the-answer-economy-pete-blackshaw/) Dec 5, 2026 Martech Zone Close - [![An ad tile with a play button and star ribbon, a mine cart of gems on rails, a creative-brief clipboard, and a pickaxe on rock, on a dark glossy slab.](<> "Foreplay: How Creative Teams Mine Winning Ads and Turn Them Into Briefs 6")](https://martech.zone/foreplay-winning-ad-research-creative-briefs/) [Foreplay: How Creative Teams Mine Winning Ads and Turn Them Into Briefs](https://martech.zone/foreplay-winning-ad-research-creative-briefs/)Nov 14, 2026 - [![An AI CMO robot in a teal necktie pointing at a timeline plan easel with an amber flag, two team figurines, and a megaphone, on a dark glossy slab.](<> "Okara: What an AI CMO Actually Does for a Small Marketing Team 7")](https://martech.zone/okara-ai-cmo-small-marketing-team/) [Okara: What an AI CMO Actually Does for a Small Marketing Team](https://martech.zone/okara-ai-cmo-small-marketing-team/)Nov 14, 2026 - [![Isometric platform with a group of people, a social dashboard with charts, a phone feed, and a megaphone.](<> "Social Media Statistics for 2025: Platforms, Advertising, Demographics, and User Interaction 8")](https://martech.zone/social-media-statistics/) [Social Media Statistics for 2025: Platforms, Advertising, Demographics, and User Interaction](https://martech.zone/social-media-statistics/)Apr 14, 2025 - [![Isometric stone slab with a phone showing an ad, campaign icons, a robot arm, a coin, and a trophy, plus the Crush logo.](<> "Crush AI: Your AI Media Buyer for Facebook and Instagram Ads 9")](https://martech.zone/crush-ai-media-buyer-facebook-ads/) [Crush AI: Your AI Media Buyer for Facebook and Instagram Ads](https://martech.zone/crush-ai-media-buyer-facebook-ads/)Nov 3, 2026 ![Goodshare.js: Javascript Social Sharing Button Library](https://martech.zone/wp-content/uploads/2024/09/goodshare-javascript-social-share-library-420x236.webp "goodshare.js: Simplify Your Social Sharing in Web Applications With This Lightweight JavaScript Library 10") About the Author [![Photo of Douglas Karr]()](https://martech.zone/author/douglaskarr/) ### [Douglas Karr](https://martech.zone/author/douglaskarr/) Douglas Karr is a fractional Chief Marketing Officer specializing in SaaS and AI companies, where he helps scale marketing operations, drive demand generation, and implement AI-powered strategies. He is the founder and publisher of Martech Zone, a leading publication in… [More »](https://martech.zone/author/douglaskarr/) - [Website](https://martech.zone/partner/dknewmedia/) - [Facebook](https://www.facebook.com/douglaskarr) - [X](https://twitter.com/dknewmedia) - [LinkedIn](http://www.linkedin.com/in/douglaskarr/) - [YouTube](https://www.youtube.com/user/douglaskarr) - [Instagram](https://instagram.com/dknewmedia) Featured App [Customer Lifetime Value Calculator](https://martech.zone/cltv-calculator/) Balance customer acquisition costs against projected revenue and retention to ensure sustainable growth (LTV, CLTV, CLV) [More Apps](https://martech.zone/apps/) Upcoming Retail Holidays #### [December 2026](https://martech.zone/calendar/#202612) - 10**Human Rights Day** - 14**Green Monday** - 14**Free Shipping Day** - 15**Hanukkah Start** - 19**Super Saturday** - 21**First Day of Winter** - 22**Hanukkah End** - 23**Festivus** - 24**Christmas Eve** - 25**Christmas** [Retail Holiday Calendar](https://martech.zone/calendar/) Upcoming Conferences Click date to open event. #### [December 2026](https://martech.zone/conferences/#202612) - [6](https://refer.martech.zone/events/neurips-2026-sydney/ "Sunday, December 6 through Saturday, December 12")**NeurIPS 2026 Sydney** Sydney, New South Wales, Australia - [7](https://refer.martech.zone/events/black-hat-europe-2026/ "Monday, December 7 through Thursday, December 10")**Black Hat Europe 2026** ExCeL London, London, England, United Kingdom - [7](https://refer.martech.zone/events/inma-media-advertising-summit-2026/ "Monday, December 7 through Thursday, December 10")**INMA Media Advertising Summit 2026** WNYC's The Greene Space, New York, New York, United States - [8](https://refer.martech.zone/events/digital-summit-dallas-2026/ "Tuesday, December 8 through Wednesday, December 9")**Digital Summit Dallas 2026** Dallas, Texas, United States - [8](https://refer.martech.zone/events/from-scroll-to-store-what-holiday-foot-traffic-tells-marketers-about-2027/ "Tuesday, December 8")**From Scroll to Store: What Holiday Foot Traffic Tells Marketers About 2027** Online - [9](https://refer.martech.zone/events/affiliate-world-asia-2026/ "Wednesday, December 9 through Thursday, December 10")**Affiliate World Asia 2026** Centara Grand & Bangkok Convention Center, Bangkok, Thailand - [9](https://refer.martech.zone/events/getting-ahead-in-ai-visibility-how-to-know-youre-winning-2026/ "Wednesday, December 9")**Getting Ahead in AI Visibility: How to Know You're Winning 2026** EMARKETER Insights Lounge, New York, New York, United States - [9](https://refer.martech.zone/events/neurips-2026-atlanta/ "Wednesday, December 9 through Sunday, December 13")**NeurIPS 2026 Atlanta** Atlanta, Georgia, United States - [9](https://refer.martech.zone/events/neurips-2026-paris/ "Wednesday, December 9 through Sunday, December 13")**NeurIPS 2026 Paris** Paris, Île-de-France, France - [9](https://refer.martech.zone/events/salesforce-world-tour-essentials-atlanta-2026/ "Wednesday, December 9")**Salesforce World Tour Essentials Atlanta 2026** Atlanta, Georgia, United States [Conference Calendar](https://martech.zone/conferences/) Close Search Martech ZoneSearchType your search term and press Enter. - [Free Tools](https://martech.zone/apps/) - [Builders](https://martech.zone/apps/builders/) - [Calculators](https://martech.zone/apps/calculators/) - [Converters](https://martech.zone/apps/converters/) - [Information](https://martech.zone/apps/information/) - [Queries](https://martech.zone/apps/queries/) - [Tools](https://martech.zone/apps/tools/) - [Viewers](https://martech.zone/apps/viewers/) - [Acronyms](https://martech.zone/acronyms/) - Categories - [Advertising Technology](https://martech.zone/advertising/) - [Analytics & Testing](https://martech.zone/analytics/) - [Artificial Intelligence](https://martech.zone/ai/) - [Content Marketing](https://martech.zone/content/) - [E-commerce and Retail](https://martech.zone/ecommerce/) - [Email Marketing](https://martech.zone/email-marketing/ "Email Marketing & Email Marketing Automation") - [Mobile Marketing, Messaging, and Apps](https://martech.zone/mobile/) - [Sales Enablement, Automation, and Performance](https://martech.zone/sales/) - [Paid and Organic Search Marketing](https://martech.zone/search/) - [Social Media & Influencer Marketing](https://martech.zone/social/) - [Martech Zone Authors](https://martech.zone/authors/) - [Marketing & Sales Videos](https://martech.zone/video/) - [Marketing Books](https://martech.zone/books/) - [Marketing Conferences](https://martech.zone/conferences/) - [Marketing Events](https://martech.zone/events/) - [Marketing Infographics](https://martech.zone/infographics/) - [Marketing Interviews](https://martech.zone/podcasts/ "Listen to our Podcasts") - [Sales and Marketing Training](https://martech.zone/training/) - [Retail Sales Calendar](https://martech.zone/calendar/) - [Contribute](https://martech.zone/submit/ "Submit an Article") * [RSS](https://martech.zone/feed/) * [Newsletter](https://martech.zone/subscribe/) * [X](https://refer.martech.zone/x/) * [LinkedIn](https://refer.martech.zone/linkedin/) * [YouTube](https://refer.martech.zone/youtube/) * [Apple](https://refer.martech.zone/apple/news/) * [Instagram](https://refer.martech.zone/instagram/) * [Paypal](https://refer.martech.zone/paypal/) * [TikTok](https://refer.martech.zone/tiktok/) * [Buy Me a Coffee](https://refer.martech.zone/buymeacoffee/) × Close Search Martech ZoneType your search term and press Enter. Close Search Martech ZoneType your search term and press Enter. Share XLinkedInBlueskyThreadsFacebookRedditCopy quote with linkShare via Email ![]() Ask Martech Zone ```json {"@context":"https://schema.org","@graph":[{"@type":"Place","@id":"https://martech.zone/#place","address":{"@type":"PostalAddress","streetAddress":"7915 S Emerson Ave, Suite B203","addressLocality":"Indianapolis","addressRegion":"Indiana","postalCode":"46237","addressCountry":"United States of America"}},{"@type":"Organization","@id":"https://martech.zone/#organization","name":"DK New Media, LLC","url":"https://martech.zone","sameAs":["https://twitter.com/martech_zone","https://www.linkedin.com/company/martechzone/","https://www.youtube.com/@MartechZone","https://x.com/martech_zone","https://www.instagram.com/martech_zone/"],"email":"info@martech.zone","address":{"@type":"PostalAddress","streetAddress":"7915 S Emerson Ave, Suite B203","addressLocality":"Indianapolis","addressRegion":"Indiana","postalCode":"46237","addressCountry":"United States of America"},"location":{"@id":"https://martech.zone/#place"}},{"@type":"WebSite","@id":"https://martech.zone/#website","url":"https://martech.zone","name":"Martech Zone","publisher":{"@id":"https://martech.zone/#organization"},"inLanguage":"en-US","potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://martech.zone/s/{search_term_string}/"},"query-input":"required name=search_term_string"}},{"@type":"ImageObject","@id":"https://martech.zone/wp-content/uploads/2024/09/goodshare-javascript-social-share-library.webp","url":"https://martech.zone/wp-content/uploads/2024/09/goodshare-javascript-social-share-library.webp","width":"1200","height":"675","caption":"Goodshare.js: Javascript Social Sharing Button Library","inLanguage":"en-US"},{"@type":"BreadcrumbList","@id":"https://martech.zone/goodshare-social-sharing-javascript-library/#breadcrumb","itemListElement":[{"@type":"ListItem","position":"1","item":{"@id":"https://martech.zone","name":"Martech Zone"}},{"@type":"ListItem","position":"2","item":{"@id":"https://martech.zone/social/","name":"Social Media & Influencer Marketing"}},{"@type":"ListItem","position":"3","item":{"@id":"https://martech.zone/goodshare-social-sharing-javascript-library/","name":"goodshare.js: Simplify Your Social Sharing in Web Applications With This Lightweight JavaScript Library"}}]},{"@type":"WebPage","@id":"https://martech.zone/goodshare-social-sharing-javascript-library/#webpage","url":"https://martech.zone/goodshare-social-sharing-javascript-library/","name":"goodshare.js: Simplify Your Social Sharing in Web Applications With This Lightweight JavaScript Library | Martech Zone","datePublished":"2024-08-31T19:24:39-04:00","dateModified":"2026-10-24T03:00:01-04:00","isPartOf":{"@id":"https://martech.zone/#website"},"primaryImageOfPage":{"@id":"https://martech.zone/wp-content/uploads/2024/09/goodshare-javascript-social-share-library.webp"},"inLanguage":"en-US","breadcrumb":{"@id":"https://martech.zone/goodshare-social-sharing-javascript-library/#breadcrumb"}},{"@type":"Person","@id":"https://martech.zone/author/douglaskarr/","name":"Douglas Karr","description":"Douglas Karr is the founder of the Martech Zone. Douglas is a recognized expert on digital transformation and his firm, DK New Media, assists enterprise companies maximize their investment on Salesforce technologies.","url":"https://martech.zone/author/douglaskarr/","image":{"@type":"ImageObject","@id":"https://martech.zone/wp-content/uploads/mtz-avatars/7a4697525aa02d9624d34defdfcefdb87420e45caf7398c3a4b66f1dd74fd441-s96.webp?v=1796516387","url":"https://martech.zone/wp-content/uploads/mtz-avatars/7a4697525aa02d9624d34defdfcefdb87420e45caf7398c3a4b66f1dd74fd441-s96.webp?v=1796516387","caption":"Douglas Karr","inLanguage":"en-US"},"sameAs":["https://martech.zone/partner/dknewmedia/","https://www.facebook.com/douglaskarr","https://twitter.com/https://twitter.com/dknewmedia"],"worksFor":{"@id":"https://martech.zone/#organization"}},{"@type":"Article","headline":"goodshare.js: Simplify Your Social Sharing in Web Applications With This Lightweight JavaScript Library |","datePublished":"2024-08-31T19:24:39-04:00","dateModified":"2026-10-24T03:00:01-04:00","articleSection":"Social Media & Influencer Marketing","author":{"@id":"https://martech.zone/author/douglaskarr/","name":"Douglas Karr"},"publisher":{"@id":"https://martech.zone/#organization"},"description":"Adding social sharing can often be tedious for developers and website owners, and open-source goodshare.js simplifies buttons for a website or application.","name":"goodshare.js: Simplify Your Social Sharing in Web Applications With This Lightweight JavaScript Library |","@id":"https://martech.zone/goodshare-social-sharing-javascript-library/#richSnippet","isPartOf":{"@id":"https://martech.zone/goodshare-social-sharing-javascript-library/#webpage"},"image":{"@id":"https://martech.zone/wp-content/uploads/2024/09/goodshare-javascript-social-share-library.webp"},"inLanguage":"en-US","mainEntityOfPage":{"@id":"https://martech.zone/goodshare-social-sharing-javascript-library/#webpage"}}]} ```