Socket
Book a DemoInstallSign in
Socket

@last-rev/contentful-reports

Package Overview
Dependencies
Maintainers
5
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@last-rev/contentful-reports

> ⚠️ Reports are run against an in-memory sqlite3 database that is populated from the synced entries/assets and content types from Contentful

latest
npmnpm
Version
0.3.0
Version published
Weekly downloads
289
11.15%
Maintainers
5
Weekly downloads
 
Created
Source

⚠️ Reports are run against an in-memory sqlite3 database that is populated from the synced entries/assets and content types from Contentful

Requirements

You must first have a file location of an existing contentful export, using the contentful-cli Run the following steps to generate the export:

contentful login
contentful space export --space-id {spaceId} --environment-id {envId} --export-dir {exportDir} --inlcude-drafts

Adding a report

The file sql/db.schema has all the data we can build reports from. Each report lives on a separate SQL query under sql/{reportName}.sql. In we want to capture more data from Contentful to build new reports, we can add new tables or add columns to the already existing ones and then create a new report file with the query for it.

FAQs

Package last updated on 27 Jun 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts