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

@naporin0624/flat-shop-ui

v3.5.5

Published

## セットアップ

Downloads

533

Readme

UI 開発基盤

セットアップ

[email protected]:naporin0624/flat-kobo-makeshop-design.git
cd flat-kobo-makeshop-design/
docker-compose up -d
npm install
npm run dev # <-- これで javascript の開発できるようになる

localhost:8080 でアクセス

一部 Linux 環境で Permission Error が発生する件

一部の Linux 環境ではコンテナ内の Apache 実行ユーザーをコンテナ実行ユーザーに合わせる必要があります。

id
> uid=xxxx(user) gid=xxxx(user)

この uid と gid を .env に記述

UID=xxxx
GID=xxxx

ディレクトリ構成

html/theme/data/以下にデータファイル(.json)、html/theme/templates/以下にテンプレートファイル(.tpl)を配置します。

  • html/ : Apache document root
    • theme/
      • data/ : テンプレートから呼び出すデータ
        • data1.json
        • data2.json
        • data3.json
        • ...
      • templates/ : テンプレートファイル
        • module/ : モジュール (テンプレートから{$module.header}等で呼び出し)
          • header.tpl
          • footer.tpl
          • side_bar.tpl
          • ...
        • page1.tpl
        • page2.tpl
        • page2.tpl
        • ...

theme/以下のファイルには/以下でアクセス可能です。(例: theme/assets/style.css -> /assets/style.css)

サンプル

データファイル (html/theme/data/data.json)

{
  "page": {
    "title": "デザインテンプレート開発環境",
    "css": "/assets/style.css"
  },
  "shop": {
    "name": "ショップ名"
  }
}

上記 page と shop は別ファイルに分割することも出来ます。

data1.json

{
  "page": {
    "title": "デザインテンプレート開発環境",
    "css": "/assets/style.css"
  }
}

data2.json

{
  "shop": {
    "name": "ショップ名"
  }
}

テンプレート (html/theme/templates/top.tpl)

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8" />
    <title><{$page.title}></title>
    <meta name="viewport" content="width=device-width,initial-scale=1" />
    <link rel="stylesheet" href="<{$page.css}>" />
  </head>
  <body>
    <{$module.header}>
  </body>
</html>

テンプレートモジュール (html/theme/templates/module/header.tpl)

<h1><{$shop.name}></h1>

License

MIT License

release

機能修正・追加ごとに以下のコマンドを実行してください。

npx changeset add

それぞれの変更に対して、以下のように変更の種類を選択してください。

  • patch
    • バグ修正
  • minor
    • 機能追加
  • major
    • 破壊的変更
    • 特大リリース

変更の種類を選択すると、CHANGELOG.md に記載される変更内容の入力が求められるので、変更内容を記載してください。