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

dooring-core-domain

v1.0.51

Published

Dooring 프로젝트의 핵심 도메인 모델들을 정의한 npm 패키지

Readme

@dooring/core-domain

Dooring 프로젝트의 핵심 도메인 모델들을 정의한 npm 패키지입니다.

설치

npm install @dooring/core-domain
# 또는
yarn add @dooring/core-domain

사용법

기본 사용법

import { User, UserRole, Project, ProjectStatus } from '@dooring/core-domain';

// User 객체 생성
const user: User = {
  id: 'user-123',
  email: '[email protected]',
  username: 'johndoe',
  firstName: 'John',
  lastName: 'Doe',
  isActive: true,
  createdAt: new Date(),
  updatedAt: new Date(),
  role: UserRole.USER,
  preferences: {
    language: 'ko',
    timezone: 'Asia/Seoul',
    notifications: {
      email: true,
      push: true,
      sms: false,
      marketing: false
    },
    theme: 'auto'
  }
};

// Project 객체 생성
const project: Project = {
  id: 'project-456',
  name: 'My Awesome Project',
  description: 'This is a great project',
  ownerId: 'user-123',
  collaborators: [],
  status: ProjectStatus.ACTIVE,
  visibility: 'public',
  tags: ['web', 'react'],
  createdAt: new Date(),
  updatedAt: new Date(),
  settings: {
    allowComments: true,
    allowVersioning: true,
    autoSave: true,
    maxCollaborators: 10,
    retentionPolicy: {
      keepVersions: 5,
      autoArchiveAfterDays: 365
    }
  }
};

타입 가져오기

// User 관련 타입들
import {
  User,
  UserRole,
  UserPreferences,
  NotificationSettings,
  CreateUserData,
  UpdateUserData,
  UserFilter
} from '@dooring/core-domain';

// Project 관련 타입들
import {
  Project,
  ProjectStatus,
  ProjectVisibility,
  CollaboratorRole,
  ProjectPermission,
  CreateProjectData,
  UpdateProjectData,
  ProjectFilter
} from '@dooring/core-domain';

// 공통 타입들
import {
  BaseEntity,
  PaginatedResult,
  ApiResponse,
  SearchOptions
} from '@dooring/core-domain';

API 문서

User 모델

User 인터페이스

사용자 정보를 표현하는 핵심 엔티티입니다.

interface User {
  id: string;                    // 사용자 고유 ID
  email: string;                 // 이메일 주소
  username: string;              // 사용자명
  firstName?: string;            // 이름 (선택사항)
  lastName?: string;             // 성 (선택사항)
  avatar?: string;               // 프로필 이미지 URL (선택사항)
  isActive: boolean;             // 활성 상태
  createdAt: Date;               // 생성일
  updatedAt: Date;               // 수정일
  lastLoginAt?: Date;            // 마지막 로그인 시간 (선택사항)
  role: UserRole;                // 사용자 역할
  preferences: UserPreferences;  // 사용자 설정
}

UserRole 열거형

enum UserRole {
  ADMIN = 'admin',           // 관리자
  USER = 'user',             // 일반 사용자
  MODERATOR = 'moderator',   // 중재자
  GUEST = 'guest'            // 게스트
}

Project 모델

Project 인터페이스

프로젝트 정보를 표현하는 핵심 엔티티입니다.

interface Project {
  id: string;                           // 프로젝트 고유 ID
  name: string;                         // 프로젝트명
  description?: string;                  // 설명 (선택사항)
  ownerId: string;                      // 소유자 ID
  collaborators: ProjectCollaborator[];  // 협업자 목록
  status: ProjectStatus;                // 프로젝트 상태
  visibility: ProjectVisibility;        // 가시성
  tags: string[];                       // 태그 목록
  createdAt: Date;                      // 생성일
  updatedAt: Date;                      // 수정일
  settings: ProjectSettings;            // 프로젝트 설정
}

ProjectStatus 열거형

enum ProjectStatus {
  DRAFT = 'draft',       // 초안
  ACTIVE = 'active',     // 활성
  ARCHIVED = 'archived', // 보관됨
  DELETED = 'deleted'    // 삭제됨
}

개발

의존성 설치

npm install

빌드

npm run build

개발 모드 (watch)

npm run dev

정리

npm run clean

라이선스

MIT License

기여하기

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

지원

문제가 있거나 제안사항이 있으시면 Issues에 등록해 주세요.