Scan your whole stack
Are you using @adobe/helix-shared-config?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v11.3.1
@adobe/helix-shared-config was last scanned on 23 Nov 2026 at version 11.3.1. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 11.3.1 LATEST | 23 Nov 2026 | No rules fired |
| 11.3.0 | 20 Nov 2026 | No rules fired |
| 11.2.8 | 17 Nov 2026 | No rules fired |
| 11.2.7 | 20 Oct 2026 | Not shown |
| 11.2.6 | 13 Oct 2026 | Not shown |
Findings for v11.3.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 11.3.1; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
The config package provides a set of configuration classes for managing various Helix project configurations. These classes handle loading, validating, and managing YAML-based configuration files from local directories or remote GitHub repositories.
npm install @adobe/helix-shared-config
The IndexConfig class manages search index configurations for content discovery and querying.
import { IndexConfig } from '@adobe/helix-shared-config';
// Load from local file
const config = await new IndexConfig()
.withConfigPath('/path/to/helix-query.yaml')
.init();
// Load from GitHub repository
const config = await new IndexConfig()
.withRepo('owner', 'repo', 'ref')
.init();
// Access index configuration
const indices = config.toJSON().indices;
// Get a specific query
const query = config.getQuery('my-index', 'my-query');
// Get query cache timeout
const cacheTimeout = config.getQueryCache('my-index', 'my-query');
// Generate query URL with parameters
const queryUrl = config.getQueryURL('my-index', 'my-query', 'owner', 'repo', {
page: '1',
filter: 'value'
});
The MountConfig class manages mount point configurations that map paths to external content sources like OneDrive, Google Drive, or GitHub.
import { MountConfig } from '@adobe/helix-shared-config';
// Load mount configuration
const config = await new MountConfig()
.withRepo('owner', 'repo', 'ref')
.init();
// Match a resource path to a mount point
const mountPoint = config.match('/docs/guide');
if (mountPoint) {
console.log(mountPoint.type); // 'onedrive', 'google', or 'github'
console.log(mountPoint.url); // Source URL
console.log(mountPoint.relPath); // Relative path from mount point
}
Supported mount point types:
https://*.sharepoint.com/... or onedrive: URLshttps://drive.google.com/... or gdrive: URLshttps://github.com/owner/repo/tree/ref/path URLsThe SitemapConfig class manages sitemap configurations for SEO and content discovery.
import { SitemapConfig } from '@adobe/helix-shared-config';
// Load sitemap configuration
const config = await new SitemapConfig()
.withRepo('owner', 'repo', 'ref')
.init();
// Add a new sitemap
const sitemap = config.addSitemap({
name: 'main',
origin: 'https://example.com',
source: '/content',
destination: '/sitemap.xml',
lastmod: 'YYYY-MM-DD'
});
// Add language variants
config.addLanguage('main', {
name: 'en',
source: '/en',
destination: '/en/sitemap.xml',
hreflang: 'en-US',
alternate: 'https://example.com/en'
});
// Update sitemap origin
config.setOrigin('main', 'https://www.example.com');
The IgnoreConfig class manages ignore patterns similar to .gitignore.
import { IgnoreConfig } from '@adobe/helix-shared-config';
// Load ignore configuration
const config = await new IgnoreConfig()
.withDirectory('/path/to/project')
.init();
// Check if a path is ignored
const isIgnored = config.ignores('/node_modules/package');
The ModifiersConfig class manages metadata and header modifiers based on URL patterns.
import { ModifiersConfig } from '@adobe/helix-shared-config/modifiers';
// Parse from a sheet-like structure
const sheet = [
{ url: '/*', key: 'Cache-Control', value: 'max-age=3600' },
{ url: '/blog/*', Title: 'Blog', Description: 'Our blog' },
{ url: '/docs/**', key: 'X-Robots-Tag', value: 'noindex' }
];
const config = ModifiersConfig.fromModifierSheet(sheet);
// Get modifiers for a specific path
const modifiers = config.getModifiers('/blog/post-1');
// Returns: { 'cache-control': 'max-age=3600', 'title': 'Blog', 'description': 'Our blog' }
The url column contains an exact path or a glob (see globs in helix-shared-string):
* matches within a path segment, ** across segments, and /en(/**)? matches /en and all its descendants.
Invalid globs (e.g. more than 2 wildcards) are ignored. If several rows set the same key, the last matching row wins.
Use requiredConfig or optionalConfig to automatically load configurations in serverless functions.
import { requiredConfig, optionalConfig } from '@adobe/helix-shared-config';
// Function that requires configuration
async function handler(request, context) {
// Configuration available in context.config
const { fstab, index } = context.config;
const mountPoint = fstab.match(request.url);
// ... process request
}
// Wrap with required config - returns 400 if config is missing
export const main = requiredConfig(handler, 'fstab', 'index');
// Or use optional config - continues without config if missing
export const main = optionalConfig(handler, 'fstab', 'index');
The wrappers automatically extract owner, repo, and ref from the request parameters and load the specified configurations.
All configuration classes extend BaseConfig and support the following options:
const config = await new IndexConfig()
.withDirectory('/path/to/dir') // Set working directory
.withConfigPath('/path/to/config.yaml') // Set explicit config file path
.withSource('yaml: content') // Provide YAML source directly
.withJSON({ key: 'value' }) // Provide parsed JSON directly
.withLogger(logger) // Set custom logger
.init();
const config = await new IndexConfig()
.withRepo('owner', 'repo', 'ref', {
headers: {
authorization: 'token ghp_...'
}
})
.withTransactionID('request-id-123')
.init();
const config = await new IndexConfig()
.withCache({ max: 100 }) // Set cache size (max entries)
.withRepo('owner', 'repo', 'ref')
.init();
// Check for parsing errors
const errors = config.getErrors();
if (errors.length > 0) {
console.error('Configuration errors:', errors);
}
version: 1
indices:
my-index:
include:
- /content/**
exclude:
- /content/drafts/**
target: https://example.algolia.net
properties:
title:
select: head > meta[property="og:title"]
value: attribute(el, 'content')
description:
select: head > meta[name="description"]
value: attribute(el, 'content')
queries:
search:
query: '{search}'
parameters:
- search
hitsPerPage: 10
cache: 600
mountpoints:
/: https://adobe.sharepoint.com/sites/example/Shared%20Documents/root
/docs: https://github.com/owner/repo/tree/main/documentation
/assets: https://drive.google.com/drive/folders/abc123def456
version: 1
sitemaps:
website:
origin: https://www.example.com
source: /content
destination: /sitemap.xml
lastmod: YYYY-MM-DD
languages:
en:
source: /en
destination: /en/sitemap.xml
hreflang: en-US
alternate: https://www.example.com/en
# Ignore patterns (glob format)
node_modules/
*.tmp
.git/
.DS_Store
const config = await new IndexConfig().init();
// Add a new index
config.addIndex({
name: 'blog',
include: ['/blog/**'],
exclude: ['/blog/drafts/**'],
target: 'https://example.algolia.net',
properties: {
title: { select: 'h1', value: 'textContent(el)' }
}
});
// Replace an existing index
config.replaceIndex({
name: 'blog',
include: ['/blog/**', '/news/**'],
exclude: [],
target: 'https://example.algolia.net',
properties: {}
});
// Remove an index
config.removeIndex({ name: 'blog' });
// Save changes
await config.saveConfig();
// Export to YAML
const yamlString = config.toYAML();
// Export to JSON
const jsonObject = config.toJSON();
// Get raw source
const source = config.source;
// Get version
const version = config.version;
Configuration classes include robust error handling:
try {
const config = await new IndexConfig()
.withRepo('owner', 'repo', 'ref')
.init();
const errors = config.getErrors();
if (errors.length > 0) {
// Handle YAML parsing errors
errors.forEach(error => console.error(error.message));
}
} catch (e) {
// Handle loading errors
console.error('Failed to load configuration:', e);
}
Apache-2.0
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.