{"id":39766751,"url":"https://github.com/beefchimi/socialite","last_synced_at":"2026-01-18T11:45:36.981Z","repository":{"id":43453997,"uuid":"446556138","full_name":"beefchimi/socialite","owner":"beefchimi","description":"Social network URL parsing for aristocrats","archived":false,"fork":false,"pushed_at":"2024-05-30T18:56:22.000Z","size":397,"stargazers_count":3,"open_issues_count":14,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-27T11:45:47.921Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/beefchimi.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-01-10T19:29:48.000Z","updated_at":"2024-05-30T18:55:59.000Z","dependencies_parsed_at":"2024-02-20T18:25:10.180Z","dependency_job_id":"d5c6df81-e2e7-422c-b121-da68d9f83712","html_url":"https://github.com/beefchimi/socialite","commit_stats":{"total_commits":28,"total_committers":2,"mean_commits":14.0,"dds":0.1428571428571429,"last_synced_commit":"7ee362c3d6a0b2d15f5a5514d74998eb9702781b"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":"beefchimi/template-common","purl":"pkg:github/beefchimi/socialite","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beefchimi%2Fsocialite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beefchimi%2Fsocialite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beefchimi%2Fsocialite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beefchimi%2Fsocialite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/beefchimi","download_url":"https://codeload.github.com/beefchimi/socialite/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beefchimi%2Fsocialite/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28535177,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T10:13:46.436Z","status":"ssl_error","status_checked_at":"2026-01-18T10:13:11.045Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-18T11:45:36.461Z","updated_at":"2026-01-18T11:45:36.972Z","avatar_url":"https://github.com/beefchimi.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Socialite\n\n[![License: ISC](https://img.shields.io/badge/License-ISC-blue.svg)](https://opensource.org/licenses/ISC)\n\n`Socialite` is a quick and easy way to parse a `url: string` to determine:\n\n1. What social network it belongs to.\n2. What the `user` handle is.\n3. What the social `prefix` is _(if relevant)_.\n4. What each url segment is, broken up into groups.\n\nThe minimum criteria for parsing a `url` is:\n\n1. **domain**: `https://www.{{domain}}.com/path`\n2. **tldomain**: `https://www.domain{{.com}}/path`\n\n## Installation\n\nSimply install via the command-line or include in your `package.json`, just like any other dependency.\n\n```sh\n# Alternatively install with `yarn` or `pnpm`\nnpm install socialitejs\n```\n\n## How to use\n\nBy default, `Socialite` includes only a small collection of the most common social networks. The exact networks included can be found in the `defaultSocialiteNetworks` array. A typical use case looks like:\n\n```ts\nimport {Socialite} from 'socialitejs';\n\nconst socialiteInstance = new Socialite();\nconst mySocialUrl = 'https://www.twitter.com/@SomeFakeUserHandle';\nconst parsedSocialUrl = socialiteInstance.parseProfile(mySocialUrl);\n\nconsole.log(parsedSocialUrl);\n```\n\nThe above will log the following `SocialiteProfile` _(object)_ to the console:\n\n```ts\n{\n  id: 'twitter',\n  prefix: '@',\n  user: 'SomeFakeUserHandle',\n  originalUrl: 'https://www.twitter.com/@SomeFakeUserHandle',\n  preferredUrl: 'https://twitter.com/@SomeFakeUserHandle',\n  appUrl: 'https://mobile.twitter.com/@SomeFakeUserHandle',\n  urlGroups: {\n    scheme: 'https://',\n    subdomain: 'www.',\n    domain: 'twitter',\n    tldomain: '.com',\n    path: '/@SomeFakeUserHandle',\n    // Other url parts are omitted if `undefined`\n  },\n}\n```\n\nFor a more robust collection of social networks, you can import the `socialiteNetworks` object and use it _(at least)_ one of two ways:\n\n```ts\nimport {Socialite, socialiteNetworks, type SocialiteId} from 'socialitejs';\n\n// Adding all social networks in bulk:\nconst allNetworksInstance = new Socialite(Object.values(socialiteNetworks));\n\n// Logs to the console all social networks included in the code base.\nconsole.log(allNetworksInstance.getAllNetworks());\n\n// Initializing `Socialite` without any networks (pass empty `array`):\nconst selectiveNetworksInstance = new Socialite([]);\nconst excludedNetworks: SocialiteId[] = ['discord', 'facebook', 'reddit'];\n\nObject.keys(socialiteNetworks).forEach((network) =\u003e {\n  if (!excludedNetworks.includes(network.id)) {\n    selectiveNetworksInstance.addNetwork(network);\n  }\n});\n\n// Logs to the console all social networks not found in `excludedNetworks`.\nconsole.log(selectiveNetworksInstance.getAllNetworks());\n```\n\n## Features\n\n...this section is incomplete... check back later for API documentation.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeefchimi%2Fsocialite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbeefchimi%2Fsocialite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeefchimi%2Fsocialite/lists"}