# gregjacobs/Autolinker.js

Utility to Automatically Link URLs, Email Addresses, Phone Numbers, Twitter handles, and Hashtags in a given block of text/HTML

Repository: https://github.com/gregjacobs/Autolinker.js
Canonical: https://ross.abutalabs.com/products/autolinkerjs
Language: TypeScript
License: MIT
License Family: permissive
Last push: 2026-02-21T16:34:06+00:00

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

## Adoption (not part of the score)
Stars 1495, forks 237 (observed 2026-08-28T04:04:53.481798+00:00)

## What it is
A TypeScript utility library that automatically converts URLs, email addresses, phone numbers, @mentions, and #hashtags in plain text or HTML into clickable anchor links. It handles HTML input safely without corrupting existing tags and runs in linear time without ReDoS vulnerability.

## Use cases
- autolink urls in user comments
- convert plain text emails and phone numbers into clickable links
- linkify hashtags and mentions in a social feed
- safely autolink text that contains existing HTML
- detect and link urls without protocol prefix like google.com
- prevent ReDoS when linkifying untrusted user input

## When to choose
- you need robust, fast, HTML-safe autolinking of mixed entity types (URLs, emails, phones, mentions, hashtags)
- you are processing untrusted input and need ReDoS-safe linear-time matching
- you need to avoid double-linking text inside existing anchor tags

## When to avoid
- you only need simple URL detection with no HTML handling and want a minimal dependency
- you need entity extraction with structured output rather than HTML anchor generation
- you need markdown-aware link processing

## Facets
- artifact type: library
- maturity: stable
- function: parser, nlp, developer-tools
- domain: web-development, text-editors
- platform: browser, cross-platform
- tags: autolinking, url-detection, hashtags, mentions, phone-numbers, email-detection, html-safe, redos-safe, natural-language-processing, nodejs, typescript

## Member repositories
- gregjacobs/Autolinker.js (main) score 65

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:53.481798+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-30T04:33:16.952986+00:00, confidence not recorded.
  - readme: https://github.com/gregjacobs/Autolinker.js (fetched 2026-08-28T04:04:53.481798+00:00, sha d7afb4bcaf8c)
  - registry_npm: https://registry.npmjs.org/autolinker.js (fetched 2026-08-29T11:38:55.062438+00:00, sha 35a24169cd45)
- Data as of 2026-08-30T08:39:29.467469+00:00.
