Convenient URL builder

API diagram


This library is inspired by Javascript package urlcat. It's a loose port with slightly different API.

Library exposes simple urldat function that helps you build URLs effectively while avoiding typical mis-steps, like double slashes or unencoded values.


  • Friendly API
  • No dependencies, uses core Dart library
  • Simple source code, easy to fork
  • urldatFactory for creating closures with pre-configured base URL


A simple usage example:

import 'package:urldat/urldat.dart';
import 'package:http/http.dart' as http;

main() {
  final url = urldat(
    parameters: { 'id': 100, 'q': 'search', 't': });


Feature requests and bugs

Please file feature requests and bugs at the issue tracker.


urldat is a micro library that exposes urldat and urldatFactory functions. It is a simple utility that helps you with building URLs in intuitive way while also making sure URLs have correct format.