# 使用 Homebrew 安装 generate-json-schema

查看 generate-json-schema 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

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

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:generate-json-schema
- **软件包管理器:** Homebrew
- **版本:** 2.6.0
- **来源摘要:** Generate a JSON Schema from Sample JSON
- **主页:** <https://github.com/Nijikokun/generate-schema>
- **仓库:** <https://github.com/Nijikokun/generate-schema>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- generate-schema (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 2.6.0
## 项目历史与用法

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.

### 项目历史

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 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.

### 使用方式

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.

### 为什么软件包爱好者会关心

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.

### 时间线

- 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.

### 来源

- <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>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- 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)


## 来源

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