Scan your whole stack
From OX Research Newsroom
Are you using @apostrophecms/seo?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v1.7.1
@apostrophecms/seo was last scanned on 14 Oct 2026 at version 1.7.1. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 1.7.1 LATEST | 14 Oct 2026 | No rules fired |
| 1.7.0 | 30 Sep 2026 | No rules fired |
Findings for v1.7.1. 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 1.7.1; other versions have their own rules, not their own score.
0 CRITICAL 1 HIGH 0 MEDIUM 0 LOW
The publisher’s own README, as collected from the registry.
Ensure your content gets found by search engines and AI systems with comprehensive SEO management for ApostropheCMS. Essential meta fields, Google Analytics integration, automated robots.txt and llms.txt generation — everything you need to boost your search rankings, control AI training usage, and drive organic traffic.
This version requires the latest ApostropheCMS. When adding this module to an existing project, run npm update to ensure all ApostropheCMS modules are up-to-date.
Install the module:
npm install @apostrophecms/seo
Set your base URL (APOS_BASE_URL).
Enable Google Analytics or Tag Manager in @apostrophecms/global.
Optionally install @apostrophecms/sitemap for XML sitemap generation.
Configure robots.txt and llms.txt via global settings.
Choose schema types per page in the SEO tab.
Validate your structured data using Google’s Rich Results Test.
@apostrophecms/seo@apostrophecms/seo-fields-doc-type)@apostrophecms/doc-typepublic/ Directorynpm install @apostrophecms/seo
Configure the module in your app.js file:
import apostrophe from 'apostrophe';
apostrophe({
root: import.meta,
shortName: 'my-project',
modules: {
'@apostrophecms/seo': {}
}
});
Important: For proper SEO functionality, you must also configure your site's base URL. See the Essential Configuration section below.
This module provides SEO functionality at two levels:
These features work out-of-the-box with any ApostropheCMS site:
You can start using these features right away - just install the module and configure your global SEO settings.
Advanced structured data types need fields with specific names in your content types:
[!IMPORTANT]
⚠️ Important: Field Names Must Match Expected Names for Structured Data
Some structured data types require specific field names so that the SEO module can automatically find the right values in your documents. If your content types use different field names, and you don’t configure them accordingly, your JSON-LD may be missing required properties and fail validation in Google’s tools.
The module also supports fallbacks and flexible formats (e.g., string vs. relationship fields) for authors, images, descriptions, and dates.
👉 For the full list of supported field names, fallbacks, and recommended patterns, see Field Flexibility.
You can also map existing field names to required field names using the
seoFieldMappingsoption of the module.If you plan to rely heavily on structured data (especially for products, recipes, jobs, or video), it’s a good idea to:
- Design your content types with these field names in mind, or
- Refactor existing types to match, before enabling those schema types in production.
The module automatically adds an "SEO" tab to all page and piece editors containing:
Built-in integration with Google Analytics, Google Tag Manager, and Google Site Verification. Simply enable the options you need and add your tracking IDs through the global configuration interface.
Supported integrations:
See Essential Configuration below for setup instructions.
The module automatically provides a /robots.txt route with strategic control over both traditional search engines and AI crawlers. Configure through global settings with five control modes:
Available Modes:
⚠️ Make sure that if you block all indexing during development, make sure to change the policy when you launch your final site.
Selective Mode Crawlers: For fine-grained control, use Selective mode to choose specific AI crawlers. These crawlers currently indicate they honor robots.txt directives.
Traditional search engines (Googlebot, Bingbot) are always allowed unless using "Block All" mode.
⚠️ Important Note About Robots.txt Enforcement
The
robots.txtstandard is a voluntary convention, not a security mechanism. While the crawlers listed here currently state that they honorrobots.txt, real-world behavior can differ:
- Some crawlers only respect
robots.txtin certain contexts (e.g., indexing vs. real-time browsing).- User-agent policies may change over time.
- New crawlers may appear that do not publicly disclose their behavior.
ApostropheCMS provides fine-grained controls for compliant crawlers, but it cannot guarantee enforcement against bots that ignore
robots.txtor do not implement the standard. We recommend periodically reviewing crawler policies to ensure ongoing compliance.
Technical Notes:
robots.txt file in your public/ directory for a single-site project, or sites/public and dashboard/public directories for multisite will override these settingsRelated: This module also provides automated llms.txt generation for policy communication.
Note: A global
Disallow: /inrobots.txtmay cause some AI crawlers to skip readingllms.txt, depending on their behavior, but the file remains publicly accessible.
The module automatically provides an /llms.txt route to communicate your AI usage policies. This is complementary to robots.txt:
⚠️ Important Note:
llms.txtis a proposed standard that is not yet widely adopted. As of this writing, most LLMs and AI systems do not respect or readllms.txtfiles. This feature is included for forward-thinking SEO strategies and may gain broader adoption in the future. For enforceable crawler control, rely onrobots.txtsettings.
Configuration options:
Allow AI Crawling (Default): Generates a comprehensive llms.txt file that permits responsible AI crawling with site structure information
Disallow AI Training: States content should NOT be used for AI training datasets but permits real-time search and retrieval with attribution
Custom Content: Write your own llms.txt policies from scratch
Disabled: Returns 404 for /llms.txt requests
Best Practice: Combine both tools strategically:
What's included in the generated file:
Works seamlessly with @apostrophecms/sitemap to generate XML sitemaps that help search engines discover and index your content. The sitemap is automatically referenced in the /llms.txt file for AI crawlers.
Hreflang: This module does not output <link rel="alternate" hreflang="..."> tags. Generating them at render time requires fetching each locale's true URL, which is expensive. Google accepts hreflang via XML sitemap as an equivalent signal, and @apostrophecms/sitemap handles this without the per-request overhead.
Critical Font Preloading - Automatically preload critical fonts to improve Core Web Vitals scores and SEO performance:
Configure once in your app.js and the module handles the rest. See Performance Optimization for details.
This step is required for proper canonical link generation and SEO performance. If using ApostropheCMS hosting, this is set automatically.
Via environment variable (recommended):
export APOS_BASE_URL=https://yoursite.com
Via configuration file:
// data/local.js
export default {
baseUrl: 'https://yoursite.com',
modules: {
// other module configuration
}
};
For multisite projects using ApostropheCMS Assembly:
The base URL is automatically configured through the baseUrlDomains option. Learn more about Assembly multisite hosting.
Enable Google Analytics tracking:
import apostrophe from 'apostrophe';
apostrophe({
root: import.meta,
shortName: 'my-project',
modules: {
'@apostrophecms/seo': {},
'@apostrophecms/global': {
options: {
seoGoogleAnalytics: true
}
}
}
});
This adds a field in the global configuration for your Google Analytics Measurement ID (e.g., G-XXXXXXXXXX).
For advanced tracking and marketing campaigns:
import apostrophe from 'apostrophe';
apostrophe({
root: import.meta,
shortName: 'my-project',
modules: {
'@apostrophecms/seo': {},
'@apostrophecms/global': {
options: {
seoGoogleTagManager: true
}
}
}
});
Add your GTM container ID (e.g., GTM-XXXXXXX) in the global configuration.
Verify site ownership for Google Search Console:
import apostrophe from 'apostrophe';
apostrophe({
root: import.meta,
shortName: 'my-project',
modules: {
'@apostrophecms/seo': {},
'@apostrophecms/global': {
options: {
seoGoogleVerification: true
}
}
}
});
Enter your verification meta tag content from Google Search Console in the global settings.
[!TIP] Installation of the sitemap module is optional, but highly recommended for better search rankings
Install the companion sitemap module for XML sitemap generation:
npm install @apostrophecms/sitemap
import apostrophe from 'apostrophe';
apostrophe({
root: import.meta,
shortName: 'my-project',
modules: {
'@apostrophecms/seo': {},
'@apostrophecms/sitemap': {}
}
});
This module generates rich structured data (JSON-LD) that helps search engines understand your content. All structured data is output in a single <script type="application/ld+json"> tag with a @graph array for optimal performance.
The module automatically generates appropriate Schema.org markup based on the schema type you select in the SEO tab of your editor:
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.
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).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.