# Install generate-json-schema with Homebrew

Generate a JSON Schema from Sample JSON. Version 2.6.0 via Homebrew; verified from local package data.

## Install

```sh
sudo av install brew:generate-json-schema
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install generate-json-schema
```

  Evidence: local Homebrew formula metadata

## Package facts

- **Package key:** brew:generate-json-schema
- **Package manager:** Homebrew
- **Version:** 2.6.0
- **Source summary:** Generate a JSON Schema from Sample JSON
- **Homepage:** <https://github.com/Nijikokun/generate-schema>
- **Repository:** <https://github.com/Nijikokun/generate-schema>
- **Generated:** 2026-08-03T19:37:03+00:00

## Executables

- generate-schema (alias)

## Install behavior

- Bottle: not available

## Freshness

- Page generated: 2026-08-03
- Package-manager version: 2.6.0
## Project history and usage

Generate Schemas is the command-line and Node.js package distributed upstream as generate-schema and packaged in Homebrew as generate-json-schema. It derives schema-like definitions from sample JSON objects, turning example payloads into JSON Schema, database table definitions, ODM schemas, and warehouse schemas.

### Project history

The GitHub repository and npm package were created in February 2015. The README presents the project as a converter from JSON objects to MySQL table schemas, JSON Schema, Mongoose schemas, ClickHouse schemas, Google BigQuery schemas, and generic templates, showing an evolution from a narrow JSON Schema helper into a small multi-target schema generator.

### Adoption history

Adoption is mostly in JavaScript and CLI workflows rather than as a platform standard. Its npm package is the upstream distribution, while Homebrew exposes the executable for users who want a system-level generate-schema command without managing a Node project.

### How it is used

Practitioners use it when they have representative JSON and need a quick starter schema for validation, documentation, database modeling, or exploratory ingestion. The README documents both a file-oriented CLI and a library API, plus an interactive REPL mode when no file is supplied.

### Why package nerds care

For package-manager users, generate-json-schema is a convenience wrapper around a Node ecosystem utility: useful for bootstrapping schemas quickly, but not a substitute for hand-maintained contracts in production APIs.

### Timeline

- 2015: GitHub repository and npm package were created.
- 2023: npm registry metadata showed the package still distributed as generate-schema 2.6.0.
- 2024: the GitHub repository recorded later source activity after the original 2015 publication.

### Related projects

- Related schema targets include JSON Schema, Mongoose, MySQL, Google BigQuery, and ClickHouse.

### Sources

- <https://formulae.brew.sh/formula/generate-json-schema>
- <https://github.com/Nijikokun/generate-schema>
- <https://raw.githubusercontent.com/Nijikokun/generate-schema/master/readme.md>
- <https://registry.npmjs.org/generate-schema>


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals


## Combined YAML source

View the package source record on GitHub. [combined/generate-json-schema.yml](https://github.com/mxcl/pkgdb/blob/main/combined/generate-json-schema.yml)


## Sources

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- cross-ecosystem install command graph
