Gathering detailed insights and metrics for vue-image-kit
Gathering detailed insights and metrics for vue-image-kit
Gathering detailed insights and metrics for vue-image-kit
Gathering detailed insights and metrics for vue-image-kit
@ikun-ui/image
@ikun-ui/image-view
@fakit/vue-image-observed
Vue placeholder for FA-Kit lob
figma-restoration-mcp-vue-tools
Professional Figma Component Restoration Kit - MCP tools with snapDOM-powered high-quality screenshots, intelligent shadow detection, and smart debugging for Vue component restoration. Includes figma_compare and snapdom_screenshot tools.
Vue.js Image Kit Component with Lazy Load built in and Responsive Images
npm install vue-image-kit
Typescript
Module System
Node Version
NPM Version
JavaScript (79.32%)
Vue (19.83%)
HTML (0.85%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
10 Stars
39 Commits
2 Forks
1 Watchers
22 Branches
1 Contributors
Updated on Jul 05, 2023
Latest Version
0.2.2
Package Id
vue-image-kit@0.2.2
Unpacked Size
16.98 kB
Size
6.29 kB
File Count
10
NPM Version
6.14.10
Node Version
14.15.4
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
1
30
Vue.js Image Kit Component with Lazy Load built in and Responsive Images
The inspiration comes from this and a talk from @derevandal in @femug
Note: This is an unofficial project. I do not work or am I affiliated with Image Kit
Go to https://vue-image-kit.netlify.app
This component uses the Image Kit Real-time URL-based image transformation, so you will need to have your images over Image Kit for it to work
For more informations about Image Kit, consult their website
1$ npm install vue-image-kit --save
1$ yarn add vue-image-kit
You can import in your main.js
file
1import Vue from 'vue' 2import VueImageKit from 'vue-image-kit' 3 4Vue.use(VueImageKit)
Or locally in any component
1import { VueImageKit } from 'vue-image-kit' 2// In v0.2+ you don't need the brackets above 3 4export default { 5 components: { 6 VueImageKit 7 } 8}
You can import as a Nuxt.js plugin
~/plugins/vue-image-kit.js
1import Vue from 'vue' 2import VueImageKit from 'vue-image-kit' 3 4Vue.use(VueImageKit)
and then import it in your nuxt.config.js
file
1plugins: [ 2 { src: '~/plugins/vue-image-kit', mode: 'client' } 3]
1<template> 2 <vue-image-kit 3 hash="6xhf1gnexgdgk" 4 src="lion_BllLvaqVn.jpg" 5 :width="1400" 6 :height="800" 7 alt="Lion image" 8 /> 9</template>
Property name | Type | Default | Required | Description |
---|---|---|---|---|
hash | String | null | true | Images hash. Example: Take this image -> https://ik.imagekit.io/6xhf1gnexgdgk/lion_BllLvaqVn.jpg, the hash is '6xhf1gnexgdgk' |
src | String | null | true | Images source. Example: Take this image -> https://ik.imagekit.io/6xhf1gnexgdgk/lion_BllLvaqVn.jpg, the source is 'lion_BllLvaqVn.jpg' |
placeholder | String | '' | false | Images placeholder. Here you can pass a link |
backgroundColor | String | '' | false | Background color of the images placeholder |
srcset | Array | [320, 480, 800] | false | Array of numbers that will define the images srcset attribute. Each number correspond to one of the images width |
sizes | Array | [] | false | Array of numbers that will define the images sizes attribute. Each number correspond to one of the images max-width. Empty by default, which gets each of the images srcset prop |
defaultSize | Number | 1080 | true | Images default size. Must be larger than the largest srcset and sizes |
customTransform | String | '' | false | Use this to append any extra image kit transform that you want |
width | Number | null | false | Images width. Width number in pixels. It will be set with inline style |
height | Number | null | false | Images height. Height number in pixels. It will be set with inline style |
alt | String | '' | false | Images alt attribute |
lazyLoad | Boolean | true | false | If you don't want to use the built in lazy load, you can set this to false, then the image will not be lazy loaded, and you can setup your own lazy load |
Note: Contributions are very welcomed, however is very important to open a new issue using the issue template before you start working on anything, so we can discuss it before hand
Fork the project and enter this commands in your terminal
1git clone https://github.com/YOUR_GITHUB_USERNAME/vue-image-kit.git 2cd vue-image-kit 3yarn
For visual testing, this project contains storybook which you can run by doing the next command
1$ yarn storybook
Before making the PR, if you changed something that needs to be tested, please make the tests inside the tests/unit
folder
To run the tests, you can use the next command
1$ yarn test:unit
This project follows the commitlint guidelines, with minor changes
You can commit using npm run commit
to help you with that
There's a pre-push
hook that runs all the unit tests before you can push it
If an error occurs, you can use the npm run commit:retry
command that runs the previous npm run commit
that you already filled
MIT © guastallaigor
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/22 approved changesets -- score normalized to 0
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
116 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