# stretchr/arg.js

Lightweight URL argument and parameter parser

Repository: https://github.com/stretchr/arg.js
Canonical: https://ross.abutalabs.com/products/argjs
Language: JavaScript
License: NOASSERTION
License Family: other
Last push: 2017-06-07T23:19:55+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 4724, "days_push": 3374, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1053, forks 44 (observed 2026-08-28T04:03:23.915925+00:00)

## What it is
A lightweight JavaScript library for parsing URL query string and hash parameters, including nested objects and arrays. It provides simple accessors like Arg(key) to read values from both the query segment and the hash segment of a URL.

## Use cases
- parse query string parameters from a url in javascript
- read url arguments including hash fragment params
- get nested objects and arrays from query parameters
- parse url params with default values
- build urls with query parameters and anchors
- coerce query string values to native types

## When to choose
- you need a tiny dependency-free way to read query and hash parameters in the browser
- your URLs encode nested objects or arrays in query parameters
- you want simple key-based access with optional defaults and type coercion

## When to avoid
- you need a modern, actively maintained library with recent security updates
- you are using a framework with a built-in router or query parsing solution
- you need server-side URL parsing with full WHATWG URL standards compliance

## Facets
- artifact type: library
- maturity: maintenance
- function: parser, developer-tools
- domain: web-development, frontend, developer-tools
- platform: browser
- tags: url-parameters, query-string, querystring-parser, javascript, lightweight, nodejs

## Member repositories
- stretchr/arg.js (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:23.915925+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:59:23.968294+00:00, confidence not recorded.
  - readme: https://github.com/stretchr/arg.js (fetched 2026-08-28T04:03:23.915925+00:00, sha f5ad44b9c6e0)
- Data as of 2026-08-30T08:39:29.467469+00:00.
