awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
ljharb avatar

ljharb/qs

0
View on GitHub↗

Qs

qs is a query string parsing and serialization library used to convert URL query strings into JavaScript objects and transform objects or arrays back into URI-encoded strings. It functions as a secure parser and URI encoding utility, specifically designed to handle nested data structures.

The library distinguishes itself through configurable nesting styles and array serialization formats. It provides support for custom character encoding logic and utilizes charset sentinels to manage conversions between UTF-8 and ISO-8859-1.

To prevent resource exhaustion and security vulnerabilities, the project implements parameter-count throttling and strict parsing depth limitations. It also includes capabilities for null value handling, predicate-based key filtering, and pluggable encoding functions to manage how data is serialized.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Features

  • URI Encoding Utilities - Provides a comprehensive utility for transforming strings into URI-encoded formats and back, specializing in nested data structures.
  • Query String Parsing - Converts complex, nested URL query strings into structured JavaScript objects with configurable depth limits.
  • Nested Object Serializers - Transforms JavaScript objects and arrays into URI-encoded query strings with configurable nesting styles.
  • Array Parameter Serialization - Implements multiple formats for serializing arrays into URL query parameters, including indices and brackets.
  • Query String Encoding - Transforms JavaScript objects and arrays into URI-encoded query strings for web requests and API calls.
  • Query Parameter Parsers - Implements parameter limits and nesting depth restrictions to prevent vulnerabilities like prototype pollution.
  • Query String Construction - Offers a tool for building URI query strings from JavaScript objects and arrays with configurable formats.
  • Custom Value Encoders - Allows the substitution of default URI encoding logic with custom functions to support diverse character sets.
  • Parsing Depth Limits - Implements constraints on maximum nesting levels during parsing to prevent stack overflow and resource exhaustion attacks.
  • Deserialization Depth Limiting - Enforces a maximum nesting level during object reconstruction to prevent resource exhaustion and DoS attacks.
  • Character Encoding Converters - Supports converting query strings between UTF-8 and ISO-8859-1 using automatic charset detection.
  • Parameter Count Limits - Protects system resources by rejecting query strings that exceed a predefined maximum number of key-value pairs.
  • HTTP Request Parameter Management - Manages the transmission of data via query strings by filtering and limiting the number of parameters.
  • Parameter Count Limits - Prevents denial-of-service attacks by enforcing a maximum limit on the number of parameters allowed in a query string.
  • URL and Network Utilities - Robust query string parsing and stringification.
  • 路由和链接(Routing And URLs) - Listed in the “路由和链接(Routing And URLs)” section of the Awesome Frontend awesome list.
8,940 stars·889 forks·JavaScript·BSD-3-Clause·25 views

Star history

Star history chart for ljharb/qsStar history chart for ljharb/qs

How this analysis was created: This summary and feature list are AI-generated from collected project material and can contain mistakes. Stars, license and language are imported from GitHub. Inclusion does not mean that we have tested or audited this project. Check the source documentation for any feature you depend on. Learn more on our About page.

Projects sharing features with Qs

These projects share indexed features with Qs. Shared tags can include platform or build tooling; verify the primary use case before treating a result as a replacement.
  • sindresorhus/query-stringsindresorhus avatar

    sindresorhus/query-string

    6,915View on GitHub↗

    This is a suite of JavaScript utilities for the bidirectional conversion and manipulation of URL components and query parameters. It provides a mechanism for parsing URL query strings into data objects and serializing those objects back into URL-encoded strings. The library includes functions for filtering, isolating, and modifying parameters within a full URL or query string. It supports the construction of complete web links by combining base addresses with formatted query parameters. The toolset covers data transformation primitives such as alphabetical key sorting, input sanitization, an

    JavaScript
    View on GitHub↗6,915
  • 47ng/nuqs47ng avatar

    47ng/nuqs

    10,591View on GitHub↗

    nuqs is a TypeScript library for managing React component state through the browser's URL query string. It provides a type-safe hook-based approach that synchronizes component state with the address bar, enabling shareable and bookmarkable application states. The library handles parsing and serializing URL query parameters into typed JavaScript values, supporting integers, floats, booleans, dates, and custom types with bijectivity verification. The library distinguishes itself through its comprehensive approach to URL state management, combining batch URL updates that merge multiple parameter

    TypeScriptquery-paramsreactsearch-params
    View on GitHub↗10,591
  • medialize/uri.jsmedialize avatar

    medialize/URI.js

    6,222View on GitHub↗

    URI.js is a full-featured JavaScript library for parsing, building, normalizing, and mutating URLs and their components programmatically. It provides a mutable-component object model that exposes each URL part as a separate object with getter and setter methods, enabling direct manipulation of schemes, hosts, paths, query strings, and fragments. The library implements strict RFC 3986 compliance for encoding, decoding, and normalization of URI components, and includes a template expansion engine that substitutes variables using operator-specific rules. The library distinguishes itself through

    JavaScript
    View on GitHub↗6,222
  • chyingp/nodejs-learning-guidechyingp avatar

    chyingp/nodejs-learning-guide

    6,865View on GitHub↗

    This project is a learning guide and collection of study notes designed to teach Node.js backend development. It provides a comprehensive core API reference and practical demonstrations for implementing server-side logic, network programming, and system APIs. The guide specifically covers advanced technical domains including process management for scaling applications via clusters and child processes, as well as network programming for building TCP, UDP, and HTTP services. It also includes detailed instructional material on security implementation, focusing on cryptographic hashing and encryp

    Rubycryptoexpressnodejs
    View on GitHub↗6,865
Compare all 30 related projects→

Frequently asked questions

What does ljharb/qs do?

qs is a query string parsing and serialization library used to convert URL query strings into JavaScript objects and transform objects or arrays back into URI-encoded strings. It functions as a secure parser and URI encoding utility, specifically designed to handle nested data structures.

What are the main features of ljharb/qs?

The main features of ljharb/qs are: URI Encoding Utilities, Query String Parsing, Nested Object Serializers, Array Parameter Serialization, Query String Encoding, Query Parameter Parsers, Query String Construction, Custom Value Encoders.

Which projects share features with ljharb/qs?

Projects with overlapping indexed features include: sindresorhus/query-string — This is a suite of JavaScript utilities for the bidirectional conversion and manipulation of URL components and query… 47ng/nuqs — nuqs is a TypeScript library for managing React component state through the browser's URL query string. It provides a… medialize/uri.js — URI.js is a full-featured JavaScript library for parsing, building, normalizing, and mutating URLs and their… chyingp/nodejs-learning-guide — This project is a learning guide and collection of study notes designed to teach Node.js backend development. It… pieroxy/lz-string — lz-string is a JavaScript library and command-line tool for compressing and decompressing string data using Lempel-Ziv… vuejs/router — Vue.js Client-Side Router is a routing library for Vue.js that synchronizes the browser URL with application state to…