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

create-daftarai-plugin

v0.1.2

Published

Scaffold a Daftarai plugin (capability-injected, sandboxed, sign-pipeline-ready) from an interactive CLI. Used via `npm create daftarai-plugin@latest <id>` or `pnpm create daftarai-plugin <id>`.

Downloads

293

Readme

create-daftarai-plugin

Scaffold a Daftarai plugin from an interactive CLI.

# pnpm
pnpm create daftarai-plugin my-plugin

# npm
npm create daftarai-plugin@latest my-plugin

# Or via npx directly
npx create-daftarai-plugin@latest my-plugin

The scaffold prompts for:

  • Plugin id (kebab-case)
  • Display name (bilingual ar+en)
  • Description (bilingual ar+en)
  • Cultural category (zakat / hijri / prayer-times / fasting / halal / none)
  • Required capabilities (from the v1.0 closed vocabulary)
  • Agency mode (yes/no)
  • MCP exposure (yes/no)

Output is a working plugin folder. pnpm install && pnpm test passes immediately on the generated skeleton.

What you get

my-plugin/
  manifest.json              v3 schema; auto-validates through pluginManifestV3Schema
  handler.ts                 capability-injected handler with the 3-branch rejection pattern
  portal/page.tsx            SSR React component (renders inside an iframe sandbox)
  i18n/{ar,en}.json          bilingual strings (greeting + 3 error keys + disclaimer)
  tests/handler.spec.ts      unit-test skeleton with capability mocks pre-stubbed
  tests/integration.spec.ts  integration-test skeleton (Postgres-backed; describe.skip)
  tests/dialect-fixtures.ts  MSA + Gulf + Levantine + Egyptian + Maghrebi seed inputs
  README.md                  bilingual; covers build/sign/submit
  package.json               workspace-style deps + type-check + test scripts

When you select a cultural category, the scaffold adds:

my-plugin/
  methodology-import.ts      wires @daftarai/methodology + applyDisclaimer helper
  conformance-checklist.md   per-category author checklist for cultural-review submission

When you opt into agency mode, the scaffold adds:

my-plugin/
  tenant-helpers.ts                buildTenantContext + assertTenantId runtime guard
  portal-tenant-context.tsx        agency-view banner when userId ≠ tenantId

Developer docs

Full Daftarai Plugin SDK v3 docs (bilingual ar+en) live in the Daftarai monorepo at docs/sdk/:

License

MIT — see LICENSE.

Issues + support

File issues at github.com/mjaberster/daftarai/issues.