
Product
Introducing Reports: An Extensible Reporting Framework for Socket Data
Explore exportable charts for vulnerabilities, dependencies, and usage with Reports, Socket’s new extensible reporting framework.
Blazing fast alternative to Swagger. Demo
Complete API docs up and running in less than 5 mins!
yarn add quantor
import quantor from 'quantor'
const json = {...JSON API Docs}
quantor(json)(html => /* do something with html */)
// Express or GCF example
quantor(json)(html => res.set('Content-Type', 'text/html').send(new Buffer(html)))
Quantor generates the docs based on the JSON provided. The JSON must follow the Quantor JSON Spec. See this example file for the structure expected or see below.
Basic structure:
{
"title": "String",
"description": "String",
"base": "String",
"endpoints": [
{
"name": "String",
"display": "String",
"description": "String",
"handlers": {
"GET": {
"optionalQueryParams": [
{
"name": "String",
"description": "String",
"type": "String",
"default": "Any"
}
],
"responses": [
{
"code": 200,
"model": "User"
}
]
}
}
}
],
"models": {
"User": {
"name": "String",
"age": "Integer"
}
}
}
Facts:
Check out our contributer docs and check out our issues. Pick anything that tickles your fancy or create an issue that you would find useful.
FAQs
Simple SSR API docs
The npm package quantor receives a total of 3 weekly downloads. As such, quantor popularity was classified as not popular.
We found that quantor demonstrated a not healthy version release cadence and project activity because the last version was released 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.

Product
Explore exportable charts for vulnerabilities, dependencies, and usage with Reports, Socket’s new extensible reporting framework.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.