Search packages, repositories and app categories

Package detailsv3.0.2

uri_parser

A minimal & safe utility to parse URIs.

AndroidiOSmacOSWindowsLinux
30-day downloads
435K
Likes
0
Pub points
150

Install package

flutter pub add uri_parser

Package Overview

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

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)

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

package:uri_parser

A minimal & safe utility to parse URIs.

Categories

Dependencies

Dependency list 1 items

Source repository

Projects using this package