You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

astro-dev-toolbar-json-ld

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

astro-dev-toolbar-json-ld

Astro Dev Toolbar plugin that detects, displays, and validates JSON-LD structured data on your pages

latest
Source
npmnpm
Version
0.1.1
Version published
Maintainers
1
Created
Source

astro-dev-toolbar-json-ld

An Astro Dev Toolbar plugin that detects, displays, and validates JSON-LD structured data on your pages during development.

Features

  • Detects all <script type="application/ld+json"> blocks on the current page
  • Displays the parsed JSON-LD in a readable format in the dev toolbar
  • Validates against common Schema.org types: Article, Product, FAQPage, BreadcrumbList, Event, Recipe, Organization, LocalBusiness, Person, WebSite, WebPage
  • Highlights <script> elements on the page
  • Zero runtime dependencies — validation runs entirely client-side

Installation

npm install astro-dev-toolbar-json-ld

Usage

Register the integration in your astro.config.mjs:

import { defineConfig } from "astro/config";
import jsonLdDevToolbar from "astro-dev-toolbar-json-ld";

export default defineConfig({
  integrations: [jsonLdDevToolbar()],
});

The JSON-LD inspector icon will appear in the Astro Dev Toolbar when running astro dev.

Supported Schema Types

TypeRequired fields validated
Article / NewsArticle / BlogPostingheadline, author, datePublished
Productname
FAQPagemainEntity
BreadcrumbListitemListElement
Eventname, startDate
Recipename, recipeIngredient, recipeInstructions
Organization / LocalBusinessname
Personname
WebSite / WebPagename

License

MIT

Keywords

astro

FAQs

Package last updated on 01 Mar 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts