query-scopes
CommunityCompose reusable, filterable queries with ease.
Software Engineering#typescript#filters#composability#drizzle-orm#scopes#repository-pattern#query-builder
Authoryutna
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Scopes are a lightweight pattern for building reusable, composable query conditions in data access layers, reducing duplication and improving readability.
Core Features & Use Cases
- Named scopes such as active, notDeleted, byAuthor, and search enable modular filtering.
- Composite scopes allow combining multiple conditions into a single reusable predicate.
- Dynamic scope utilities provide conditional application and dynamic where clause construction.
- Repository-friendly patterns integrate scopes with common query builders and data access layers for scalable filtering.
- Use cases include filtering active users, admins, or records by role, status, or search term.
Quick Start
Review the example patterns and integrate the scope patterns into your entity modules to start composing reusable filters.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: query-scopes Download link: https://github.com/yutna/vibe-next-template/archive/main.zip#query-scopes Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.