{"id":26453331,"url":"https://github.com/pairprogio/nestjs-gpt-action-api-template","last_synced_at":"2026-04-09T18:01:57.264Z","repository":{"id":225410589,"uuid":"765913920","full_name":"pAIrprogio/nestjs-gpt-action-api-template","owner":"pAIrprogio","description":"Boilerplate project to quickly launch a NestJS powered API for ChatGPT GPT actions","archived":false,"fork":false,"pushed_at":"2024-03-01T22:42:44.000Z","size":425,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2024-03-01T23:32:12.652Z","etag":null,"topics":["api","boilerplate","chatgpt","gpt","gpt-actions","nestjs","template"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pAIrprogio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-01T21:43:32.000Z","updated_at":"2024-03-01T23:32:14.086Z","dependencies_parsed_at":"2024-03-01T23:42:47.896Z","dependency_job_id":null,"html_url":"https://github.com/pAIrprogio/nestjs-gpt-action-api-template","commit_stats":null,"previous_names":["pairprogio/nestjs-gpt-action-api-template"],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pAIrprogio%2Fnestjs-gpt-action-api-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pAIrprogio%2Fnestjs-gpt-action-api-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pAIrprogio%2Fnestjs-gpt-action-api-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pAIrprogio%2Fnestjs-gpt-action-api-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pAIrprogio","download_url":"https://codeload.github.com/pAIrprogio/nestjs-gpt-action-api-template/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244287756,"owners_count":20428890,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["api","boilerplate","chatgpt","gpt","gpt-actions","nestjs","template"],"created_at":"2025-03-18T18:57:48.425Z","updated_at":"2025-12-31T00:14:01.637Z","avatar_url":"https://github.com/pAIrprogio.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NestJS GPT Action API Template\n\n![Social Image with alt text](./docs/social.jpg 'Logo for this boilerplate project to quickly launch a NestJS powered API for ChatGPT actions')\n\n## Installation\n\n```bash\ngit clone https://github.com/pairprog/nestjs-gpt-action-template.git\ncd nestjs-gpt-action-template\npnpm install\ncp .env.example .env\n```\n\n## Configure\n\n- In [package.json](./package.json) `\u003e scripts \u003e tunnel` , change `domain_name` with yours\n- In [.env](./.env)\n  - Change `BASE_URL` with yours\n  - (_Not required_) Set `SENTRY_DSN` to enable Sentry error reporting\n- In [main.ts](./src/main.ts)\n  - Set the `Title` and `Description` of the API\n\n## Run Locally\n\n```bash\npnpm run tunnel\n```\n\nAnd in another terminal window\n\n```bash\npnpm run start:dev\n# or\npnpm run start:debug\n```\n\n- The OpenAPI schema's URL will be shown in the terminal window in blue.\n  - Copy it\n  - In \"actions\" section of your GPT app:\n    - Click \"Create New Action\"\n    - Click on \"Import from URL\"\n    - Paste the URL.\n    - Click \"Import\"\n\n## Add an action\n\n- Look at [wikipedia.controller.ts](./src/wikipedia/wikipedia.controller.ts) and [wikipedia.dto.ts](./src/wikipedia/wikipedia.dto.ts) to see how to add a new action\n\n## Other\n\n### OpenAI specific headers\n\nOpenAI provides identifying information with each query. You can access them in routes using the [ChatGptHeaders](./src/chat-gpt/chat-gpt.dto.ts) decorator\n\n```ts\n@Post('/my/path')\nfunction myPath(@ChatGptHeaders() headers: ChatGptHeaders) {\n  // ...\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpairprogio%2Fnestjs-gpt-action-api-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpairprogio%2Fnestjs-gpt-action-api-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpairprogio%2Fnestjs-gpt-action-api-template/lists"}