{"id":17025070,"url":"https://github.com/binkaps/parsely","last_synced_at":"2026-04-13T16:04:20.228Z","repository":{"id":230425655,"uuid":"779341791","full_name":"binkapS/parsely","owner":"binkapS","description":"Versatile tool designed to enhance text parsing and masking capabilities within your Flutter applications.","archived":false,"fork":false,"pushed_at":"2024-12-18T01:39:34.000Z","size":38,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-02T19:15:50.105Z","etag":null,"topics":["dart","flutter","linkify","parsely"],"latest_commit_sha":null,"homepage":"https://binkap.com","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/binkapS.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","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":"2024-03-29T15:58:49.000Z","updated_at":"2025-09-20T11:31:18.000Z","dependencies_parsed_at":"2024-04-02T02:30:17.348Z","dependency_job_id":null,"html_url":"https://github.com/binkapS/parsely","commit_stats":null,"previous_names":["binkaps/parsely"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/binkapS/parsely","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binkapS%2Fparsely","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binkapS%2Fparsely/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binkapS%2Fparsely/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binkapS%2Fparsely/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/binkapS","download_url":"https://codeload.github.com/binkapS/parsely/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binkapS%2Fparsely/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31759576,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T15:25:13.801Z","status":"ssl_error","status_checked_at":"2026-04-13T15:25:09.162Z","response_time":93,"last_error":"SSL_read: 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":["dart","flutter","linkify","parsely"],"created_at":"2024-10-14T07:27:57.715Z","updated_at":"2026-04-13T16:04:20.200Z","avatar_url":"https://github.com/binkapS.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Parsely\n\n**Parsely** is a powerful tool for text parsing and masking in your Flutter applications. It allows you to extract various entities such as links, email addresses, @mentions, hashtags, and phone numbers from text. Additionally, Parsely offers customizable masking functionality to obscure sensitive information while keeping it in the desired format and ensuring it's still clickable.\n\n## Key Features\n\n- **Entity Parsing**: Effortlessly parse links, email addresses, @mentions, hashtags, and phone numbers embedded within text strings.\n- **Customizable Masks**: Define custom masks to obscure sensitive information like email addresses or phone numbers while retaining their format.\n- **Clickable Entities**: Automatically convert parsed entities (links, emails, phone numbers, etc.) into clickable elements that users can interact with.\n- **Flexible Integration**: Easily integrate the parsing and masking functionality into your Flutter applications with minimal setup.\n- **Performance Optimized**: Designed to handle large volumes of text efficiently while ensuring smooth user experience.\n- **Cross-Platform Support**: Fully compatible with all platforms supported by Flutter, including iOS, Android, Web, and Desktop.\n\n## Use Cases\n\n- **Social Media Apps**: Enhance engagement by making @mentions and hashtags clickable in posts or comments.\n- **Messaging Platforms**: Improve UX by automatically parsing and masking phone numbers and email addresses in conversations.\n- **E-commerce Apps**: Protect user privacy by masking sensitive details (like emails or phone numbers) while allowing clickable product links.\n- **Content Sharing Apps**: Simplify content sharing by parsing and masking URLs within descriptions or captions.\n\n## Installation\n\nTo use **Parsely** in your Flutter project, add the following dependency to your `pubspec.yaml`:\n\n```yaml\ndependencies:\n  binkap_parsely: \u003clatest_version\u003e\n```\n\n- **Alternatively, run this command in your terminal:**\n\n#\n\n```bash\nflutter pub add binkap_parsely\n```\n\n## Usage\n\nTo use this package, add `binkap_parsely` as a [dependency in your pubspec.yaml file](https://pub.dev/packages/binkap_parsely/).\n\nto `/example` folder.\n\n```dart\nimport 'package:binkap_parsely/binkap_parsely.dart';\n\nParsely(\n  text:\n      'Visit me at https://binkap.com, or you could send me an email at rea.desert.tiger@gmail.com. Supposedly you prefer calls? Reach me at +2348068989116 or simply use #binkap on Twitter.',\n  textAlign: TextAlign.center,\n  options: ParselyOptions(  // Optional configuration\n    parseMentionTag: true, // Default: true\n    humanize: true,        // Default: true\n    parsePhone: true,      // Default: true\n    parseHashTag: true,    // Default: true\n    parseEmail: true,      // Default: true\n    parseLink: true,       // Default: true\n  ),\n  mask: ParselyMask(  // Optional masking configuration\n    matches: [\n      '+2348068989116',  // Match specific values for masking\n    ],\n    masks: [\n      'My Contact',  // Mask text\n    ],\n  ),\n  style: const TextStyle(  // Styling for unmatched text\n    color: Colors.white,\n    fontSize: 20,\n    fontWeight: FontWeight.bold,\n    fontFamily: 'DancingScript',\n  ),\n  parsedStyle: const TextStyle(  // Styling for matched text\n    color: Color.fromARGB(255, 33, 243, 86),\n    fontSize: 20,\n    fontWeight: FontWeight.bold,\n    fontFamily: 'DancingScript',\n  ),\n  onTap: (element) {  // Callback for matched element clicks\n    switch (element.type) {\n      case ParselyType.link:\n        print('Clicked link: ${element.parsed}');\n        break;\n      case ParselyType.email:\n        print('Clicked email: ${element.parsed}');\n        break;\n      case ParselyType.phone:\n        print('Clicked phone number: ${element.parsed}');\n        break;\n      case ParselyType.hashTag:\n        print('Clicked hashtag: ${element.parsed}');\n        break;\n      case ParselyType.mentionTag:\n        print('Clicked @mention: ${element.parsed}');\n        break;\n      default:\n        print('Unknown element clicked');\n    }\n  },\n);\n```\n\n## Dictionary\n\n## Parameters\n\n### ParselyElement\n\nThis class represents the parsed element. It contains two properties:\n\n| Parameter | Type          | Description                                               |\n|-----------|---------------|-----------------------------------------------------------|\n| `type`    | `ParselyType` | The type of the parsed entity (link, email, phone, etc.)   |\n| `parsed`  | `String`      | The parsed text that was identified (e.g., URL, email, etc.)|\n\n### ParselyOptions\n\nOptions to control how Parsely parses the text. These are all optional and come with default values.\n\n| Parameter        | Type     | Description                                           | Default |\n|------------------|----------|-------------------------------------------------------|---------|\n| `parseMentionTag` | `bool`   | Enable parsing of @mentions                           | `true`  |\n| `humanize`       | `bool`   | Whether to humanize the parsed text (e.g., formatting) | `true`  |\n| `parsePhone`     | `bool`   | Enable parsing of phone numbers                       | `true`  |\n| `parseHashTag`   | `bool`   | Enable parsing of hashtags                            | `true`  |\n| `parseEmail`     | `bool`   | Enable parsing of email addresses                     | `true`  |\n| `parseLink`      | `bool`   | Enable parsing of URLs                                | `true`  |\n\n### ParselyMask\n\nAllows you to define specific masks for parsed entities. The `matches` parameter defines which entities are to be masked, and the `masks` parameter defines the text that will replace the matched text.\n\n| Parameter | Type            | Description                                               |\n|-----------|-----------------|-----------------------------------------------------------|\n| `matches` | `List\u003cString\u003e`   | A list of strings that should be masked.                  |\n| `masks`   | `List\u003cString\u003e`   | A list of masks that replace the matched text.            |\n\n## Additional Information\n\n- **Performance Optimized**: Parsely has been engineered to handle large blocks of text efficiently, ensuring smooth interactions even with extensive data inputs.\n- **Cross-platform Compatibility**: Works seamlessly across all platforms supported by Flutter, including Android, iOS, Web, and Desktop.\n\n## Contributions\n\nFeel free to contribute to Parsely! Whether it’s fixing bugs, suggesting improvements, or adding new features, your contributions are welcome. Please refer to the [contributing guide](/CONTRIBUTING.md) for more information.\n\n## License\n\nThis package is licensed under the [MIT LICENSE](/LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbinkaps%2Fparsely","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbinkaps%2Fparsely","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbinkaps%2Fparsely/lists"}