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

placet

v0.0.1

Published

Declarative authorization library — simplified IAM-style policy evaluation (concept phase; placeholder release)

Readme

placet

宣言的な権限管理ライブラリ — simplified IAM-style authorization(コンセプト策定中)

placet は、AWS IAM の権限モデル(principal への policy アタッチ、explicit deny の優先、implicit deny)を簡略化し、一般のアプリケーションに導入できるようにすることを目指す権限管理ライブラリです。評価器の内部構造は XACML のアーキテクチャ(PEP / PDP / PIP / PAP の役割分離)を参考にしています。

現在はコンセプト策定フェーズであり、実装はまだありません。設計の全体と各判断の経緯は docs/concept.md にまとまっています。

モデルの概要

  • アクセスユーザーは、user:42 / role:editor / tenant:acme のような複数の principal(主体の「面」)を持ち、アプリケーション DB の情報から導出される
  • 操作は post:view のような action で表され、action に対する allow / deny の集合が policy として principal にアタッチされる
  • 決定は deny-overrides(1 つでも deny があれば拒否)と implicit deny(どこにもマッチしなければ拒否)に固定され、常に「どの policy のどの statement が決め手か」という根拠つきで返される
policies:
  - name: post-editor
    statements:
      - effect: allow
        actions: [post:create, post:update, post:delete]

  - name: suspended
    statements:
      - effect: deny
        actions: ["*"]

attachments:
  - principal: role:editor
    policies: [post-editor]
  - principal: flag:suspended
    policies: [suspended]

role:editor を持つユーザーの post:update は許可され、凍結されたユーザー(flag:suspended の面を持つユーザー)は allow の有無にかかわらず全操作が拒否されます。

設計上の特徴

  • 結合則は deny-overrides のみ — 設定による差し替えを提供しない。Policy を読めば結果が一意に予測できる
  • 動的な状態は principal 導出で吸収する — Policy と attachment は静的でデプロイ時に固定。実行時に変わるのはユーザーの principal 集合だけ
  • リソース個体認可は関係 principal(簡易 ReBAC) — 「作成者本人のみ編集可」を rel:owner のような関係の面として表現し、評価器の仕様は変えない
  • 一覧フィルタリングを仕様に含む — 「閲覧できるものだけを返す」を、関係ごとの scope の和・差として DB クエリに合成する
  • 言語非依存の 3 層構造 — コア仕様(フォーマット + 評価セマンティクス + 適合性テスト)/ 言語ランタイム / ORM・フレームワークアダプタ

ステータス

  • [x] コンセプトと設計判断の整理(docs/concept.md
  • [ ] 正規形の JSON Schema
  • [ ] リファレンス実装(Ruby ランタイム + 適合性 fixture)

名前について

placet はラテン語で「可とする」。大学や教会の採決で用いられる placet / non placet(可 / 否)に由来します。読みは「プラケット」です。