
Research
/Security News
Miasma Mini Shai-Hulud Hits ImmobiliareLabs npm Packages
Miasma Mini Shai-Hulud hits @immobiliarelabs Backstage plugins, targeting GitLab and LDAP auth packages on npm.
@nldoc/api-specification
Advanced tools
An OpenAPI 3.1.0 compatible specification for the NLdoc API. This TypeScript library provides a comprehensive API framework for document conversion services, health monitoring, and file management.
This specification defines a standardized REST API for NLdoc services including:
The API follows RPC-style principles inspired by REST, using clear, action-driven endpoints and standard HTTP semantics to deliver streamlined operations.
Install the package via npm:
npm install @nldoc/api-specification
Or using yarn:
yarn add @nldoc/api-specification
import {
specification,
validExamples,
invalidExamples
} from '@nldoc/api-specification';
// Access the OpenAPI specification
console.log(specification);
// Use valid examples for testing
console.log(validExamples);
// Use invalid examples for validation testing
console.log(invalidExamples);
After building the project, the complete OpenAPI 3.1.0 specification is available at:
# Build the project first
npm run build
# The OpenAPI specification is now available at:
# - public/openapi.json (JSON format)
# - public/index.html (Interactive HTML documentation)
Clone the repository:
git clone https://gitlab.com/logius/nldoc/spec/api.git
cd api-specification
Install dependencies:
npm install
Build the project:
npm run build
npm run test - Run the test suite with Vitest and generate coverage reportsnpm run build - Build the OpenAPI specification, examples, and TypeScript filesnpm run lint - Lint the codebase using ESLintnpm run format - Format code using Prettiernpm run format:check - Check code formattingnpm run fix - Auto-fix linting and formatting issuesnpm run lint:openapi - Validate OpenAPI specification against ADR standards and generate reportsnpm run lint:spectral - Validate against Dutch API Design Rules (ADR 2.1)npm run lint:vacuum - Generate an HTML report for the OpenAPI specificationThe build process consists of several steps:
npm run build:openapi - Generates the OpenAPI JSON specificationnpm run build:examples - Extracts valid and invalid test examplesnpm run build:redocly - Generates HTML documentation using RedoclyThe specification defines the following main endpoints:
The API uses standard headers for request tracking and versioning:
X-Trace-Id: Distributed tracing identifierX-Request-Id: Unique request identifierAPI-Version: API version informationContent-Type: Content type for requests and responsesThe generated OpenAPI specification can be viewed:
public/index.html in your browserRun the test suite:
npm test
We welcome contributions! Please ensure:
npm test)npm run format:check)npm run lint)npm run lint:openapi)npm run lint:spectral)This project is licensed under the European Union Public License 1.2 - see LICENSE for details.
FAQs
Specification for NLdoc API
The npm package @nldoc/api-specification receives a total of 100 weekly downloads. As such, @nldoc/api-specification popularity was classified as not popular.
We found that @nldoc/api-specification demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers 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.

Research
/Security News
Miasma Mini Shai-Hulud hits @immobiliarelabs Backstage plugins, targeting GitLab and LDAP auth packages on npm.

Security News
Rolldown paused Rust React Compiler integration after a 5MB binary size increase raised concerns about shipping React-specific code to all Vite users.

Security News
/Research
Mini Shai-Hulud expands into the Go ecosystem after hitting LeoPlatform npm packages and targeting GitHub Actions workflows.