stacks-orm

Official

Define models, relations, and traits with ease.

Authorstacksjs
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Mapping complex data schemas, relationships, and domain logic to a robust ORM can be boilerplate-heavy and error-prone. The Stacks ORM provides a cohesive, type-safe API to define models, relationships, traits, attributes, and transactional behavior in a single place, reducing boilerplate and increasing consistency.

Core Features & Use Cases

  • Define models with defineModel() and automatically generate event hooks, relations, attributes, and computed properties
  • Map common relationships (hasOne, hasMany, belongsTo, belongsToMany, morphOne) and manage pivot tables, transactions, and query building
  • Leverage built-in traits (taggable, categorizable, commentable, billable, likeable, two-factor) to rapidly extend models across your application

Quick Start

Define a model with defineModel() and start mapping your domain's data structures.

Dependency Matrix

Required Modules

None required

Components

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: stacks-orm
Download link: https://github.com/stacksjs/stacks/archive/main.zip#stacks-orm

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.