Skip to content
pubscout

random_user_agents

1.0.30, released 6 days ago by dev.tatakai.top

Generate random User-Agent strings for Dart/Flutter apps

WASM-ready
$ flutter pub add random_user_agents
Source repository

What it does

This library provides a simple API to generate random User-Agent headers. It can be used directly or with a custom filter function to narrow results.

AI-written summary of version 1.0.30, based on the package's README and metadata. Report an inaccuracy

Use it when

  • Need to spoof or randomize User-Agent in HTTP requests
  • Testing network requests with varied headers
  • Avoiding bot detection in web scraping

Skip it when

  • Require deterministic User-Agent values
  • Need to parse or validate existing User-Agent strings

Strengths

  • Easy to use API
  • Supports custom filtering
  • Regularly updated data source
  • No external dependencies

Weaknesses

  • Only generates strings, no HTTP integration
  • No built‑in caching or persistence
  • No support for platform‑specific features

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
0

Add to pubspec and import package

import 'package:random_user_agents/random_user_agents.dart';

void main(){
  final ua = RandomUserAgents.random();
  print(ua);
}

Alternatives

Packages that do the same job and could replace random_user_agents.