Gathering detailed insights and metrics for @cloudinary/react
Gathering detailed insights and metrics for @cloudinary/react
Gathering detailed insights and metrics for @cloudinary/react
Gathering detailed insights and metrics for @cloudinary/react
npm install @cloudinary/react
95
Supply Chain
98.9
Quality
83
Maintenance
100
Vulnerability
98.9
License
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
44 Stars
407 Commits
15 Forks
17 Watching
55 Branches
17 Contributors
Updated on 14 Nov 2024
TypeScript (83.97%)
JavaScript (6.44%)
Vue (4.05%)
CSS (2.92%)
HTML (2.28%)
Shell (0.34%)
Cumulative downloads
Total Downloads
Last day
-10.3%
5,107
Compared to previous day
Last week
1.1%
30,208
Compared to previous week
Last month
27.2%
126,131
Compared to previous month
Last year
33.5%
1,147,694
Compared to previous year
1
1
46
This project contains SDKs designed to work with Cloudinary url-gen.
These SDKs render CloudinaryImage or CloudinaryVideo objects into the DOM.
The React SDK used to render an image & video component. NPM | {@link ReactSDK|Reference}
The Angular SDK used to render an image & video component. NPM | {@link AngularSDK|Reference}
Each SDK also contains advanced features in the form of plugins, which extend the native HTMLImage and HTMLVideo elements.
To build and link project:
To get started, install the npm client package of your choice along with our base package. For example, to use Cloudinary in a React environment, the following packages should be installed:
1npm i @cloudinary/react @cloudinary/url-gen
Note: To use Angular install @cloudinary/ng
.
The following is a simple example using React. For more information on React and other frameworks, navigate to the specific reference using the Packages menu.
1import React from 'react' 2// Cloudinary is used to configure your account and generate urls for your media assets 3import {Cloudinary} from "@cloudinary/url-gen"; 4// Import the cloudinary media component (AdvancedImage / AdvancedVideo), 5// and the plugins you want to use. 6import {AdvancedImage, accessibility, responsive} from '@cloudinary/react'; 7 8// Once per project/app - configure your instance. 9// See the documentation of @cloudinary/url-gen for more information. 10const myCld = new Cloudinary({cloud: {cloudName: 'demo'}}); 11 12export const App = () => { 13 // Create a new image object: 14 const img = myCld.image('sample'); 15 16 // Render your component. 17 return ( 18 <div> 19 <AdvancedImage cldImg={img} plugins={[responsive(), accessibility()]}/> 20 </div> 21 ) 22};
1<AdvancedImage plugins={[lazyload(), responsive(), accessibility(), placeholder()]}/>
You can omit any plugin, but the order from above should remain.
Repository is using Conventional Commits. To publish packages please read instructions in sdk-scripts.
No vulnerabilities found.
Reason
12 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 10/15 approved changesets -- score normalized to 6
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
49 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-11-25
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