You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Get all available versions for a given npm package.
113
127
114
-
**Params**:
115
-
- `packageName`: The npm package name.
128
+
| Param | Description |
129
+
| ----- | ----------- |
130
+
| `packageName` | The npm package name |
116
131
117
-
**Response**:
118
-
Array of version strings.
132
+
**Response**: Array of version strings.
133
+
134
+
### `GET/flags`
119
135
120
-
- `GET/flags`
121
136
List all available NodeSecure flags and their metadata.
122
137
123
-
- `GET/flags/description/:title`
138
+
### `GET/flags/description/:title`
139
+
124
140
Get the HTML description for a specific flag.
125
141
126
-
**Params**:
127
-
- `title`: The flag name.
142
+
| Param | Description |
143
+
| ----- | ----------- |
144
+
| `title` | The flag name |
145
+
146
+
### `GET/bundle/:packageName`
128
147
129
-
- `GET/bundle/:pkgName`
130
148
Get bundle size information for a package from Bundlephobia.
131
149
132
-
**Params**:
133
-
- `pkgName`: The npm package name.
150
+
| Param | Description |
151
+
| ----- | ----------- |
152
+
| `packageName` | The npm package name |
153
+
154
+
### `GET/bundle/:packageName/:version`
134
155
135
-
- `GET/bundle/:pkgName/:version`
136
156
Get bundle size information for a specific version of a package from Bundlephobia.
137
157
138
-
**Params**:
139
-
- `pkgName`: The npm package name.
140
-
- `version`: The package version.
158
+
| Param | Description |
159
+
| ----- | ----------- |
160
+
| `packageName` | The npm package name |
161
+
| `version` | The package version |
162
+
163
+
### `GET/downloads/:packageName`
141
164
142
-
- `GET/downloads/:pkgName`
143
165
Get npm download statistics for the last week for a package.
144
166
145
-
**Params**:
146
-
- `pkgName`: The npm package name.
167
+
| Param | Description |
168
+
| ----- | ----------- |
169
+
| `packageName` | The npm package name |
170
+
171
+
### `GET/scorecard/:org/:packageName`
147
172
148
-
- `GET/scorecard/:org/:pkgName`
149
173
Get OSSF Scorecard results for a package repository.
150
174
151
-
**Params**:
152
-
- `org`: The organization or user.
153
-
- `pkgName`: The repository name.
175
+
| Param | Description |
176
+
| ----- | ----------- |
177
+
| `org` | The organization or user |
178
+
| `packageName` | The repository name |
179
+
180
+
| Query | Description |
181
+
| ----- | ----------- |
182
+
| `platform` *(optional)* | The platform (default: `github.com`) |
154
183
155
-
**Query**:
156
-
`platform` (*optional*): The platform (default: `github.com`).
184
+
### `POST/report`
157
185
158
-
- `POST/report`
159
186
Generate a PDF report for the current analysis.
160
187
161
-
**Body**:
162
-
- `title`: Report title.
163
-
- `includesAllDeps`: Boolean, include all dependencies or only the root.
164
-
- `theme`: Report theme.
188
+
| Body Field | Description |
189
+
| ---------- | ----------- |
190
+
| `title` | Report title |
191
+
| `includesAllDeps` | Boolean, include all dependencies or only the root |
192
+
| `theme` | Report theme |
165
193
166
-
**Response**:
167
-
PDF file as binary data.
194
+
**Response**: PDF file as binary data.
168
195
169
196
### Static Files
170
197
171
198
All static files (UI, assets, etc.) are served from the project root directory.
172
199
173
-
> [!NOTE]
174
-
> For more details on each endpoint, see the corresponding files in /src/endpoints.
175
-
176
200
## Websocket commands
177
201
178
202
The `WebSocketServerInstanciator` class sets up and manages a WebSocket server for real-time communication with NodeSecure clients. It provides live updates and cache management features for package analysis.
0 commit comments