Gathering detailed insights and metrics for @figma/widget-typings
Gathering detailed insights and metrics for @figma/widget-typings
Gathering detailed insights and metrics for @figma/widget-typings
Gathering detailed insights and metrics for @figma/widget-typings
npm install @figma/widget-typings
Module System
Unable to determine the module system for this package.
Min. Node Version
Typescript Support
Node Version
NPM Version
11 Stars
104 Commits
6 Forks
59 Watching
25 Branches
18 Contributors
Updated on 22 Nov 2024
Shell (100%)
Cumulative downloads
Total Downloads
Last day
-31.9%
924
Compared to previous day
Last week
-11.3%
5,348
Compared to previous week
Last month
0.2%
28,921
Compared to previous month
Last year
88.3%
375,252
Compared to previous year
1
1
This repository contains the typings for the Figma Widget API.
Installation
Note that the widget api is an extention of the plugin api so you should install both @figma/plugin-typings
and @figma/widget-typings
1npm i --save-dev @figma/plugin-typings @figma/widget-typings
Configure tsconfig.json
1{ 2 "compilerOptions": { 3 "typeRoots": [ 4 "./node_modules/@types", 5 "./node_modules/@figma" 6 ] 7 } 8}
The configuration above is needed for the TypeScript compiler to use type definitions found in both ./node_modules/@types
and ./node_modules/@figma
. Normally, most external type definitions are from DefinitelyTyped and are installed in /@types
, which included by TypeScript by default. Since we host the plugin & widget typings separately, they are installed outside in /@figma
instead.
Types should become globally available without needing to use import statements. We do it this way because the widget API is part of the host environment, as opposed to being a package that a plugin includes.
Widget API releases have the format "Version X, Update Y". Equivalent tags are created in this repository as v<x>.<y>
. Note that not all API releases include API changes, some are just bug fixes. Therefore, some typings versions are skipped.
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
0 existing vulnerabilities detected
Reason
Found 7/12 approved changesets -- score normalized to 5
Reason
4 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 3
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
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
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