Skip to content

Proposal: track Strapi (dev-time benchmarks only) #937

Backlog

Description

@unrevised6419

Description

Strapi is an open-source headless CMS written in TypeScript: a Node.js server with REST/GraphQL APIs and a React admin panel. It is not a rendering framework, so visitors never see pages Strapi renders, and it doesn't fit the meta-framework criteria.

I'm proposing it for dev-time benchmarks only. Strapi is one of the most-installed Node.js backends and is often paired with frameworks already tracked here (Next.js, Nuxt, Astro), so its install footprint and build cost are a real part of many projects' developer experience.

This moves my proposal from #853, which was closed in favour of this template.

Context: I've been contributing e18e-style cleanups to Strapi for a while: 60+ merged PRs, including removing unused dependencies from @strapi/strapi (strapi/strapi#27540), dropping punycode (strapi/strapi#26189) and nodemon (strapi/strapi#27479), replacing sanitize-html with DOMPurify (strapi/strapi#26150), replacing lodash with native code (strapi/strapi#27457, strapi/strapi#27454, strapi/strapi#27409), and no longer loading the admin build toolchain on every CLI command (strapi/strapi#27910). Tracking Strapi here would give a neutral, ongoing measurement of its footprint over time.

Proposed setup

  • Package: packages/starter-strapi (own package.json + lockfile, not in the pnpm workspace)
  • Package manager: pnpm, matching the other starters; the scaffold generates its own pnpm-workspace.yaml
  • Version: @strapi/strapi pinned to 5.62.0 (exact)
  • Scaffold: official CLI (docs), defaults (TypeScript, SQLite, no example data):
    pnpm dlx [email protected] starter-strapi --ts --use-pnpm --skip-cloud --no-example --no-git-init --no-run --non-interactive
    
  • Build: pnpm build (strapi build: compiles TS + builds the admin panel), output in dist/
  • first-party-dependencies.json: the scaffold's direct @strapi/* deps: @strapi/strapi, @strapi/database, @strapi/plugin-users-permissions, @strapi/plugin-cloud
  • No app-strapi package: there is no public frontend to run runtime tests against

Preliminary local numbers (one run, pnpm 10, Node 22, not CI-comparable): ~19 s install, 784 MB node_modules, ~1,270 packages, ~30 s build (26 s of it is the admin panel), 13 MB output.

Fairness & methodology

  • Start from the official scaffold with default options; no tuning or trimming
  • Exact version pinning, same as other starters
  • Any benchmark-specific change gets documented in methodology.md
  • The methodology page will clearly mark Strapi as dev-time only / backend, so it isn't read as a frontend framework comparison

Maintenance: if accepted, I'll maintain the integration: version bumps, lockfile updates, fixing build/benchmark failures, and keeping the methodology docs current.

Questions

  1. Is a dev-time-only entry acceptable, given it can't run the runtime benchmarks?
  2. If yes, should it sit with the other starters, or would you prefer a separate "backend / CMS" category?
  3. Is the default scaffold (including @strapi/plugin-cloud) the right baseline, or should cloud be excluded?

I won't open a PR until this is approved.

Repository URL

https://github.com/strapi/strapi

Documentation URL

https://docs.strapi.io

Unsupported benchmarks

All Run Time benchmarks: Client/Server Side Rendered Lighthouse tests, Interaction Work to Commit, Initial Load, Server Side Throughput, SSR Load Test, SSR Router Link Load Test, and Core Web Vitals. Strapi is a headless CMS: it serves JSON APIs and an authenticated admin panel, not public pages, so there is no app with the shared benchmark routes to measure.

The Dev Time benchmarks (dependency counts, node_modules size, install and build times, dev server startup via strapi develop, Core-JS polyfills, browser baseline, minimum Node version, duplicate dependencies) should all run against starter-strapi.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions