TYPESCRIPT · ASTRO DEV TOOLBAR
GitHub ↗
astro-dev-content-linter — On-Device Editorial Readability & Voice Linter for Astro
astro-dev-content-linter is an Astro Dev Toolbar utility that evaluates blog posts and documentation for reading grade level, passive voice, and brand style compliance. It runs entirely offline inside Chrome to highlight dense paragraphs and generate clearer rewrites before you publish.
$ npm install -D astro-dev-content-linter
01. Architectural Specifications
STATUS: PRODUCTION READY
[ 01 // CAPABILITY ]
Reading Level Scoring
Computes Flesch Reading Ease and Flesch-Kincaid grade levels for each section.
[ 02 // CAPABILITY ]
Inline Visual Badges
Underlines passive voice and corporate jargon with hoverable Gemini Nano suggestions.
[ 03 // CAPABILITY ]
Brand Voice Alignment
Enforces custom terminology rules and voice directives with real-time editorial health scoring.
02. Implementation & Usage
BUN / ASTRO 5+
// Installation
CLI
bun add astro-dev-content-linter
# or
pnpm add astro-dev-content-linter
// Configuration
astro.config.mjs
// astro.config.mjs
import { defineConfig } from "astro/config";
import devContentLinter from "astro-dev-content-linter";
export default defineConfig({
integrations: [
devContentLinter({
maxReadingLevel: 9,
disallowPassiveVoice: true,
forbiddenTerms: ["ninja", "rockstar", "guru", "magical"]
})
]
});
// Chrome Built-in AI Prerequisites
- 1. Open
chrome://flagsin Google Chrome 128+ - 2. Set
#prompt-api-for-gemini-nanoto Enabled - 3. Set
#optimization-guide-on-device-modelto Enabled ByPassPerfRequirement - 4. Restart Chrome and verify model status at
chrome://components