Scan your whole stack
From OX Research Newsroom
Are you using stac-check?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v1.15.1
stac-check was last scanned on 26 Nov 2026 at version 1.15.1. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 1.15.1 LATEST | 26 Nov 2026 | No rules fired |
| 1.15.0 | 26 Nov 2026 | No rules fired |
Findings for v1.15.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.15.1; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
The intent of this project is to provide a validation tool that also follows the official STAC Best Practices document
--fast now works with --recursive, validating an entire catalog and all of its linked objects with FastJSONSchema in a single pass instead of re-fetching and re-validating every asset during display. In our benchmarks it validated a local catalog of 61 objects ~30× faster than standard recursion (0.08s vs 2.5s validation time, ~19× end-to-end) and a remote catalog end-to-end ~6× faster (2.9s vs 17.6s) — and the gap widens sharply on large or deeply nested remote catalogs, where standard recursion's per-asset re-walks push runtimes into the minutes while --fast finishes in seconds. Custom --headers are applied to remote fetches, --fast-linting additionally runs linting and geometry checks per object, and results are shown in the compact summary with errors grouped across the whole walk. Note that --max-depth is ignored in fast mode. See Recursive Validation and Fast Validation.The documentation is hosted on GitHub Pages at stac-utils.github.io/stac-check.
For development and building the documentation locally, see the Development section below.
$ pip install stac-check
For local development, this project uses uv:
$ uv sync --extra dev
Or with pip:
$ pip install -e '.[dev]'
$ make build
$ make shell
Usage: stac-check [OPTIONS] FILE
Options:
--version Show the version and exit.
-l, --links Validate links for format and response.
-a, --assets Validate assets for format and response.
-m, --max-depth INTEGER Maximum depth to traverse when recursing. Omit this
argument to get full recursion. Ignored if
`recursive == False` or in fast mode.
-r, --recursive Recursively validate all related stac objects. Can be
combined with --fast for FastJSONSchema validation.
--no-assets-urls Disables the opening of href links when validating assets
(enabled by default).
--header KEY VALUE HTTP header to include in the requests. Can be used
multiple times.
--pydantic Use stac-pydantic for enhanced validation with Pydantic models.
--verbose Show verbose error messages.
-o, --output FILE Save output to the specified file.
--fast Use FastJSONSchema for high-speed validation. Skips geometry
checks and best practices linting for maximum performance.
Also applies to --recursive.
--fast-linting Use FastJSONSchema for high-speed validation with best
practices linting. Skips geometry checks for maximum performance.
--item-collection Validate item collection response. Can be combined with
--pages. Defaults to one page.
--collections Validate collections endpoint response. Can be combined with
--pages. Defaults to one page.
-p, --pages INTEGER Maximum number of pages to validate via --item-collection
or --collections. Defaults to one page.
--help Show this message and exit.
stac-check uses a configuration file to control which validation checks are performed. By default, it uses the built-in configuration at stac_check/stac-check.config.yml. You can customize the validation behavior by creating your own configuration file.
The configuration file has three main sections:
Here's an example of the configuration options:
linting:
# Identifiers should consist of only lowercase characters, numbers, '_', and '-'
searchable_identifiers: true
# Item name '{self.object_id}' should not contain ':' or '/'
percent_encoded: true
# Item file names should match their ids
item_id_file_name: true
# Collections and catalogs should be named collection.json and catalog.json
catalog_id_file_name: true
# A STAC collection should contain a summaries field
check_summaries: true
# Datetime fields should not be set to null
null_datetime: true
# best practices - check unlocated items to make sure bbox field is not set
check_unlocated: true
# best practices - recommend items have a geometry
check_geometry: true
# check to see if there are too many links
bloated_links: true
# best practices - check for bloated metadata in properties
bloated_metadata: true
# best practices - ensure thumbnail is a small file size ["png", "jpeg", "jpg", "webp"]
check_thumbnail: true
# best practices - ensure that links in catalogs and collections include a title field
links_title: true
# best practices - ensure that links in catalogs and collections include self link
links_self: true
geometry_validation:
# Master switch to enable/disable all geometry validation checks
enabled: true
# check if geometry coordinates are potentially ordered incorrectly (longitude, latitude)
geometry_coordinates_order: true
# check if geometry coordinates contain definite errors (latitude > ±90°, longitude > ±180°)
geometry_coordinates_definite_errors: true
# check if bbox matches the bounds of the geometry
bbox_geometry_match: true
# check if a bbox that crosses the antimeridian is correctly formatted
bbox_antimeridian: true
settings:
# number of links before the bloated links warning is shown
max_links: 20
# number of properties before the bloated metadata warning is shown
max_properties: 20
To use a custom configuration file, set the STAC_CHECK_CONFIG environment variable to the path of your configuration file:
export STAC_CHECK_CONFIG=/path/to/your/config.yml
stac-check sample_files/1.0.0/core-item.json
Geometry validation is a feature of stac-check that allows you to validate the geometry of your STAC items. This feature is enabled by default, but can be disabled by setting geometry_validation.enabled to false in your configuration file.
The geometry validation feature checks for the following:
You can customize the geometry validation behavior by setting the following options in your configuration file:
geometry_validation.geometry_coordinates_order: Check if geometry coordinates are potentially ordered incorrectly (longitude, latitude)geometry_validation.geometry_coordinates_definite_errors: Check if geometry coordinates contain definite errors (latitude > ±90°, longitude > ±180°)geometry_validation.bbox_geometry_match: Check if bbox matches the bounds of the geometrygeometry_validation.bbox_antimeridian: Check if a bbox that crosses the antimeridian is correctly formattedfrom stac_check.lint import Linter
linter = Linter('<json_path>')
for k, v in linter.create_best_practices_dict().items():
print(k, ":", v)
stac-check sample_files/0.9.0/landsat8-sample.json
stac-check https://raw.githubusercontent.com/stac-utils/pystac/main/tests/data-files/examples/0.9.0/collection-spec/examples/landsat-collection.json --recursive
Combine --recursive with --fast to validate the entire catalog walk with FastValidator in a single pass — dramatically faster for large or remote catalogs:
stac-check catalog.json --recursive --fast
In fast recursive mode, --max-depth is ignored (the full catalog is validated) and --headers still apply to remote fetches. Use --fast-linting instead of --fast to also run linting and geometry checks on every object in the walk. Note that FastValidator resolves schemas from schemas.stacspec.org, which does not host pre-1.0 schemas, so documents older than STAC 1.0 may fail schema resolution in fast mode.
stac-check sample_files/1.0.0/core-item.json --assets
stac-check sample_files/1.0.0/core-item-bad-links.json --links --assets
stac-check sample_files/0.9.0/bad-item.json
stac-check https://stac-catalog.eu/collections/sentinel-s2-l2a/items/item1 --assets --no-assets-urls --header x-api-key $MY_API_KEY --header foo bar
For large STAC collections or when you need maximum validation speed, use the --fast or --fast-linting flags to enable FastJSONSchema validation. Both modes skip geometry checks for maximum performance.
Two Fast Validation Modes:
--fast: Fastest mode - skips geometry checks and best practices linting, focuses only on STAC spec compliance--fast-linting: Fast mode with linting - skips geometry checks but includes best practices checks for code qualityFast validation also works with --recursive, validating a catalog and all its linked objects with FastJSONSchema in one pass (see Recursive Validation).
Fast Validation (Spec Only) of a Large Item Collection:
stac-check large_collection.json --fast
Fast Validation with Best Practices Linting:
Use --fast-linting to include best practices checks while maintaining fast performance:
stac-check large_collection.json --fast-linting
This will show both validation errors and best practices warnings in a compact, grouped format.
Performance Comparison:
--fast mode: ~0.25ms per item (spec compliance only)--fast-linting mode: ~0.5ms per item (spec + best practices)--fastUse --fast when:
--recursive --fast)Use --fast-linting when:
stac-check can validate STAC API endpoints, including item collections and collections endpoints. It supports pagination and can validate multiple pages of results.
Validating an Item Collection Endpoint:
stac-check https://stac.geobon.org/collections/chelsa-clim/items --item-collection
Validating Multiple Pages of an Item Collection:
stac-check https://stac.geobon.org/collections/chelsa-clim/items --item-collection --pages 3
Validating a Collections Endpoint:
stac-check https://stac.geobon.org/collections --collections
Documentation is automatically built and published to GitHub Pages on every push to the main branch. You can view the latest version at stac-utils.github.io/stac-check.
To build the documentation locally (for development or testing), you'll need Python >= 3.11 and the documentation dependencies:
# Install the package with documentation dependencies
uv sync --extra docs
# Build the documentation
make docs
# Open the built documentation
xdg-open docs/_build/html/index.html # On Linux
open docs/_build/html/index.html # On macOS
start docs/_build/html/index.html # On Windows
Or using Docker:
# Build the Docker image and documentation
make docker-docs
The documentation is built using Sphinx with the following extensions:
sphinx.ext.autodoc for API documentationsphinx_click for CLI documentationsphinx_rtd_theme for the ReadTheDocs thememyst_parser for Markdown supportThe following organizations have contributed time and/or funding to support the development of this project:
We are grateful for the support of our sponsors who help make this project possible. If your organization uses stac-check and would like to become a sponsor, please reach out to us!
Contributions are welcome! Please feel free to submit a Pull Request.
git checkout -b feature/your-feature-namegit push origin feature/your-feature-nameIf you find a bug or have a feature request, please open an issue on the GitHub repository.
This project is licensed under the Apache License 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.