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

sun-doc-generator

v0.0.5

Published

chat gpt api를 활용한 문서화 도구

Downloads

28

Readme

Docs generator

chat gpt 를 활용한, 3초안에 코드 문서화 하기 🖊️

더 효율적으로 문서화를 하고 싶은 사람들을 위한 라이브러리

명령어를 입력하여 코드를 읽어 chat gpt api를 활용하여 md 문서를 생성해줍니다.

  • github repo url : https://github.com/liswktjs/doc-generator
  • npm url : https://www.npmjs.com/package/sun-doc-generator

사용법

  1. root의 env에 CHAT_GPT_API_KEY를 추가하세요
CHAT_GPT_API_KEY=your-chat-gpt-api-key
  1. package.json의 script에 명령어를 추가해주세요
"scripts" : {
  "docs": "gen docs"
}
  1. vscode 터미널에 npm run docs "[문서화 하고자 하는 코드 경로]" "[코드에 대한 간단한 설명]" 을 실행하세요
npm run docs "./src/test/sample.tsx" "sample description"
  1. 잠시 기다리면, 입력한 파일 경로 하위에 코드에 대한 설명이 적힌 md 파일이 생성됩니다! 🧞

알림

  • 이 라이브러리는 chat gpt api key를 제공하지 않습니다. 개인의 chat gpt api key를 발급받아 사용해주세요
  • prompt 혹은 문서의 format을 수정하고 싶으시다면, ai 폴더하위의 prompt.ts에서 수정을 해주세요. 수정 후에는 다시 빌드 하여 사용하여야 합니다
  • chat gpt 의 gpt-4o-mini 모델을 활용합니다.