Gathering detailed insights and metrics for hapi-swaggered-ui
Gathering detailed insights and metrics for hapi-swaggered-ui
Gathering detailed insights and metrics for hapi-swaggered-ui
Gathering detailed insights and metrics for hapi-swaggered-ui
hapi-swaggered
A swagger documentation UI generator plugin for hapi
@leisurelink/hapi-swaggered-ui
Easy swagger-ui drop-in plugin for hapi to be used with hapi-swaggered.
hapi-iauro-swaggered
A swagger documentation UI generator plugin for hapi (works behind proxy)
hapi-swaggered-ui-fork
Easy swagger-ui drop-in plugin for hapi to be used with hapi-swaggered.
An easy swagger-ui drop-in plugin for hapi (to be used with hapi-swaggered).
npm install hapi-swaggered-ui
Typescript
Module System
Min. Node Version
Node Version
NPM Version
JavaScript (68.57%)
HTML (31.43%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
39 Stars
174 Commits
31 Forks
2 Watchers
8 Branches
9 Contributors
Updated on Jan 12, 2024
Latest Version
3.1.0
Package Id
hapi-swaggered-ui@3.1.0
Size
6.23 kB
NPM Version
6.13.2
Node Version
12.13.1
Published on
Mar 24, 2020
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
Easy swagger-ui (v3) drop-in plugin for hapi to be used with hapi-swaggered.
Supports hapi 17.x and up
For earlier versions check hapi-swaggered-ui 2.x (current default/latest npm install hapi-swaggered --save
)
1npm install hapi-swaggered-ui@next
title
: string, title of swagger uipath
: string, optional path where the docs should be located at (e.g. '/docs', defaults to: null)basePath
: string, optional url base path (e.g. used to fix reverse proxy routes)swaggerEndpoint
: Override the auto-detection of hapi-swaggered with a specific URL. (not recommended in use with hapi-swaggered; optional)swaggerOptions
: object (according to swagger-ui)
operationsSorter
: Apply a sort to the operation list of each API. It can be 'alpha' (sort by paths alphanumerically), 'method' (sort by HTTP method), null (server side sorting) or a custom function (see link above).docExpansion
: Controls how the API listing is displayed. It can be set to 'none' (default), 'list' (shows operations for each resource), or 'full' (fully expanded: shows operations and their details).validatorUrl
: By default, Swagger-UI attempts to validate specs against swagger.io's online validator (disabled for localhost). You can use this parameter to set a different validator URL, for example for locally deployed validators (Validator Badge). Setting it to false will disable validation. This parameter is relevant for Swagger 2.0 specs only.oauth2RedirectUrl
, configUrl
, displayOperationId
, displayRequestDuration
, filter
, deepLinking
, maxDisplayedTags
, tagsSorter
, parameterMacro
, modelPropertyMacro
- have a look at swagger-uiauthorization
: object - can be null or false to disable authorization through swagger-ui (e.g. in case of public apis without auth)
scope
: string, 'query' or 'header'field
: string, name of the fieldvaluePrefix
: string, prefix fields value (e.g. with 'bearer ')defaultValue
: string, default value of the api-key fieldplaceholder
: string, placeholder of the api-key fieldauth
: object, auth options as specified in route options (hapi docs), will be applied to all registered plugin routesdefaultTags
: array of strings, will be passed to the specs endpoint through the query param 'tags' (hapi-swaggered feature: tag filtering)Since hapi-swaggered exposes its plugin configuration hapi-swaggered-ui should find it's swagger endpoint automatically. In case you want to use hapi-swaggered-ui without hapi-swaggered (or the auto-detection doesn't work) you can manually set the swagger endpoint by the swaggerEndpoint option. In addition the page title can be changed through the option title.
1await server.register([ 2 require('inert'), 3 require('vision'), 4 { 5 plugin: require('hapi-swaggered-ui'), 6 options: { 7 title: 'Example API', 8 path: '/docs', 9 authorization: { // see above 10 field: 'apiKey', 11 scope: 'query', // header works as well 12 // valuePrefix: 'bearer '// prefix incase 13 defaultValue: 'demoKey', 14 placeholder: 'Enter your apiKey here' 15 }, 16 swaggerOptions: {} // see above 17 } 18 } 19])
May have a look at the example listed at https://github.com/z0mt3c/hapi-swaggered
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 2/24 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
license file not detected
Details
Reason
project is not fuzzed
Details
Reason
security policy file not detected
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
26 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