Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@pet-adopt/plugin-sdk

Latest version: v0.2.0

Overview

Last scanned
29 Nov 2026
Published
29 Nov 2026
npm package Publisher: muhammadarifftaha
0 Stars
0 Forks
4 Versions
TypeScript Repo language

Scan summary

@pet-adopt/plugin-sdk was last scanned on 29 Nov 2026 at version 0.2.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 4 versions, all published within 2 days (28 and 29 Nov 2026).
  • Findings: No rules fired in version 0.2.0.

Versions

4 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.2.0 LATEST 29 Nov 2026 No rules fired
0.1.1 28 Nov 2026 No rules fired
0.1.0 28 Nov 2026 No rules fired
0.0.0-stage 28 Nov 2026 Not shown

No rules fired in 0.2.0

Findings

Findings for v0.2.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.2.0; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

@pet-adopt/plugin-sdk

Types and helpers for writing plugins for Pet Adopt, an open-source storefront for adoptable pets.

A plugin can add admin screens, dashboard cards, page builder blocks, its own database tables, default email templates and an email sender. This package is everything a plugin imports: it contains no part of the site itself.

The full guide to writing a plugin is in the docs.

Install

List it as a peer dependency, so your plugin uses the same copy as the site it is added to, and as a dev dependency to build against:

{
  "peerDependencies": {
    "@pet-adopt/plugin-sdk": "^0.1.0"
  },
  "devDependencies": {
    "@pet-adopt/plugin-sdk": "^0.1.0"
  }
}

A plugin that bundles its own copy would have its errors go unrecognised by the site, because they are matched by class.

react and react-icons are peer dependencies. drizzle-orm is one too, and is only needed by a plugin with its own tables.

A small plugin

import { definePlugin } from '@pet-adopt/plugin-sdk'

export const hello = definePlugin(() => ({
  name: 'hello',
  title: 'Hello',
  description: 'Adds one screen to the admin.',
  screens: [
    {
      path: '',
      title: 'Hello',
      nav: { label: 'Hello', Icon: { viewBox: '0 0 24 24', paths: ['M12 2 2 22h20z'], outline: true } },
      component: ({ user }) => <p>Hello {user.name}.</p>,
    },
  ],
}))

The site lists it in apps/web/pet-adopt.config.ts:

import { defineConfig } from '@pet-adopt/plugin-sdk'
import { hello } from 'pet-adopt-plugin-hello'

export default defineConfig({ plugins: [hello()] })

Page builder blocks

A block has two halves. The block itself (definePluginBlock: its name, options and how it is drawn) is loaded by the browser, so it lives in a module of its own that imports nothing server-only, and a site lists it in apps/web/pet-adopt.blocks.ts:

import { defineBlocks } from '@pet-adopt/plugin-sdk'
import { helloBlock } from 'pet-adopt-plugin-hello/block'

export default defineBlocks([helloBlock])

Its loader (blockLoaders on the plugin) runs on the server and returns what the block shows. Blocks are styled with plain CSS on the site's theme variables (var(--primary), var(--surface), var(--radius)...), because the public site does not load Tailwind; start every selector with a class of your own.

What is in it

  • definePlugin, defineConfig: declare a plugin and a site's list of plugins.
  • definePluginBlock, defineBlocks: page builder blocks and a site's list of them.
  • definePluginStorage: a plugin's own tables and migrations, for SQLite and PostgreSQL. Table names start with the plugin's prefix (pluginTablePrefix).
  • host(): the site's services: permission checks, rate limits, templated email, the activity log, encrypted secrets, the privacy policy, the site's address and time zone.
  • Roles and permissions: ROLES, can, accessPermission.
  • Errors and results: UserError, ValidationError, ActionResult.
  • Helpers: formatWhen and the time zone functions, foldText for search, csvCell for safe CSV.

Rules for plugins

  • Depend only on this package (and the site's UI package, @pet-adopt/ui, for admin screens). Never import the site.
  • Check permissions in every server action with host().requirePermission(...), wrapped in host().run(...).
  • Log errors with host().logError, never the error object: a database error can carry the values it was given.
  • Ship compiled JavaScript when you publish a plugin to npm, and keep 'use client' and 'use server' as the first line of the files that have them (plain tsc, file by file, does). The guide says how.

Two plugins published from the repository show a full plugin: @pet-adopt/plugin-form-builder and @pet-adopt/plugin-instagram-feed. adoption-tips is a small example to copy (not on npm).

Versions

The package is below 1.0, so a minor version may change the API. Pin the minor version you built against.

Licence

MIT

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @pet-adopt/plugin-sdk

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Microsoft's Official agent framework Hijacked
AI & VibeSec

BREAKING: Hijacked Releases of Microsoft’s Official agent-framework Steals Azure and CI Credentials

Vulnerability Insights

Compromised Claude Code extensions (versions 2.1.312 & 2.1.313) in Cursor try to install a backdoor

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

Frame 2085668439 (1)
Group 1261154229