Detect the platform
Recognize supported social networks from a URL, even when users leave off the protocol.
detectPlatform(url)
Open playground ↗Detect, validate, and normalize social profile URLs with one tiny, TypeScript-first library.
npm i sociurlnpx skills add https://github.com/ahmadshah49/sociurl --skill sociurlSociurl handles the tricky edge cases, so your product can focus on people and their profiles.
Recognize supported social networks from a URL, even when users leave off the protocol.
detectPlatform(url)Check profile paths and usernames structurally without making a network request.
validateSocialUrl(url)Turn accepted variations into one clean, secure canonical profile link.
normalizeSocialUrl(url)Drop in accessible inputs, platform icons, and safe social link lists.
import from "sociurl/react"See what Sociurl finds. Try an example or paste your own.
Results use detectPlatform, extractUsername and normalizeSocialUrl.
Use the helpers anywhere in your app.
import { validateSocialUrl } from "sociurl";
const result = validateSocialUrl(url);
// {
{result.valid ? "valid" : "invalid"}
// }Accessible components with flexible styling and optional brand-color icons.
Platform-aware input with built-in validation
Validated profile links with React Icons
Built-in profiles for creators, communities, and professional networks.