# ellisonleao/sharer.js

:on: :bookmark: Create your own social share buttons. No jquery. Just vanilla JS

Repository: https://github.com/ellisonleao/sharer.js
Canonical: https://ross.abutalabs.com/products/sharerjs
Homepage: http://ellisonleao.github.io/sharer.js
Language: JavaScript
License: MIT
License Family: permissive
Topics: javascript, share-buttons, social-network, facebook, twitter, pinterest, okru, telegram, whatsapp, hackernews, reddit, vanilla-javascript, vanilla, vanillajs
Last push: 2026-07-21T14:13:56+00:00

## Health v2 (maintenance only)
Score: 65/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 93, release rhythm 8, longevity 100
- inputs: {"age_days": 3911, "days_push": 43, "days_rel": 524, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2094, forks 202 (observed 2026-08-28T04:06:13.113313+00:00)

## What it is
Sharer.js is a tiny dependency-free vanilla JavaScript library for creating custom social share buttons on DOM elements. It supports over 20 social networks including Twitter/X, Facebook, WhatsApp, Telegram, and Reddit via simple data-* attributes.

## Use cases
- add social share buttons to a website without jquery
- create custom styled share links for twitter and facebook
- share page url to whatsapp and telegram from a button
- dynamically bind share behavior to injected dom elements
- lightweight social sharing widget with no dependencies

## When to choose
- you want a tiny, zero-dependency vanilla JS share button library
- you need to support many social networks with simple data attributes
- you want custom-styled share buttons instead of provider widgets

## When to avoid
- you need share counts or analytics from social platforms
- you use a framework with its own share component ecosystem
- you need server-side share link generation

## Facets
- artifact type: library
- maturity: stable
- function: ui-components, developer-tools
- domain: web-development, frontend, social-media
- platform: browser
- tags: share-buttons, vanilla-javascript, social-media, zero-dependencies, frontend, javascript

## Member repositories
- ellisonleao/sharer.js (main) score 65

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:13.113313+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:55:25.285931+00:00, confidence not recorded.
  - readme: https://github.com/ellisonleao/sharer.js (fetched 2026-08-28T04:06:13.113313+00:00, sha 4dbab2127233)
  - homepage: http://ellisonleao.github.io/sharer.js (fetched 2026-08-29T10:35:14.700755+00:00, sha 91b54dd64271)
  - registry_npm: https://registry.npmjs.org/sharer.js (fetched 2026-08-29T10:35:14.709872+00:00, sha 0f237a7200c0)
- Data as of 2026-08-30T08:39:29.467469+00:00.
