pi-seo
v1.0.0
Published
SEO assistant extension for pi powered by Google Lighthouse audits and actionable recommendations.
Maintainers
Readme
pi-seo
SEO assistant extension for pi, powered by Google Lighthouse. It adds a main seo_lighthouse_report tool that runs Lighthouse in headless Chrome and returns an extensive, prioritized website improvement report.
Features
- Runs Google Lighthouse from the
lighthousenpm package - Launches headless Chrome via
chrome-launcher - Reports SEO, performance, accessibility, and best-practices scores
- Generates a prioritized SEO improvement action plan
- Highlights crawl/indexing, metadata, content, accessibility, and performance issues
- Includes a lightweight fallback
seo_checkmetadata tool
Requirements
Lighthouse needs Chrome/Chromium installed on the machine running pi.
Install
pi install npm:pi-seoOr try it without installing:
pi -e npm:pi-seoFor local development from this folder:
npm install
pi -e .Usage
Ask pi:
Run a Lighthouse SEO report for https://example.com and improve the website based on the findingsThe main tool is:
seo_lighthouse_reportIt accepts:
url— website URL to auditcategories— optional Lighthouse categories, defaults toseo,performance,accessibility,best-practicesformFactor—mobileordesktop, defaults tomobileincludeRawReport— include the full Lighthouse JSON in tool details
There is also a quick metadata-only tool:
seo_checkAnd a helper command:
/seoPublishing to npm
Update the GitHub URLs in
package.json.Log in to npm:
npm loginCheck package contents:
npm run pack:dry-runPublish:
npm publish --access public
Listing on pi.dev
The package is discoverable on pi.dev/packages when published to npm with the pi-package keyword. The package manifest includes:
{
"keywords": ["pi-package"],
"pi": {
"extensions": ["./extensions"]
}
}License
MIT
