Gathering detailed insights and metrics for @aws-amplify/api-graphql
Gathering detailed insights and metrics for @aws-amplify/api-graphql
Gathering detailed insights and metrics for @aws-amplify/api-graphql
Gathering detailed insights and metrics for @aws-amplify/api-graphql
A declarative JavaScript library for application development using cloud services.
npm install @aws-amplify/api-graphql
2024-11-25 Amplify JS release - aws-amplify@6.10.0
Published on 25 Nov 2024
2024-11-20 Amplify JS release - aws-amplify@6.9.0
Published on 20 Nov 2024
aws-amplify@6.8.2
Published on 13 Nov 2024
aws-amplify@6.8.1
Published on 13 Nov 2024
2024-10-31 Amplify JS release - aws-amplify@6.8.0
Published on 01 Nov 2024
2024-10-30 Amplify JS release - aws-amplify@6.7.0
Published on 30 Oct 2024
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
9,440 Stars
9,756 Commits
2,133 Forks
213 Watching
92 Branches
480 Contributors
Updated on 28 Nov 2024
TypeScript (92.68%)
C (3.67%)
JavaScript (1.25%)
Kotlin (1.12%)
Swift (0.48%)
Objective-C (0.47%)
Java (0.12%)
Ruby (0.1%)
Shell (0.09%)
Objective-C++ (0.03%)
Cumulative downloads
Total Downloads
Last day
-5.7%
133,383
Compared to previous day
Last week
1.1%
729,983
Compared to previous week
Last month
6%
3,190,105
Compared to previous month
Last year
29%
33,601,126
Compared to previous year
Note aws-amplify 6 has been released. If you are looking for upgrade guidance click here
AWS Amplify provides a declarative and easy-to-use interface across different categories of cloud operations. AWS Amplify goes well with any JavaScript based frontend workflow and React Native for mobile developers.
Our default implementation works with Amazon Web Services (AWS), but AWS Amplify is designed to be open and pluggable for any custom backend or service.
Category | AWS Provider | Description |
---|---|---|
Authentication | Amazon Cognito | APIs and Building blocks to create Authentication experiences. |
Analytics | Amazon Pinpoint | Collect Analytics data for your application including tracking user sessions. |
REST API | Amazon API Gateway | Sigv4 signing and AWS auth for API Gateway and other REST endpoints. |
GraphQL API | AWS AppSync | Interact with your GraphQL or AWS AppSync endpoint(s). |
DataStore | AWS AppSync | Programming model for shared and distributed data, with simple online/offline synchronization. |
Storage | Amazon S3 | Manages content in public, protected, private storage buckets. |
Geo (Developer preview) | Amazon Location Service | Provides APIs and UI components for maps and location search for JavaScript-based web apps. |
Push Notifications | Amazon Pinpoint | Allows you to integrate push notifications in your app with Amazon Pinpoint targeting and campaign management support. |
Interactions | Amazon Lex | Create conversational bots powered by deep learning technologies. |
PubSub | AWS IoT | Provides connectivity with cloud-based message-oriented middleware. |
Internationalization | --- | A lightweight internationalization solution. |
Cache | --- | Provides a generic LRU cache for JavaScript developers to store data with priority and expiration settings. |
Predictions | Various* | Connect your app with machine learning services like NLP, computer vision, TTS, and more. |
AWS Amplify is available as aws-amplify
on npm.
To get started pick your platform from our Getting Started home page
If you are using default exports from any Amplify package, then you will need to migrate to using named exports. For example:
1- import Amplify from 'aws-amplify'; 2+ import { Amplify } from 'aws-amplify' 3 4- import Analytics from '@aws-amplify/analytics'; 5+ import { Analytics } from '@aws-amplify/analytics'; 6// or better 7+ import { Analytics } from 'aws-amplify'; 8 9- import Storage from '@aws-amplify/storage'; 10+ import { Storage } from '@aws-amplify/storage'; 11// or better 12+ import { Storage } from 'aws-amplify';
Datastore predicate syntax has changed, impacting the DataStore.query
, DataStore.save
, DataStore.delete
, and DataStore.observe
interfaces. For example:
1- await DataStore.delete(Post, (post) => post.status('eq', PostStatus.INACTIVE)); 2+ await DataStore.delete(Post, (post) => post.status.eq(PostStatus.INACTIVE)); 3 4- await DataStore.query(Post, p => p.and( p => [p.title('eq', 'Amplify Getting Started Guide'), p.score('gt', 8)])); 5+ await DataStore.query(Post, p => p.and( p => [p.title.eq('Amplify Getting Started Guide'), p.score.gt(8)]));
npm install -g @aws-amplify/cli
amplify codegen models
Storage.list
has changed the name of the maxKeys
parameter to pageSize
and has a new return type that contains the results list. For example:
1- const photos = await Storage.list('photos/', { maxKeys: 100 }); 2- const { key } = photos[0]; 3 4+ const photos = await Storage.list('photos/', { pageSize: 100 }); 5+ const { key } = photos.results[0];
Storage.put
with resumable turned on has changed the key to no longer include the bucket name. For example:
1- let uploadedObjectKey; 2- Storage.put(file.name, file, { 3- resumable: true, 4- // Necessary to parse the bucket name out to work with the key 5- completeCallback: (obj) => uploadedObjectKey = obj.key.substring( obj.key.indexOf("/") + 1 ) 6- } 7 8+ let uploadedObjectKey; 9+ Storage.put(file.name, file, { 10+ resumable: true, 11+ completeCallback: (obj) => uploadedObjectKey = obj.key 12+ }
Analytics.record
no longer accepts string as input. For example:
1- Analytics.record('my example event'); 2+ Analytics.record({ name: 'my example event' });
The JS
export has been removed from @aws-amplify/core
in favor of exporting the functions it contained.
Any calls to Amplify.Auth
, Amplify.Cache
, and Amplify.ServiceWorker
are no longer supported. Instead, your code should use the named exports. For example:
1- import { Amplify } from 'aws-amplify'; 2- Amplify.configure(...); 3- // ... 4- Amplify.Auth.signIn(...); 5 6+ import { Amplify, Auth } from 'aws-amplify'; 7+ Amplify.configure(...); 8+ // ... 9+ Auth.signIn(...);
@react-native-community/netinfo
@react-native-async-storage/async-storage
// React Native
yarn add aws-amplify amazon-cognito-identity-js @react-native-community/netinfo @react-native-async-storage/async-storage
npx pod-install
// Expo
yarn add aws-amplify @react-native-community/netinfo @react-native-async-storage/async-storage
AWS.credentials
and AWS.config
don’t exist anymore in Amplify JavaScript.
aws-sdk@2.x
has been removed from Amplify@3.x.x
in favor of version 3 of aws-sdk-js. We recommend to migrate to aws-sdk-js-v3 if you rely on AWS services that are not supported by Amplify, since aws-sdk-js-v3 is imported modularly.If you can't migrate to aws-sdk-js-v3 or rely on aws-sdk@2.x, you will need to import it separately.
If you are using exported paths within your Amplify JS application, (e.g. import from "@aws-amplify/analytics/lib/Analytics"
) this will now break and no longer will be supported. You will need to change to named imports:
1import { Analytics } from 'aws-amplify';
If you are using categories as Amplify.<Category>
, this will no longer work and we recommend to import the category you are needing to use:
1import { Auth } from 'aws-amplify';
For more information on contributing to DataStore / how DataStore works, see the DataStore Docs
No vulnerabilities found.
Reason
30 commit(s) and 24 issue activity found in the last 90 days -- score normalized to 10
Reason
no dangerous workflow patterns detected
Reason
all changesets reviewed
Reason
license file detected
Details
Reason
security policy file detected
Details
Reason
SAST tool detected
Details
Reason
0 existing vulnerabilities detected
Reason
binaries present in source code
Details
Reason
dependency not pinned by hash detected -- score normalized to 5
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
project is not fuzzed
Details
Score
Last Scanned on 2024-11-25
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More