# @aws-amplify/data-schema

Latest version **1.26.1** (published 2026-07-28) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @aws-amplify/data-schema
pnpm add @aws-amplify/data-schema
yarn add @aws-amplify/data-schema
bun add @aws-amplify/data-schema
```

## Health

**Score 70/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; recently updated; high maintenance score; high quality score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 1.26.1 |
| Published | 2026-07-28 |
| First published | 2023-11-09 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 5 |
| Unpacked size | 2.4 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 18 |
| Maintainers | amzn-oss, aws-amplify-ops, amplify-studio-uibuilder, amplify-codegen, amplify-data-dev-npm, aws-amplify-data-runtime |

## Links

- npm: https://www.npmjs.com/package/@aws-amplify/data-schema
- Repository: https://github.com/aws-amplify/amplify-data
- Homepage: https://github.com/aws-amplify/amplify-data#readme
- Issues: https://github.com/aws-amplify/amplify-data/issues
- npm.io page: https://npm.io/package/@aws-amplify/data-schema

## Dependencies (5)

- [rxjs](https://npm.io/package/rxjs.md) ^7.8.1
- [@types/aws-lambda](https://npm.io/package/@types/aws-lambda.md) ^8.10.134
- [@types/json-schema](https://npm.io/package/@types/json-schema.md) ^7.0.15
- [@smithy/util-base64](https://npm.io/package/@smithy/util-base64.md) ^3.0.0
- [@aws-amplify/data-schema-types](https://npm.io/package/@aws-amplify/data-schema-types.md) *

## Recent versions

- 1.26.1 (latest) — 2026-07-28
- 0.0.0-optimize-selection-sets-20260219140929 (optimize-selection-sets) — 2026-02-19
- 0.0.0-short-circuit-sel-set-20251231220858 (short-circuit-sel-set) — 2025-12-31
- 0.0.0-sel-set-20251217001308 (sel-set) — 2025-12-17
- 0.0.0-nullable-query-field-20250507172859 (nullable-query-field) — 2025-05-07
- 0.0.0-allow-customtypes-ref-in-arguments-20250218192650 (allow-customtypes-ref-in-arguments) — 2025-02-18
- 0.0.0-reinvent-blocked-days-20241206173416 (reinvent-blocked-days) — 2024-12-06
- 0.0.0-rds-datasource-poc-20241119180841 (rds-datasource-poc) — 2024-11-19
- 0.0.0-ai-next-20241113232635 (ai-next) — 2024-11-13
- 0.0.0-testing-npm-token-rotation-20241112233154 (testing-npm-token-rotation) — 2024-11-12
- 0.0.0-ai-streaming-20241108213402 (ai-streaming) — 2024-11-08
- 0.0.0-define-conversation-handler-20241017204952 (define-conversation-handler) — 2024-10-17
- 0.0.0-asynclambda-20240912010846 (asynclambda) — 2024-09-12
- 0.0.0-ai-20240906174753 (ai) — 2024-09-06
- 0.0.0-top-down-types-refactor-20240530185138 (top-down-types-refactor) — 2024-05-30
- … 225 more at https://npm.io/package/@aws-amplify/data-schema/versions

## README

# AWS Amplify Data Schema Builder

This repository contains the implementation for the Amplify Data Schema Builder package `@aws-amplify/data-schema`, the Amplify Data Client `generateClient()`, as well as supporting utilities, automated tests, and performance benchmarks.

These packages are dependencies of `@aws-amplify/backend` and `aws-amplify` (Amplify JS). _They are not intended to be installed and used directly._

## Quickstart

To get started with AWS Amplify, visit [AWS Amplify Quickstart](https://docs.amplify.aws/react/start).

```bash
npm create amplify@latest
```

## Package Description

`@aws-amplify/data-schema` contains:

1. Schema Builder API implementation (`a.schema()`, `a.model()`, `a.string()`, etc.)
1. Type mapping that emits client-side types from the schema definition
1. `generateClient()` factory for generating a strongly-typed client from the schema definition

## Security

If you discover a potential security issue in this project we ask that you notify AWS/Amazon Security via our [vulnerability reporting page](http://aws.amazon.com/security/vulnerability-reporting/). Please do **not** create a public GitHub issue.

## Code of Conduct

This project has adopted the [Amazon Open Source Code of Conduct](https://aws.github.io/code-of-conduct).
For more information see the [Code of Conduct FAQ](https://aws.github.io/code-of-conduct-faq) or contact
opensource-codeofconduct@amazon.com with any additional questions or comments.

## Community

Join the [Discord Server](https://discord.com/invite/amplify).

## Contributing Guidelines

Thank you for your interest in contributing to our project. Please visit [CONTRIBUTING](CONTRIBUTING.md) for additional information on contributing to this project.

## License

This project is licensed under the Apache-2.0 License.

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