PortalJS is a framework for building data portals that present searchable datasets through a home page, catalog, and dataset showcase. It is for teams that want to choose a data backend, scaffold a Next.js portal, load CSV or JSON data, connect services such as CKAN, and deploy the result. The catalogue entries are agent commands, skills, instructions, and a plugin that guide portal creation and data loading.
Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/datopian/portaljsnpx agentmods add commands/datopian/portaljs/portaljs-connect-ckanWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/commands/datopian/portaljs/portaljs-connect-ckan)<a href="https://agentmods.dev/commands/datopian/portaljs/portaljs-connect-ckan"><img src="https://agentmods.dev/badge/commands/datopian/portaljs/portaljs-connect-ckan/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/commands/datopian/portaljs/portaljs-connect-ckan"><img src="https://agentmods.dev/badge/commands/datopian/portaljs/portaljs-connect-ckan.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00051 | $0.05623 |
| Opus 5.5 | $0.00020 | $0.02249 |
| Sonnet 5.5 | $0.00010 | $0.01125 |
| Haiku 4.5 | $0.00005 | $0.00562 |
Grade A, and why
portaljs-connect-ckan scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
curl -s -m 20 "CKAN_URL/api/3/action/package_search?rows=1" How it starts
The opening of the file, as written. The whole thing — 479 lines — stays where its author put it; the contents beside it link to each section on GitHub.
/portaljs-connect-ckan
Connect an existing portaljs-catalog portal to a live CKAN backend. The portal stops
reading the static datasets.json manifest (and files in /public/data/) and instead
feeds its two data surfaces — the /search catalog and the /@<namespace>/<slug>
showcases — straight from a CKAN instance's REST API (package_search / package_show)
through a tiny generated fetch client. Output is plain, editable Next.js code with no
runtime dependency — no opaque framework wiring.
Why a fetch client, not
@portaljs/ckan? That package's bundle wires React UI components to React 18 internals (ReactCurrentDispatcher) and crashes at import under the template's React 19 — even server-side, where this skill imports it. The CKAN client class is locked inside that same module, so it can't be used in isolation. A ~40-linefetchwrapper covers the two REST actions this skill needs (package_search,package_show), is server-side only, ships zero client bytes, and has no React coupling.
Use this for the "decoupled / any backend" path: the user has a CKAN data management system (their own or a public one) and wants a browseable portal in front of it.
You can run this right after /portaljs-new-portal. A fresh portal ships with a few sample
datasets so it builds and renders immediately — you do NOT need to hand-author a static
dataset list first. If the user says up front they want a CKAN backend, scaffold with the
sample data, then run /portaljs-connect-ckan to swap the source over to CKAN. Only a CKAN base
URL is required.
The generated pages fetch CKAN server-side in getStaticProps/getStaticPaths, so the
catalog is pre-rendered at build time and the site can be statically deployed.
Required input — ask, don't error
- CKAN base URL (required) — e.g.
https://demo.dev.datopian.com. The root of the CKAN instance; the skill appends/api/3/action/...itself. Must be publicly reachable. - Org filter (optional) — one or more CKAN organization names to restrict the catalog to.
- Group filter (optional) — one or more CKAN group names to restrict the catalog to.
- Portal directory (optional) — path to the portal project (default: current directory).
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago Changed · +24 lines ec9603ba142f
- 3mo ago First seen · 455 lines · 51 tokens per session scan A 1d58296d5c1c
portaljs-connect-ckan is a command published in the GitHub repository datopian/portaljs (2,372 stars, last pushed 1mo ago), licensed MIT. It adds 51 tokens to every session and 5,623 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
portaljs-connect-ckan compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| portaljs-connect-ckandatopian/portaljs | Command | 2.4k | 1mo ago | MIT | A | 51 | Claude Code |
| design-solutionHoangNguyen0403/agent-skills-standard | Command | 598 | today | MIT | A | 0 | Claude Code |
| add-endpointvstorm-co/full-stack-ai-agent-template | Command | 2.0k | 4d ago | MIT | A | 9 | Claude Code |
| diagnose-ssedatabayt/hogwarts | Command | 19 | today | none | A | 0 | Claude Code |
| apidatabayt/hogwarts | Command | 19 | today | none | A | 6 | Claude Code |
| server-actionpruthvinathJV/nextjs-claude-code-kit | Command | 2 | 9mo ago | MIT | A | 0 | Claude Code |
| sparc-supabase-adminf-amine/vibe-stack | Command | 19 | 5mo ago | MIT | A | 32 | Claude Code |