PSL Domain Parser

JSON →
library 1.15.0 ·javascript
verified May 27, 2026

psl is a JavaScript library designed for parsing domain names based on the widely adopted Public Suffix List (PSL). This list is a community-maintained resource, primarily initiated by the Mozilla Project, which identifies "public suffixes"—domain parts under which users can directly register names (e.g., .com, .co.uk, .pvt.k12.wy.us). The library's current stable version is 1.15.0. It receives regular updates to its internal Public Suffix List rules, ensuring accuracy with the latest additions and changes, with the most recent update occurring in v1.15.0 (December 2024). Key differentiators include its adherence to the official PSL, testing against Mozilla's own test data, and significant performance enhancements introduced in v1.14.0 (over 100x improvement for parsing). It provides robust support for both Node.js and browser environments, offering ESM, CommonJS, and UMD distributions, and includes TypeScript type definitions since v1.11.0, making it suitable for modern JavaScript and TypeScript projects.

total hits 12
actors 7 distinct systems
last hit 2d ago AhrefsBot
GPTBot
2
Script
1
ClaudeBot
1
ChatGPT-User
1
Search engines
2
Humans
1

top countries 🇺🇸 United States · 🇨🇦 Canada · 🇩🇪 Germany · 🇫🇷 France