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

byzip-v2-sdk

v1.0.35

Published

분양모음집 V2 SDK - 프론트엔드와 백엔드 간 타입 통일을 위한 TypeScript SDK

Readme

ByZip V2 SDK

분양모음집 V2 프로젝트의 프론트엔드와 백엔드 간 타입 통일을 위한 TypeScript SDK입니다.

특징

  • 런타임 의존성 없음 - 순수 TypeScript 타입 정의만 제공
  • 가벼운 번들 - 추가 패키지 설치 불필요
  • 타입 안전성 - 완전한 TypeScript 타입 체크 지원
  • 범용 호환성 - 모든 JavaScript/TypeScript 환경에서 사용 가능
  • 자동 업데이트 - main 또는 dev 브랜치 push 시 자동 배포

설치

npm install byzip-v2-sdk

사용 예시

공통 응답 처리

import {
  BaseResponseDto,
  createSuccessResponse,
  createErrorResponse,
} from 'byzip-v2-sdk';

// 성공 응답 생성
const successResponse = createSuccessResponse(
  { message: '처리 완료' },
  '요청이 성공적으로 처리되었습니다.',
);

// 에러 응답 생성
const errorResponse = createErrorResponse('처리 중 오류가 발생했습니다.');

// 응답 타입 처리
const handleResponse = <T>(response: BaseResponseDto<T>) => {
  if (response.success) {
    console.log('성공:', response.data);
  } else {
    console.error('실패:', response.message);
  }
};

자동 배포

이 패키지는 백엔드 저장소에 push할 때마다 GitHub Actions를 통해 자동으로 NPM에 배포됩니다.

배포 프로세스

  1. 백엔드 코드의 DTO 타입 변경
  2. main 또는 dev 브랜치에 push
  3. GitHub Actions Publish SDK to NPM 워크플로우 자동 실행
  4. scripts/extract-types.js로 타입 추출 (클래스 → 인터페이스 변환)
  5. SDK 빌드 (tsc)
  6. NPM 최신 버전 대비 패치 버전 자동 증가
  7. NPM에 자동 배포

인증 방식

  • NPM Granular Access Token 사용 (NPM_TOKEN GitHub Secret)
  • 토큰 만료: 90일 주기 갱신 필요
  • GitHub Repository Settings > Secrets > NPM_TOKEN에 등록

프론트엔드 개발 워크플로우

백엔드 타입 변경 → push → SDK 자동 배포 → 프론트엔드에서 npm update byzip-v2-sdk

로컬 개발

타입 추출

npm run sdk:extract

빌드

npm run sdk:build

수동 배포

npm run sdk:publish

라이선스

ISC


변경 로그

  • 모든 DTO 클래스를 인터페이스로 변환
  • 런타임 의존성 제거 (@nestjs/swagger 제거)
  • 타입 안전성 향상
  • 번들 크기 최적화
  • GitHub Actions 자동 배포 (NPM Granular Access Token)