@sanity/preview
Utilities for previewing content in Sanity
@sanity/preview@2.1.4 was published on 2021-01-06. Its manifest declares 7 runtime dependencies and 2 peer requirements. Bundled type declarations are not declared in the inspected metadata. No Node.js engine requirement is declared in this manifest.
All @sanity/preview versions · Permanent reference to 2.1.4 · View npm registry JSON
Package specifications
| Version | 2.1.4 |
|---|---|
| License declaration | MIT |
| Published | 2021-01-06T09:58:20.866Z |
| Node.js requirement | Not declared |
| Type declarations | Not declared |
| Runtime dependency count | 7 |
| Peer requirement count | 2 |
| Optional dependency count | 0 |
| Minified size | Measurement not available yet |
| Minified + gzip | Measurement not available yet |
| Unpacked distribution size | 763.85 KiB |
| Published file count | 103 |
| Package type | Not declared |
| ES module entry | Not declared |
| Default entry | lib/index.js |
| Side effects declaration | Not declared |
| Direct advisories | 0 |
| Resolved graph dependencies | 16 |
| Repository stars | 6381 |
| Repository forks | 558 |
Install @sanity/preview 2.1.4
npm install @sanity/preview@2.1.4 pnpm add @sanity/preview@2.1.4 yarn add @sanity/preview@2.1.4
Runtime dependencies
- rxjs ^6.5.3
- lodash ^4.17.15
- @sanity/types 2.1.4
- shallow-equals ^1.0.0
- observable-props ^2.0.0
- @sanity/image-url ^0.140.19
- react-props-stream ^1.0.0
Peer requirements
- react ^16.9 || ^17
- prop-types ^15.6 || ^16
Optional dependencies
- None declared
Resolved dependency graph
This deps.dev graph describes a generic 64-bit Linux environment, not your application lockfile.
- @sanity/image-url@0.140.22 — direct
- @sanity/types@2.1.4 — direct
- @types/prop-types@15.7.15 — indirect
- @types/react@17.0.93 — indirect
- @types/scheduler@0.16.8 — indirect
- any-observable@0.2.0 — indirect
- csstype@3.2.3 — indirect
- is-observable@0.2.0 — indirect
- lodash@4.18.1 — direct
- observable-props@2.0.0 — direct
- react-props-stream@1.0.1 — direct
- rxjs@6.6.7 — direct
- shallow-equals@1.0.0 — direct
- symbol-observable@0.2.4 — indirect
- tslib@1.14.1 — indirect
- xtend@4.0.2 — indirect
How to interpret the specifications
Bundlephobia measurements use its standard package build and may exclude peer dependencies. Unpacked npm distribution size includes shipped files and is a different measurement. Module declarations do not prove tree-shaking or runtime compatibility.
Advisories apply to this package version directly; transitive dependencies need separate inspection. Repository signals describe the whole repository and are current observations, including on historical-version pages.
OpenSSF repository checks
Provider assessment: 2026-08-24T00:00:00Z. These are repository checks, not a jsL maintenance score.
| Maintained | 10/10 — 30 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 10 |
|---|---|
| Code-Review | 10/10 — all changesets reviewed |
| CII-Best-Practices | 0/10 — no effort to earn an OpenSSF best practices badge detected |
| Dangerous-Workflow | 10/10 — no dangerous workflow patterns detected |
| License | 10/10 — license file detected |
| Token-Permissions | 0/10 — detected GitHub workflow tokens with excessive permissions |
| Binary-Artifacts | 10/10 — no binaries found in the repo |
| Security-Policy | 10/10 — security policy file detected |
| Pinned-Dependencies | 4/10 — dependency not pinned by hash detected -- score normalized to 4 |
| Branch-Protection | 5/10 — branch protection is not maximal on development and all release branches |
| Fuzzing | 0/10 — project is not fuzzed |
| SAST | 0/10 — SAST tool is not run on all commits -- score normalized to 0 |
Evidence and freshness
- Readable npm registry JSON — retrieved 2026-11-01T16:51:10.756Z
- https://api.deps.dev/v3/systems/npm/packages/%40sanity%2Fpreview/versions/2.1.4 — retrieved 2026-11-01T16:51:11.164Z
- https://api.deps.dev/v3/systems/npm/packages/%40sanity%2Fpreview/versions/2.1.4:dependencies — retrieved 2026-11-01T16:51:11.267Z
- https://api.deps.dev/v3/projects/github.com%2Fsanity-io%2Fsanity — retrieved 2026-11-01T16:51:11.579Z