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

hacci

v0.4.1

Published

simple and tiny frontend framework

Downloads

80

Readme

Hacci

Hacci[hɑʃiː] is a simple and tiny JavaScript helper for web frontend work.

DEMO

DEMO [https://metalsm7.github.io/hacci/demo]

Install

NPM 사용하는 경우

$ npm install hacci

html에서 등록하는 경우

<script type="text/javascript" src="hacci.min.js"></script>

How to use

Constructor option

    el                      Target HTMLElement
    template                el로 지정된 Element에 등록할 template
                            사용시 현재 상태의 하위 Element는 template로 대체됩니다.
    data                    인스턴스 내부에서 사용할 data 정의
    method                  인스턴스 내부에서 사용할 function 정의
                            정의된 function 내부의 this는 현재 인스턴스를 바라봅니다.
                            (Array Function 포함)
    created                 인스턴스 생성시 호출되는 function 정의
    mounted                 인스턴스 생성 후 attribute 들에 대한 설정 완료 후 호출되는 function 정의
                            mounted 이후에 정상적으로 모든 기능의 사용이 가능합니다.
    destroyed               .destroy() 호출 또는 el로 지정된 Element 가 제거될때 호출되는 function 정의

Methods

    mount                   인스턴스 생성 후 .mount() 호출이 되어야 정상적으로 동작합니다.
    destroy                 인스턴스 제거
                            template가 사용된 경우 해당 template는 제거됩니다.

Attributes

    hc:ref                  해당 Element의 reference 등록
    hc:model                해당 Element의 model 지정
                                - INPUT[type=radio]
                                - INPUT[type=checkbox]
                                - INPUT[type=text]
                                - TEXTAREA[type=textarea]
                                - SELECT[type=select-one]
                                - SELECT[type=select-multiple]
    hc:if                   해당 Element의 model값이 true인 경우만 해당 Element를 사용함
    hc:neither              해당 Element의 model값이 false인 경우만 해당 Element를 사용함
    hc:disabled             해당 Element의 disabled 상태 지정
    hc:html                 innerHTML 처리
    hc:text                 innerText 처리
    hc:change               해당 Element의 model값이 변경되는 경우 호출
                            적용 대상:
                                - INPUT[type=radio]
                                - INPUT[type=checkbox]
                                - SELECT[type=select-one]
                                - SELECT[type=select-multiple]
    hc:input                해당 Element의 model값이 변경되는 경우 호출
                            적용 대상:
                                - INPUT[type=text]
                                - TEXTAREA[type=textarea]
    hc:click                click Event 발생되는 경우 호출
    hc:scroll               scroll Event 발생되는 경우 호출
    hc:scroll.hit.top       scroll Event 발생 중 스크롤이 맨위에 도달하는 경우 호출
    hc:scroll.hit.bottom    scroll Event 발생 중 스크롤이 맨아래에 도달하는 경우 호출

Interpolation

    {{}}                    괄호안의 식에 대한 결과를 문자열로 대체

License

MIT