Gathering detailed insights and metrics for contentful-to-sanity
Gathering detailed insights and metrics for contentful-to-sanity
Gathering detailed insights and metrics for contentful-to-sanity
Gathering detailed insights and metrics for contentful-to-sanity
npm install contentful-to-sanity
Typescript
Module System
Min. Node Version
Node Version
NPM Version
TypeScript (99.37%)
JavaScript (0.63%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
35 Stars
318 Commits
8 Forks
4 Watchers
18 Branches
38 Contributors
Updated on Nov 18, 2024
Latest Version
4.2.10
Package Id
contentful-to-sanity@4.2.10
Unpacked Size
1.12 MB
Size
251.65 kB
File Count
14
NPM Version
10.5.1
Node Version
20.13.1
Published on
May 30, 2024
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
27
27
This package liberates Contentful spaces, creating Sanity projects and schemas as it goes.
1npm i -g contentful-to-sanity
Or use it on demand with npx
:
1npx contentful-to-sanity@latest --help
1npm create sanity@latest --template clean --create-project "Your Project Name" --dataset production --output-path ./migrate
dataset.ndjson
file for the later import step:1npx contentful-to-sanity@latest -s <space-id> -t <management-token> -a <access-token> ./migrate
1cd ./migrate && npx sanity dataset import ./dataset.ndjson
./migrate/sanity.config.ts
If you chose the clean
template it should look like this
1import {defineConfig} from 'sanity' 2import {deskTool} from 'sanity/desk' 3import {visionTool} from '@sanity/vision' 4import {schemaTypes} from './schemas' 5 6export default defineConfig({ 7 name: 'default', 8 title: '<project-name>', 9 10 projectId: '<project-id>', 11 dataset: '<dataset>', 12 13 plugins: [deskTool(), visionTool()], 14 15 schema: { 16 types: schemaTypes, 17 }, 18})
Now replace the schemaTypes
import with the generated one:
1import {defineConfig} from 'sanity' 2import {deskTool} from 'sanity/desk' 3import {visionTool} from '@sanity/vision' 4-import {schemaTypes} from './schemas' 5+import {types as schemaTypes} from './schema' 6 7export default defineConfig({ 8 name: 'default', 9 title: '<project-name>',
1npm dev
You don't have to wait for the npx sanity dataset import ./migrate/dataset.ndjson
job to finish before the Studio is ready for use. The Studio will keep up to speed with the progress of the import job in real-time.
For more information on the available commands and their options, run contentful-to-sanity --help
.
MIT © Sanity.io
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
GitHub workflow tokens follow principle of least privilege
Details
Reason
license file detected
Details
Reason
security policy file detected
Details
Reason
packaging workflow detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 5
Details
Reason
Found 0/6 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
Project has not signed or included provenance with any releases.
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
32 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More