{"id":34961804,"url":"https://github.com/y3rsh/amplify-example","last_synced_at":"2026-04-20T22:06:17.682Z","repository":{"id":229508380,"uuid":"776810086","full_name":"y3rsh/amplify-example","owner":"y3rsh","description":"AWS Amplify Gen 2 Connected to OpenAI API Assitant","archived":false,"fork":false,"pushed_at":"2024-03-25T00:25:01.000Z","size":275,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-04T09:52:03.796Z","etag":null,"topics":["amplify","aws-amplify-react","openai","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/y3rsh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2024-03-24T14:11:02.000Z","updated_at":"2024-03-25T21:51:41.000Z","dependencies_parsed_at":"2024-03-24T20:51:40.346Z","dependency_job_id":null,"html_url":"https://github.com/y3rsh/amplify-example","commit_stats":null,"previous_names":["y3rsh/amplify-example"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/y3rsh/amplify-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/y3rsh%2Famplify-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/y3rsh%2Famplify-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/y3rsh%2Famplify-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/y3rsh%2Famplify-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/y3rsh","download_url":"https://codeload.github.com/y3rsh/amplify-example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/y3rsh%2Famplify-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32067666,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T21:26:33.338Z","status":"ssl_error","status_checked_at":"2026-04-20T21:26:22.081Z","response_time":94,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["amplify","aws-amplify-react","openai","typescript"],"created_at":"2025-12-26T22:44:55.753Z","updated_at":"2026-04-20T22:06:17.677Z","avatar_url":"https://github.com/y3rsh.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React + TypeScript + Vite\n\nThis template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.\n\nCurrently, two official plugins are available:\n\n- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh\n- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh\n\n## Expanding the ESLint configuration\n\nIf you are developing a production application, we recommend updating the configuration to enable type aware lint rules:\n\n- Configure the top-level `parserOptions` property like this:\n\n```js\nexport default {\n  // other rules...\n  parserOptions: {\n    ecmaVersion: 'latest',\n    sourceType: 'module',\n    project: ['./tsconfig.json', './tsconfig.node.json'],\n    tsconfigRootDir: __dirname,\n  },\n}\n```\n\n- Replace `plugin:@typescript-eslint/recommended` to `plugin:@typescript-eslint/recommended-type-checked` or `plugin:@typescript-eslint/strict-type-checked`\n- Optionally add `plugin:@typescript-eslint/stylistic-type-checked`\n- Install [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) and add `plugin:react/recommended` \u0026 `plugin:react/jsx-runtime` to the `extends` list\n\n\n\nsteps\n\n\u003chttps://docs.amplify.aws/gen2/start/quickstart/vite-react-app/\u003e\n\n1. `nvs` select 20.11.1 (current LTS version of Node.js) \u003chttps://nodejs.org/en\u003e\n1. can switch to pnpm, just have to override the build\n  1. `curl -fsSL https://get.pnpm.io/install.sh | sh -` \u003chttps://npm.io/installation\u003e\n1. navigate to the directory where you want to create the project\n1. `npm create vite@latest react-amplify-gen2 -- --template react-ts`\n1. `cd react-amplify-gen2`\n1. `npm install`\n1. `npm create amplify@beta`\n1. setup credentials \u003chttps://docs.amplify.aws/gen2/start/account-setup/\u003e\n  1. `npm amplify configure profile --name dev-personal-josh`\n  1. enter the access key and secret key and use `us-east-1` as the region\n  1. for a real team use \u003chttps://docs.amplify.aws/gen2/start/account-setup/#configure-iam-identity-center\u003e\n1. `npm amplify sandbox --profile dev-personal-josh`\n  1. The given region has not been bootstrapped. Sign in to console as a Root user or Admin to complete the bootstrap process and re-run the amplify sandbox command.\n  1. This auto opened the browser to the AWS console and I was already logged in as root user so I just clicked the \"Complete bootstrap\" button\n1. run the local dev server `npm run dev`\n1. `npm amplify sandbox --profile dev-personal-josh`\n  1. much output ✨ Deployment time: 253.1s\n  1. now we are running and amplify is watching for changes\n1. followed the tutorial \u003chttps://docs.amplify.aws/gen2/start/quickstart/vite-react-app/\u003e\n  1. followed the steps and the backend is now configured for user authentication\n1. \u003chttps://docs.amplify.aws/gen2/start/quickstart/vite-react-app/#build-ui\u003e\n1. `npm install @aws-amplify/ui-react`\n1. lint the project `npm run lint`\n1. build `npm run build`\n\n#### Secrets\n// npm amplify sandbox secret set openAiApiKey --profile dev-personal-josh\n// npm amplify sandbox secret set openAiAssistantId --profile dev-personal-josh\ncan call `get` to make sure they are correct\ndon't seem to be deleted when you `npm amplify sandbox delete --profile dev-personal-josh\nFor the branch deployment these are managed in the Amplify Dashboard.\n\n### openai-test.js\nexport OPENAI_API_KEY='your-api-key-here'\nnode openai-test.js\n\n\n## Next steps\n\n- [X] setup OpenAI assistant\n- [X] call my openAI assistant with secret\n- [ ] store assistant conversation as a user attribute\n- [X] display assistant conversation\n- [ ] try the CI/CD branch deployments\n- [ ] look at the telemetry/logs etc. in AWS console (only available once deployed)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fy3rsh%2Famplify-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fy3rsh%2Famplify-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fy3rsh%2Famplify-example/lists"}