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

@ehfuse/photo-editor-ui

v1.3.5

Published

@ehfuse/photo-editor 의 기본 제공 UI 키트(뷰티바, 컬러 피커, 슬라이더, 아이콘, 컨트롤러).

Readme

@ehfuse/photo-editor-ui

@ehfuse/photo-editor 의 기본 제공 UI 키트. 뷰티바, 도구 피커, 컬러 피커, 슬라이더, 아이콘, 편집기 컨트롤러를 담는다.

기본 사용법은 docs/ko/getting-started.md, AI 편집 연동은 docs/ko/ai-edit.md 를 참고한다.

설치

npm install @ehfuse/photo-editor-ui @ehfuse/photo-editor

peerDependencies: @ehfuse/photo-editor, @ehfuse/forma, @mui/material, @emotion/react, @emotion/styled, react, react-dom.

사용

import { BeautyBar, ToolButtons, useEditorController } from "@ehfuse/photo-editor-ui";

주요 export

  • BeautyBar — 탭별 보정 기능 바(예쁜 얼굴/몸매/메이크업/AI 편집 등)
  • EditorCanvas — 사진 영역(캔버스 + 원본 비교 + AI 오버레이). onAiEdit 으로 AI 편집 어댑터를 주입한다.
  • ToolButtons — 도구 탭(자르기/회전/원근/밝기/대비/필터 등)
  • BeautySlider / BrushBar / CropBar — 하단 조작 바
  • FilterPicker / ColorPicker / BackgroundPicker — 피커류
  • useEditorController — 편집기 상태·폼 컨트롤러

AI 편집

AI 편집(표정/의상/배경)은 라이브러리가 AI 서버를 직접 호출하지 않는다. API 키·엔드포인트를 모르는 대신, 소비처가 AiEditFn 어댑터를 만들어 <EditorCanvas onAiEdit={...} /> 로 주입한다.

import { EditorCanvas, useEditorController } from "@ehfuse/photo-editor-ui";
import type { AiEditFn } from "@ehfuse/photo-editor";

// 백엔드 프록시(예: /v1/ai-image/edit)를 호출하는 어댑터. 키는 서버가 보관한다.
const aiEdit: AiEditFn = async (req) => {
    const res = await fetch("/v1/ai-image/edit", {
        method: "POST",
        headers: { "Content-Type": "application/json" },
        body: JSON.stringify(req), // { image, prompt, mode, option? }
    });
    const json = await res.json();
    if (!res.ok || !json.ok) throw new Error(json?.error ?? "AI 편집 실패");
    return { image: json.data.image };
};

function App() {
    const controller = useEditorController();
    return <EditorCanvas controller={controller} editorRef={ref} onAiEdit={aiEdit} />;
}
  • onAiEdit 을 넘기지 않으면 AI 탭은 보이되 "시작" 을 눌러도 실행되지 않는다.
  • 사용자가 표정/의상/배경을 고르고 시작 → 프롬프트 확인 다이얼로그(편집 가능) → 확인 시 onAiEdit 1회 호출.
  • 응답 동안 사진 위에 스피너가 돌고, 결과 이미지로 교체(되돌리기 가능)된다.

자세한 설정·백엔드 프록시 예제는 docs/ko/ai-edit.md 참고.

라이선스

UNLICENSED (비공개 패키지)