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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@ehfuse/kakao-map

v1.1.0

Published

React components for Kakao Maps

Readme

Kakao Map React Component

React에서 Kakao Maps API를 쉽게 사용할 수 있는 컴포넌트 라이브러리입니다.

특징

  • 🗺️ 선언적 API - React 컴포넌트로 지도를 쉽게 구성
  • 🎯 TypeScript 지원 - 완벽한 타입 정의 제공
  • 🪝 강력한 Hooks - useKakaoMap으로 모든 기능을 하나의 훅으로 사용
  • 🎨 커스터마이징 - 마커, 오버레이 등 자유롭게 커스터마이징
  • 가벼운 의존성 - React와 React-DOM만 필요
  • 📦 클러스터링 - 많은 마커를 효율적으로 처리

설치

npm install @ehfuse/kakao-map
# or
yarn add @ehfuse/kakao-map
# or
pnpm add @ehfuse/kakao-map

빠른 시작

import { Map, MapMarker } from "@ehfuse/kakao-map";

function App() {
    return (
        <Map
            center={{ lat: 37.5665, lng: 126.978 }}
            level={3}
            style={{ width: "100%", height: "400px" }}
        >
            <MapMarker position={{ lat: 37.5665, lng: 126.978 }} />
        </Map>
    );
}

주요 기능

컴포넌트

  • Map - 지도 표시
  • MapMarker - 마커 표시
  • InfoWindow - 정보창
  • CustomOverlayMap - 커스텀 HTML 오버레이

  • useKakaoMap - 지도 기능과 상태 관리를 위한 All-in-One 훅
const { map, state, searchAddress, createMarker } = useKakaoMap();

주요 API

| 기능 | 설명 | | --------------------------------- | ---------------------- | | searchAddress(address) | 주소 → 좌표 검색 | | searchPlace(keyword) | 장소 검색 | | coord2Address(position) | 좌표 → 주소 변환 | | getDistance(pos1, pos2) | 두 지점 간 거리 계산 | | createMarker(position, options) | 프로그래매틱 마커 생성 |

문서

예제

마커 클러스터링

<Map clusterer={true}>
    {markers.map((marker) => (
        <MapMarker key={marker.id} position={marker} />
    ))}
</Map>

주소 검색

import { useState } from "react";
import { useKakaoMap } from "@ehfuse/kakao-map";

const { searchAddress } = useKakaoMap();
const [center, setCenter] = useState({ lat: 37.5665, lng: 126.978 });

const handleSearch = async () => {
    const result = await searchAddress("서울시청");
    setCenter({ lat: result.lat, lng: result.lng });
};

커스텀 마커

<MapMarker
    position={{ lat: 37.5665, lng: 126.978 }}
    image={{
        src: <NumberedMarker number={1} color="#ff0000" />,
        size: { width: 36, height: 36 },
    }}
/>

더 많은 예제는 예제 문서를 참고하세요.

TypeScript 지원

import type { KakaoLatLng, MapProps, MapMarkerProps } from "@ehfuse/kakao-map";

완벽한 타입 정의와 자동 완성을 제공합니다.

라이선스

MIT License

기여하기

이슈와 PR은 언제나 환영합니다!

링크