FLUTTER ECOSYSTEM

uri_parser

A minimal & safe utility to parse URIs.

Latest version
3.0.2
30-day downloads
375K
Likes
0
Pub points
150

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

Overview

A minimal and safe utility for parsing URIs in Dart applications. It provides a lightweight, reliable way to extract components such as scheme, host, path, query parameters, and fragments from URI strings without relying on complex or potentially unsafe parsing logic. Designed with security and simplicity in mind, it ensures robust handling of malformed or edge-case URIs. Ideal for apps that need precise control over URI structure during routing, API requests, or data processing.

Use cases
  • Parsing URLs in web and mobile apps
  • Extracting query parameters from API endpoints
  • Validating and sanitizing user input URLs
  • Building custom routing logic
  • Handling redirects and deep links
Key features
  • Safe parsing with error handling
  • Minimal dependency footprint
  • Supports all standard URI components
  • Immutable result objects
  • No external dependencies
Suitable for
  • Simple URI manipulation tasks
  • Apps requiring secure URL parsing
  • Lightweight utilities in larger projects
  • Developers avoiding heavy HTTP clients
Considerations
  • Not intended for full HTTP request handling
  • Limited to parsing—does not support building URIs
  • May require additional validation for complex use cases
  • Does not handle internationalized domain names (IDN)
Supported platformsAndroidiOSmacOSWindowsLinux

Install package

flutter pub add uri_parser

Categories

Dependencies

Dependency list 1 items

Source repository

Related projects