# @aws-amplify/appsync-modelgen-plugin

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

## Install

```sh
npm install @aws-amplify/appsync-modelgen-plugin
pnpm add @aws-amplify/appsync-modelgen-plugin
yarn add @aws-amplify/appsync-modelgen-plugin
bun add @aws-amplify/appsync-modelgen-plugin
```

## Health

**Score 60/100 (C)** — status: active.

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

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 2.15.3 |
| Published | 2026-07-23 |
| First published | 2020-11-09 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 10 |
| Unpacked size | 1.1 MB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 58 |
| Author | Amazon Web Services |
| Maintainers | amzn-oss, aws-amplify-ops, amplify-studio-uibuilder, amplify-codegen, amplify-data-dev-npm, aws-amplify-data-runtime |
| Keywords | graphql, appsync, aws, amplify, codegen |

## Links

- npm: https://www.npmjs.com/package/@aws-amplify/appsync-modelgen-plugin
- Repository: https://github.com/aws-amplify/amplify-codegen
- Homepage: https://github.com/aws-amplify/amplify-codegen#readme
- Issues: https://github.com/aws-amplify/amplify-codegen/issues
- npm.io page: https://npm.io/package/@aws-amplify/appsync-modelgen-plugin

## Dependencies (10)

- [chalk](https://npm.io/package/chalk.md) ^3.0.0
- [pluralize](https://npm.io/package/pluralize.md) ^8.0.0
- [ts-dedent](https://npm.io/package/ts-dedent.md) ^1.1.0
- [change-case](https://npm.io/package/change-case.md) ^4.1.1
- [strip-indent](https://npm.io/package/strip-indent.md) ^3.0.0
- [lower-case-first](https://npm.io/package/lower-case-first.md) ^2.0.1
- [@graphql-tools/utils](https://npm.io/package/@graphql-tools/utils.md) ^6.0.18
- [graphql-transformer-common](https://npm.io/package/graphql-transformer-common.md) ^4.25.1
- [@graphql-codegen/plugin-helpers](https://npm.io/package/@graphql-codegen/plugin-helpers.md) ^3.1.1
- [@graphql-codegen/visitor-plugin-common](https://npm.io/package/@graphql-codegen/visitor-plugin-common.md) ^1.22.0

## Alternatives

- [@opentelemetry/exporter-zipkin](https://npm.io/package/@opentelemetry/exporter-zipkin.md) — 14.8M weekly downloads
- [pusher-js](https://npm.io/package/pusher-js.md) — 2.0M weekly downloads
- [browserify](https://npm.io/package/browserify.md) — 1.7M weekly downloads
- [sqs-consumer](https://npm.io/package/sqs-consumer.md) — 1.7M weekly downloads
- [@sanity/eventsource](https://npm.io/package/@sanity/eventsource.md) — 930.8K weekly downloads

## Recent versions

- 2.15.3 (latest) — 2026-07-23
- 2.15.2-primary-key-info-error-fix.0 (primary-key-info-error-fix) — 2024-12-17
- 2.15.1-ai-next.0 (ai-next) — 2024-11-13
- 2.13.3-ai-streaming.0 (ai-streaming) — 2024-10-17
- 2.12.4-raven.0 (raven) — 2024-08-15
- 2.11.0-ztestgen2.0 (ztestgen2) — 2024-04-25
- 2.11.0-associated-field-native.0 (associated-field-native) — 2024-04-24
- 2.11.0-gen2-release-0423.0 (gen2-release-0423) — 2024-04-23
- 2.11.0-gen2-release-0416.0 (gen2-release-0416) — 2024-04-17
- 2.11.0-gen2-release-0411.0 (gen2-release-0411) — 2024-04-11
- 2.10.0-disable-ajv-validation.0 (disable-ajv-validation) — 2024-03-29
- 2.9.1-browser.0 (browser) — 2024-03-15
- 2.9.1-import-introspection.0 (import-introspection) — 2024-02-22
- 2.5.2-swift-codegen.0 (swift-codegen) — 2023-07-24
- 2.5.1-dev.15 (dev) — 2023-07-13
- … 277 more at https://npm.io/package/@aws-amplify/appsync-modelgen-plugin/versions

## README

<a href="https://aws-amplify.github.io/" target="_blank">
    <img src="https://s3.amazonaws.com/aws-mobile-hub-images/aws-amplify-logo.png" alt="AWS Amplify" width="550" >
</a>
 
<p>
  <a href="https://discord.gg/jWVbPfC" target="_blank">
    <img src="https://img.shields.io/discord/308323056592486420?logo=discord"" alt="Discord Chat" />  
  </a>
  <a href="https://circleci.com/gh/aws-amplify/amplify-codegen">
    <img src="https://img.shields.io/circleci/project/github/aws-amplify/amplify-codegen/main.svg" alt="build:started">
  </a>
</p>

### Reporting Bugs/Feature Requests
[![Open Bugs](https://img.shields.io/github/issues/aws-amplify/amplify-codegen/bug?color=d73a4a&label=bugs)](https://github.com/aws-amplify/amplify-codegen/issues?q=is%3Aissue+is%3Aopen+label%3Abug)
[![Feature Requests](https://img.shields.io/github/issues/aws-amplify/amplify-codegen/feature-request?color=ff9001&label=feature%20requests)](https://github.com/aws-amplify/amplify-codegen/issues?q=is%3Aissue+label%3Afeature-request+is%3Aopen)
[![Enhancements](https://img.shields.io/github/issues/aws-amplify/amplify-codegen/enhancement?color=4287f5&label=enhancement)](https://github.com/aws-amplify/amplify-codegen/issues?q=is%3Aissue+is%3Aopen+label%3Aenhancement)
[![Closed Issues](https://img.shields.io/github/issues-closed/aws-amplify/amplify-codegen?color=%2325CC00&label=issues%20closed)](https://github.com/aws-amplify/amplify-codegen/issues?q=is%3Aissue+is%3Aclosed+)

# Amplify Codegen
Amplify Codegen is a JavaScript toolkit library for frontend and mobile developers building amplify applications. Packages are mainly used for frontend code generation including:
| Package                                                                | Description                                                                                                                                                                                                          |
| ---------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| amplify-codegen                                                        | Amplify plugin for code generation                                                                                                                              |
| appsync-modelgen-plugin                                                | Model generator for Amplify Datastore                                                                                                                               |
| graphql-docs-generator                                                | Generates statements from GraphQL schema                                                                                                                               |
| graphql-types-generator                                                | Generates type annotations from GraphQL schema and statements                                                                                                                               |
## Developing

This section should get you running with **Amplify Codegen**. You will need to set [nodejs](https://nodejs.org/en/) to a version less than v16 on your system. Developing locally also requires [yarn](https://classic.yarnpkg.com/en/docs/install#mac-stable).

Start by [Forking](https://help.github.com/en/github/getting-started-with-github/fork-a-repo) the main branch of [amplify-codegen](https://github.com/aws-amplify/amplify-codegen).

```
$ git clone git@github.com:[username]/amplify-codegen.git
$ cd amplify-codegen

$ yarn setup-dev
```

To generate model files in an Amplify app using the local version of codegen, run `amplify-dev codegen models` in an Amplify app.

Before pushing code or sending a pull request, do the following:

- At the command line, run `npm run lint` at the top-level directory. This invokes lerna to check for lint errors in all of our packages.
- You can use `eslint` to fix some of the lint errors. To use it, go to the package that has errors and run `lint-fix`
- If there are any remaining lint errors, resolve them manually. Linting your code is a best practice that ensures good code quality so it's important that you don't skip this step.

## Troubleshooting
Errors sometimes occur when a different version of `amplify-cli-core` is installed, typically during the time the CLI is updated. To resolve the error, execute the following command from the top-level directory:

`rm -rf yarn.lock && yarn clean && yarn setup-dev`

## Contributing

See the contribution guideline. https://github.com/aws-amplify/amplify-codegen/blob/main/CONTRIBUTING.md

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