npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

strapi-plugin-populate-all

v1.6.0

Published

A lightweight plugin to recursively populate nested data in RESTful API requests

Readme

Strapi Plugin Populate All

Static Badge NPM Version GitHub Actions Workflow Status

A lightweight Strapi plugin that enables you to recursively populate all nested components, dynamic zones and relations in your REST API responses using a simple query parameter: ?populate=all.

Features

  • Use ?populate=all in your API requests to automatically and deeply populate all nested relations, components, and dynamic zones for any content type.
  • Fine-tune which relations are populated using plugin configuration.
  • The generated populate queries are cached, so repeated REST requests for the same model are faster.

Installation

All you need to do is install the plugin. Strapi should automatically detect and include it.

npm install strapi-plugin-populate-all

Usage

Just add ?populate=all to your REST API request, for example: GET /api/articles?populate=all This will return the article with all nested components, dynamic zones and relations fully populated, regardless of depth.

Configuration

The following configuration options can be added to your Strapi project's config/plugins.js or config/plugins.ts file.

| Option | Description | Values | | ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | relations | Controls which relations are populated when querying. | - true: Populate all relations recursively (default)- false: Do not populate any relations- string[]: Populate only specific collection types by UID (e.g., ["api::article.article"]) | | cache | Enables or disables the plugin’s in-memory cache for faster populate query generation. | - true (default)- false | | recursion | Allows a model to populate itself N levels deep when the populate tree revisits the same modelUid. By default, self-references are skipped after the first encounter to prevent infinite loops. Use this to opt specific models in to deeper nested self-populations. | An object mapping modelUid to a non-negative integer depth, e.g. { "api::article.article": 2 }. 0 (default) means no self-recursion; 1 allows one nested level; 2 allows two; and so on. |

Example usage:

module.exports = {
  "populate-all": {
    enabled: true,
    config: {
      cache: true,
      relations: true,
      recursion: {
        // articles can populate their `related` articles 2 levels deep
        "api::article.article": 2,
      },
    },
  },
};

How it works

  • The plugin provides a global middleware that intercepts requests with ?populate=all and rewrites the query to trigger recursive population.
  • In the background, it builds a standard Strapi populate query as described in the Strapi documentation.
  • You can control which relations are included using the relations config option.
  • Inside the document API, you can set populate: '*' and _q: "populate-all" to make it work ("populate-all" can be anywhere inside _q, we detect it via .includes)