
Security News
Federal Audit Finds NIST Wasted Funds With No Plan to Clear NVD Backlog
Federal audit finds NIST lacked a plan to clear the NVD backlog, wasted funds on duplicate work, and delayed use of CISA data.
@hestjs/scalar
Advanced tools
HestJS Scalar API Reference Integration - Beautiful API documentation for HestJS applications
HestJS Scalar API Reference Integration - Beautiful API documentation for HestJS applications
npm install @hestjs/scalar
import { HestFactory } from '@hestjs/core';
import { ScalarModule } from '@hestjs/scalar';
import { AppModule } from './app.module';
async function bootstrap() {
const app = await HestFactory.create(AppModule);
// Configure Scalar API Reference
app.useScalar({
path: '/docs', // Documentation path
spec: '/openapi.json', // OpenAPI spec endpoint
theme: 'hest', // Custom HestJS theme
title: 'My API Documentation'
});
// Start server
Bun.serve({
port: 3000,
fetch: app.hono().fetch,
});
}
bootstrap();
| Option | Type | Default | Description |
|---|---|---|---|
path | string | '/docs' | Path where documentation will be served |
spec | string | object | - | OpenAPI specification (URL or object) |
theme | string | 'hest' | UI theme (hest, default, purple, moon, etc.) |
title | string | 'API Documentation' | Page title |
cdn | string | - | Custom CDN URL for Scalar assets |
proxyUrl | string | - | Proxy URL for CORS issues in development |
// Coming soon: Integration with OpenAPI generation from decorators
import { ApiProperty, ApiResponse } from '@hestjs/scalar';
@Controller('/users')
export class UserController {
@Get('/')
@ApiResponse({ status: 200, description: 'List of users' })
async getUsers() {
// ...
}
}
HestJS Scalar comes with a custom HestJS theme by default. You can also use:
hest - Custom HestJS theme (default)default - Scalar default themepurple - Purple thememoon - Dark themesolarized - Solarized themenone - No theme (custom styling)app.useScalar({
path: '/docs',
spec: {
openapi: '3.0.0',
info: {
title: 'My API',
version: '1.0.0',
},
// ... your OpenAPI spec
},
theme: 'hest',
customCss: `
.scalar-app {
--scalar-color-1: #your-brand-color;
}
`,
servers: [
{ url: 'https://api.example.com', description: 'Production' },
{ url: 'http://localhost:3000', description: 'Development' }
]
});
MIT
FAQs
HestJS Scalar API Reference Integration - Beautiful API documentation for HestJS applications
We found that @hestjs/scalar demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Federal audit finds NIST lacked a plan to clear the NVD backlog, wasted funds on duplicate work, and delayed use of CISA data.

Research
/Security News
A mini Shai-Hulud campaign compromised Red Hat Cloud Services npm packages to steal developer and CI/CD secrets during installation.

Research
/Security News
The North Korean malware loader hides in a Packagist-listed package and its GitHub branch to fetch and execute remote code in a likely Contagious Interview-style lure.