Source: https://seerepo.com/compare/stalniy/casl/vs/TanStack/query
Markdown source: https://seerepo.com/compare/stalniy/casl/vs/TanStack/query.md
Description: casl and query share 4 technologies: Angular, React, Svelte, and Vue. casl is written in JavaScript and query in TypeScript.

# casl vs query

casl and query share 4 technologies: Angular, React, Svelte, and Vue. casl is written in JavaScript and query in TypeScript.

- [stalniy/casl](https://seerepo.com/r/stalniy/casl): CASL is an isomorphic authorization JavaScript library which restricts what resources a given user is allowed to access
- [TanStack/query](https://seerepo.com/r/TanStack/query): 🤖 Powerful asynchronous state management, server-state utilities and data fetching for the web. TS/JS, React Query, Solid Query, Svelte Query and Vue Query.

## What they share and what sets them apart

- In common: Angular, React, Svelte, Vue
- Only in casl: MongoDB, SQLite, Prisma
- Only in query: Lit, @lit-labs/ssr, Preact, preact-render-to-string, Solid, @solid-primitives/storage, Next.js, vue-demi, goober, @kobalte/core, solid-primitives, @tanstack/solid-virtual, solid-transition-group

## Side by side

| | casl | query |
|---|---|---|
| Size | 16,746 lines written, 119 code files | 265,344 lines written, 351 code files |
| Who writes it | 0.1% of its commits signed by AI. With GitHub Copilot | 0.5% of its commits signed by AI. With Claude Code, CodeRabbit, Codex, and GitHub Copilot |
| Activity | Last push November 20, 2026, 1,971 commits, 7,118 stars | Last push November 18, 2026, 5,976 commits, 50,574 stars |
| Tests | 32 test files. 10.1% of its code files have a test that imports them | 427 test files. 48.4% of its code files have a test that imports them |

- Size: Lines written by people and agents, without generated ones; code files, without tests.
- Who writes it: A commit counts as AI's when it carries its signature: a Co-Authored-By line, its author name or the merge of its branch.
- Activity: From GitHub and its history, on the day SeeRepo read it.
- Tests: The files that test the code, and the share of code files a test imports.

## Frequently asked questions

### Which is bigger, casl or query?

query, with 265,344 lines written; casl has 16,746.

The proof: [TanStack/query's code at commit b2dd6f3](https://github.com/TanStack/query/tree/b2dd6f3585c9820e9ca03074461b4007280fc231)

### Which has more GitHub stars, casl or query?

query, with 50,574 stars; casl has 7,118.

The proof: [TanStack/query on GitHub](https://github.com/TanStack/query)

### Which has more tests, casl or query?

query, with 427 test files; casl has 32.

The proof: [TanStack/query's code at commit b2dd6f3](https://github.com/TanStack/query/tree/b2dd6f3585c9820e9ca03074461b4007280fc231)

### Which was updated more recently, casl or query?

casl: its last push was on November 20, 2026, and query's on November 18, 2026.

The proof: [stalniy/casl's commits on GitHub](https://github.com/stalniy/casl/commits)

### Which has more commits signed by AI, casl or query?

query: an AI signed 0.5% of its commits, with Claude Code, CodeRabbit, Codex, and GitHub Copilot; in casl, 0.1%.

The proof: [the commits each tool signed in TanStack/query](https://seerepo.com/r/TanStack/query/ai)

## Sources

- stalniy/casl: Read on November 20, 2026, at commit e2d857a (https://github.com/stalniy/casl/tree/e2d857a130b8172761f3861f0c1704676c90280f)
- TanStack/query: Read on November 18, 2026, at commit b2dd6f3 (https://github.com/TanStack/query/tree/b2dd6f3585c9820e9ca03074461b4007280fc231)

## What is your repo built with?

Any public repo, with no account: https://seerepo.com/r/owner/repo/built, with the owner and name it has on GitHub.
