{"id":13475747,"url":"https://github.com/line/clova-cek-sdk-nodejs","last_synced_at":"2025-03-27T00:31:50.362Z","repository":{"id":42234668,"uuid":"140407601","full_name":"line/clova-cek-sdk-nodejs","owner":"line","description":"SDK of the Clova CEK for Node.js","archived":true,"fork":false,"pushed_at":"2023-04-26T07:13:08.000Z","size":1789,"stargazers_count":34,"open_issues_count":27,"forks_count":28,"subscribers_count":38,"default_branch":"master","last_synced_at":"2025-03-18T04:38:50.458Z","etag":null,"topics":["cek-sdk","clova","line"],"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/line.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-07-10T09:15:58.000Z","updated_at":"2023-05-30T19:16:43.000Z","dependencies_parsed_at":"2024-06-19T19:04:53.282Z","dependency_job_id":"6c401f52-882a-4ade-b930-f91678fa4abd","html_url":"https://github.com/line/clova-cek-sdk-nodejs","commit_stats":{"total_commits":62,"total_committers":16,"mean_commits":3.875,"dds":0.8225806451612903,"last_synced_commit":"76426c26ac4e0a8de580bbe5f298252b83fb6128"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/line%2Fclova-cek-sdk-nodejs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/line%2Fclova-cek-sdk-nodejs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/line%2Fclova-cek-sdk-nodejs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/line%2Fclova-cek-sdk-nodejs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/line","download_url":"https://codeload.github.com/line/clova-cek-sdk-nodejs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245760863,"owners_count":20667889,"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":["cek-sdk","clova","line"],"created_at":"2024-07-31T16:01:23.186Z","updated_at":"2025-03-27T00:31:50.093Z","avatar_url":"https://github.com/line.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# Clova CEK SDK Nodejs\n\n[![Build Status](https://travis-ci.org/line/clova-cek-sdk-nodejs.svg?branch=master)](https://travis-ci.org/line/clova-cek-sdk-nodejs)\n\n## Getting Started\n\n### Installing\n\n```bash\n$ npm install @line/clova-cek-sdk-nodejs\n```\n\n### Example\n\n```js\nconst clova = require('@line/clova-cek-sdk-nodejs');\nconst express = require('express');\nconst bodyParser = require('body-parser');\n\nconst clovaSkillHandler = clova.Client\n  .configureSkill()\n  .onLaunchRequest(responseHelper =\u003e {\n    responseHelper.setSimpleSpeech({\n      lang: 'ja',\n      type: 'PlainText',\n      value: 'おはよう',\n    });\n  })\n  .onIntentRequest(async responseHelper =\u003e {\n    const intent = responseHelper.getIntentName();\n    const sessionId = responseHelper.getSessionId();\n\n    switch (intent) {\n      case 'Clova.YesIntent':\n        // Build speechObject directly for response\n        responseHelper.setSimpleSpeech({\n          lang: 'ja',\n          type: 'PlainText',\n          value: 'はいはい',\n        });\n        break;\n      case 'Clova.NoIntent':\n        // Or build speechObject with SpeechBuilder for response\n        responseHelper.setSimpleSpeech(\n          clova.SpeechBuilder.createSpeechText('いえいえ')\n        );\n        break;\n    }\n  })\n  .onSessionEndedRequest(responseHelper =\u003e {\n    const sessionId = responseHelper.getSessionId();\n\n    // Do something on session end\n  })\n  .handle();\n\nconst app = new express();\nconst clovaMiddleware = clova.Middleware({ applicationId: \"YOUR_APPLICATION_ID\" });\n// Use `clovaMiddleware` if you want to verify signature and applicationId.\n// Please note `applicationId` is required when using this middleware.\napp.post('/clova', clovaMiddleware, clovaSkillHandler);\n\n// Or you can simply use `bodyParser.json()` to accept any request without verifying, e.g.,\napp.post('/clova', bodyParser.json(), clovaSkillHandler);\n```\n\n\u003e **NOTE:** `async/await` is part of ECMAScript 2017 and is not supported some browsers, so use with caution.\n\n### Documentation\n\n* [Clova Platform Guide](https://clova-developers.line.me/guide/)\n\n## Contributing\n\nPlease check [CONTRIBUTING](CONTRIBUTING.md).\n\n### npm scripts\n\n - `npm test`: Run test suite\n - `npm start`: Run `npm run build` in watch mode\n - `npm run test:watch`: Run test suite in [interactive watch mode](http://facebook.github.io/jest/docs/cli.html#watch)\n - `npm run test:prod`: Run linting and generate coverage\n - `npm run build`: Generate bundles and typings, create docs\n - `npm run lint`: Lints code\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fline%2Fclova-cek-sdk-nodejs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fline%2Fclova-cek-sdk-nodejs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fline%2Fclova-cek-sdk-nodejs/lists"}