{"id":21644505,"url":"https://github.com/samsung/tizen-tv-webapis","last_synced_at":"2025-09-09T00:39:40.654Z","repository":{"id":40284965,"uuid":"269541891","full_name":"Samsung/tizen-tv-webapis","owner":"Samsung","description":null,"archived":false,"fork":false,"pushed_at":"2023-04-07T10:00:47.000Z","size":1231,"stargazers_count":27,"open_issues_count":12,"forks_count":11,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-11T18:24:53.317Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/Samsung.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,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-06-05T05:50:15.000Z","updated_at":"2025-02-22T14:26:33.000Z","dependencies_parsed_at":"2025-04-11T18:24:53.931Z","dependency_job_id":"b4970133-9a09-4ef3-b1fe-ad8908066ed8","html_url":"https://github.com/Samsung/tizen-tv-webapis","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Samsung/tizen-tv-webapis","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Samsung%2Ftizen-tv-webapis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Samsung%2Ftizen-tv-webapis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Samsung%2Ftizen-tv-webapis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Samsung%2Ftizen-tv-webapis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Samsung","download_url":"https://codeload.github.com/Samsung/tizen-tv-webapis/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Samsung%2Ftizen-tv-webapis/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274231105,"owners_count":25245687,"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","status":"online","status_checked_at":"2025-09-08T02:00:09.813Z","response_time":121,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-11-25T05:40:35.545Z","updated_at":"2025-09-09T00:39:40.632Z","avatar_url":"https://github.com/Samsung.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tizen-tv-webapis\n\n`tizen-tv-webapis` package is for supporting [Samsung TV Product API](https://developer.samsung.com/smarttv/develop/api-references/samsung-product-api-references.html) as `commonjs` style.\nNow we are supporting it for Typescript developers.\nPlease note that, In order to use this pacakge, `@types/tizen-tv-webapis` is required.\n\n## Supported APIs\n\n-   [WebApi](https://developer.samsung.com/smarttv/develop/api-references/samsung-product-api-references/webapi-api.html)\n-   [Adinfo](https://developer.samsung.com/smarttv/develop/api-references/samsung-product-api-references/adinfo-api.html)\n-   [AppCommon](https://developer.samsung.com/smarttv/develop/api-references/samsung-product-api-references/appcommon-api.html)\n-   [AVInfo](https://developer.samsung.com/smarttv/develop/api-references/samsung-product-api-references/avinfo-api.html)\n-   [AVPlay](https://developer.samsung.com/smarttv/develop/api-references/samsung-product-api-references/avplay-api.html)\n-   [AVPlayStore](https://developer.samsung.com/smarttv/develop/api-references/samsung-product-api-references/avplaystore-api.html)\n-   [Billing](https://developer.samsung.com/smarttv/develop/api-references/samsung-product-api-references/billing-api.html)\n-   [Network](https://developer.samsung.com/smarttv/develop/api-references/samsung-product-api-references/network-api.html)\n-   [ProductInfo](https://developer.samsung.com/smarttv/develop/api-references/samsung-product-api-references/productinfo-api.html)\n-   [Sso](https://developer.samsung.com/smarttv/develop/api-references/samsung-product-api-references/sso-api.html)\n-   [TvInfo](https://developer.samsung.com/smarttv/develop/api-references/samsung-product-api-references/tvinfo-api.html)\n-   [WidgetData](https://developer.samsung.com/smarttv/develop/api-references/samsung-product-api-references/widgetdata-api.html)\n\n## How to use\n\n-   Common js\n\n```sh\nnpm install tizen-tv-webapis\n```\n\n```html\n\u003c!-- html --\u003e\n\u003cscript type=\"text/javascript\" src=\"$WEBAPIS/webapis/webapis.js\"\u003e\u003c/script\u003e\n```\n\n```js\n// js\nconst avinfo = require('tizen-tv-webapis');\nconst { getVersion, getDolbyDigitalCompMode, isHdrTvSupport } = avinfo;\n\ngetVersion();\n```\n\n-   Typescript\n\n```sh\nnpm install tizen-tv-webapis\nnpm install @types/tizen-tv-webapis\n```\n\n```html\n\u003c!-- html --\u003e\n\u003cscript type=\"text/javascript\" src=\"$WEBAPIS/webapis/webapis.js\"\u003e\u003c/script\u003e\n```\n\n```ts\n// ts\nimport { avinfo } from 'tizen-tv-webapis';\nconst { getVersion, getDolbyDigitalCompMode, isHdrTvSupport } = avinfo;\n\ngetVersion();\n```\n\n## Enum usage\n\n### v1.0.0\n\nModules were separated. Enums must have been imported from the each modules.\n\n```ts\nimport {\n    setScreenSaver,\n    AppCommonScreenSaverState\n} from 'tizen-tv-webapis/appcommon';\n\nsetScreenSaver(AppCommonScreenSaverState.SCREEN_SAVER_ON);\n```\n\n### v2.0.0\n\nModules have been integrated in index.d.ts. Enums can be simply imported from the 'tizen-tv-webapis'.\n\n```ts\nimport { appcommon, AppCommonScreenSaverState } from 'tizen-tv-webapis';\nconst { setScreenSaver } = appcommon;\n\nsetScreenSaver(AppCommonScreenSaverState.SCREEN_SAVER_ON);\n```\n\n## Samples\n\nWe offer two samples for common js and typescript.\n\n### Common js (webpack + babel-loader)\n\n-   Path : `/samples/commonjs`\n-   How to Run\n\n1. Move to the path\n2. npm install\n3. npm run wits-init (To use WITs **Live reload feature**)\n4. npm run start\n\n### typescript (webpack + ts-loader)\n\n-   Path : `/samples/typescript`\n-   How to Run\n\n1. Move to the path\n2. npm install\n3. npm run wits-init (To use WITs **Live reload feature**)\n4. npm run start\n\n```\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamsung%2Ftizen-tv-webapis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamsung%2Ftizen-tv-webapis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamsung%2Ftizen-tv-webapis/lists"}