# @json-schema-tools/meta-schema

> JSON Schema Meta Schema & Generated types for typescript, rust, golang and python

Latest version **1.8.0** (published 2025-09-23) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @json-schema-tools/meta-schema
pnpm add @json-schema-tools/meta-schema
yarn add @json-schema-tools/meta-schema
bun add @json-schema-tools/meta-schema
```

## Health

**Score 55/100 (C)** — status: stable.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 1.8.0 |
| Published | 2025-09-23 |
| First published | 2020-04-03 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 29 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 7 |
| Author | Zachary Belford |
| Maintainers | belfordz |

## Links

- npm: https://www.npmjs.com/package/@json-schema-tools/meta-schema
- Repository: https://github.com/json-schema-tools/meta-schema
- Homepage: https://github.com/json-schema-tools/meta-schema#readme
- Issues: https://github.com/json-schema-tools/meta-schema/issues
- npm.io page: https://npm.io/package/@json-schema-tools/meta-schema

## Recent versions

- 1.8.0 (latest) — 2025-09-23
- 1.7.5 — 2024-05-07
- 1.7.4 — 2024-04-11
- 1.7.3 — 2024-04-11
- 1.7.2 — 2024-04-11
- 1.7.1 — 2024-04-11
- 1.7.0 — 2022-10-04
- 1.6.19 — 2021-06-24
- 1.6.18 — 2021-06-18
- 1.6.17 — 2021-06-18
- 1.6.16 — 2021-06-18
- 1.6.15 — 2021-06-18
- 1.6.14 — 2021-06-17
- 1.6.13 — 2021-06-11
- 1.6.12 — 2021-06-11
- … 38 more at https://npm.io/package/@json-schema-tools/meta-schema/versions

## README

# JSON Schema Meta Schema

This repo contains the json schema meta schema and code to package it on npm, generate typings, etc.

## Installing

### Typescript

`npm install --save @json-schema-tools/meta-schema`

### Golang

`go get github.com/json-schema-tools/meta-schema`


### Rust

`cargo install json_schema`

## Using

### Typescript
```typescript
import JSONSchema, { JSONSchemaObject, Properties, Items } from "@json-schema-tools/meta-schema"
```

### Rust

#### From a string
```rust
let foo = r#"{
    "title": "helloworld",
    "type": "string"
}"#;

let as_json_schema: JSONSchemaObject = serde_json::from_str(foo).unwrap();
```

#### Using builder pattern
```rust
let schema = JSONSchemaObjectBuilder::default()
    .title("foobar".to_string())
    ._type(Type::SimpleTypes(SimpleTypes::String))
    .build()
    .unwrap();

let as_str = serde_json::to_string(&schema).unwrap();
```

### Contributing

How to contribute, build and release are outlined in [CONTRIBUTING.md](CONTRIBUTING.md), [BUILDING.md](BUILDING.md) and [RELEASING.md](RELEASING.md) respectively. Commits in this repository follow the [CONVENTIONAL_COMMITS.md](CONVENTIONAL_COMMITS.md) specification.

---
_Source: https://npm.io/package/@json-schema-tools/meta-schema · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
