Sharer.js is a lightweight vanilla JavaScript library for creating custom social sharing controls on website elements. It works without jQuery, frameworks, or external runtime dependencies. Developers configure each control through HTML data attributes that define the service, URL, title, popup size, and other platform-specific values. The library supports more than 20 social networks, messaging services, blogging platforms, and bookmarking tools. It can open sharing popups, behave as a regular link, or launch links in a new browser tab. Sharer.js is available through npm, downloadable minified files, and public CDNs. Its manual initialization API also supports buttons added dynamically after the page has loaded.

Features

  • Support for more than 20 sharing services
  • Dependency-free vanilla JavaScript implementation
  • HTML data attribute configuration
  • Custom popup dimensions and link behavior
  • Dynamic event binding for new elements
  • npm, local script, and CDN installation

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow sharer.js

sharer.js Web Site

Other Useful Business Software
$300 Free Credits for Your Google Cloud Projects Icon
$300 Free Credits for Your Google Cloud Projects

Start building on Google Cloud with $300 in free credits. No commitment, no credit card required until you're ready to scale.

Launch your next project with $300 in free Google Cloud credits—no strings attached. Test, build, and deploy without risk. Use your credits across the entire Google Cloud platform to find what works best for your needs. After your credits are used, continue with always-free tier services. Only pay when you're ready to scale. Sign up in minutes and start exploring.
Start Free Trial
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of sharer.js!

Additional Project Details

Programming Language

JavaScript

Related Categories

JavaScript Social Networking Software

Registered

2 days ago