chore(ENG-3366): add StackOne links to the npm listing + README

Merged
HI
1mo ago
+23-4

What

Add links from Defender's npm listing (and README) to StackOne properties to drive referral/SEO traffic. Closes ENG-3366.

(Supersedes #103, which was auto-closed when its branch was renamed from hiskias/… to chore/….)

package.json

  • homepage → https://www.stackone.com/platform/prompt-injection-guard/?utm_source=npm&utm_medium=listing&utm_campaign=homepage
  • repository → git+https://github.com/StackOneHQ/defender.git
  • bugs → GitHub issues

These three fields were previously missing, so npm showed no homepage/repo/bugs links.

README

  • Banner is now clickable → the prompt-injection-guard page
  • New site · defender.stackone.com badge in the badge row
  • New "Defender by StackOne" section (before License) linking the dedicated product site (defender.stackone.com), the overview page, and the platform (stackone.com)

All links are UTM-tagged (utm_source/utm_medium/utm_campaign) for attribution.

Note on the canonical URL: the ticket specified www.stackone.com/defender, but that URL 301-redirects to /platform/prompt-injection-guard/ and the redirect drops the query string, so UTM attribution was lost. All marketing links point at the canonical target directly (200, no redirect) so the UTMs survive. (defender.stackone.com and www.stackone.com do not redirect.)

Outside this diff

  • GitHub repo Website field set to https://defender.stackone.com?utm_source=github&utm_medium=repo&utm_campaign=website (was empty).

Verification

  • package.json parses; homepage/repository/bugs read back correctly.
  • All link targets return HTTP 200 with the query string intact (no redirects).
  • Adversarial review run: base64 badge logo decodes to a benign shield SVG and renders; no leakage; valid JSON. Only real finding (UTM-drop on redirect) fixed in the second commit.
  • No code paths touched — docs/metadata only.

🤖 Generated with Claude Code


Summary by cubic

Adds StackOne links to Defender's npm listing and README to drive referral and SEO traffic.

  • Adds homepage, repository, and bugs fields to package.json, which npm previously showed as missing.
  • Makes the README banner clickable, adds a defender.stackone.com site badge, and a "Defender by StackOne" section linking the product site, overview page, and platform.
  • All links carry UTM parameters; marketing links point at the canonical prompt-injection-guard URL because the www.stackone.com/defender redirect drops the query string.