Gathering detailed insights and metrics for @alitajs/inspx
Gathering detailed insights and metrics for @alitajs/inspx
Gathering detailed insights and metrics for @alitajs/inspx
Gathering detailed insights and metrics for @alitajs/inspx
npm install @alitajs/inspx
Typescript
Module System
Min. Node Version
Node Version
NPM Version
TypeScript (39.8%)
JavaScript (30.6%)
SCSS (25.12%)
CSS (4.48%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
1,447 Stars
7 Commits
31 Forks
6 Watchers
1 Branches
2 Contributors
Updated on Jul 10, 2025
Latest Version
0.0.2
Package Id
@alitajs/inspx@0.0.2
Unpacked Size
124.80 kB
Size
23.00 kB
File Count
13
NPM Version
6.14.12
Node Version
14.16.1
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
1
Pixel perfect layout inspection.
Built for React as a proof of concept.
Install the package:
1npm install inspx --save-dev
Wrap the root of your application or arbitrary component trees:
1import Inspect from 'inspx'; 2 3<Inspect> 4 <App /> 5</Inspect>
Inspect elements by hovering an element and holding Option (⌥) simultaneously.
By default, any element with padding, margin, or width and height is inspectable.
You can disable certain properties:
1<Inspect 2 margin 3 size={false} 4 padding={false} 5> 6 <App /> 7</Inspect>
By default, the component will only be enabled in the development environment.
You can configure this behavior with the disabled
prop:
1<Inspect 2 disabled={ 3 process.env.NODE_ENV === 'staging' || 4 process.env.NODE_ENV === 'production' 5 } 6> 7 <App /> 8</Inspect>
Optionally, you can leverage code splitting by wrapping the exported component and using your own instead.
The library is lightweight enough for this to likely be a premature and insignificant optimization.
1import * as React from 'react'; 2import { InspectProps } from 'inspx'; 3 4const Inspect = React.lazy(() => import('inspx')); 5 6export default function Loader(props: InspectProps) { 7 if (process.env.NODE_ENV === 'production') { 8 return props.children; 9 } 10 return ( 11 <React.Suspense fallback={null}> 12 <Inspect disabled={false} {...props} /> 13 </React.Suspense> 14 ); 15}
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 1/6 approved changesets -- score normalized to 1
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
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
55 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