# nijikokun/generate-schema

🧞 Convert JSON Objects to MySQL, JSON Schema, Mongoose, Google BigQuery, Swagger, and more.

Repository: https://github.com/nijikokun/generate-schema
Canonical: https://ross.abutalabs.com/products/generate-schema
Language: JavaScript
License: MIT
License Family: permissive
Last push: 2024-01-30T21:06:17+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 4216, "days_push": 946, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1073, forks 134 (observed 2026-08-28T04:03:28.845298+00:00)

## What it is
A JavaScript library and CLI that converts JSON objects into schema definitions for MySQL, JSON Schema, Mongoose, ClickHouse, Google BigQuery, and a generic template. It can be used programmatically via npm or interactively through a REPL mode.

## Use cases
- convert json object to json schema
- generate mysql table schema from json
- create mongoose schema from sample json
- generate bigquery schema from json data
- generate clickhouse table schema from json
- cli tool to infer schema from json file
- generate schema documentation from json

## When to choose
- you need to bootstrap a database or validation schema from existing JSON samples
- you want a quick CLI or REPL to infer schemas without writing code
- you work across multiple schema targets like MySQL, BigQuery, and Mongoose

## When to avoid
- you need schema generation from sources other than JSON objects
- you need actively developed features or extensive type-inference customization
- you need a non-JavaScript/Node.js environment

## Facets
- artifact type: library
- maturity: maintenance
- function: serialization, developer-tools, cli
- domain: developer-tools, databases, apis
- platform: cli
- tags: json-schema, schema-generation, mongoose, bigquery, clickhouse, mysql, code-generation, data-engineering, nodejs, javascript

## Member repositories
- nijikokun/generate-schema (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:28.845298+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:53:38.309538+00:00, confidence not recorded.
  - readme: https://github.com/nijikokun/generate-schema (fetched 2026-08-28T04:03:28.845298+00:00, sha c2f1caf028f6)
  - registry_npm: https://registry.npmjs.org/generate-schema (fetched 2026-08-29T12:55:27.223099+00:00, sha 81d21d46b45c)
- Data as of 2026-08-30T08:39:29.467469+00:00.
