{"id":13951193,"url":"https://github.com/xAlien95/shortcut-preview","last_synced_at":"2025-07-20T13:32:23.099Z","repository":{"id":57156125,"uuid":"173683471","full_name":"xAlien95/shortcut-preview","owner":"xAlien95","description":"A React component to preview iOS Shortcuts","archived":false,"fork":false,"pushed_at":"2019-03-29T22:28:21.000Z","size":2182,"stargazers_count":27,"open_issues_count":0,"forks_count":7,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-06-30T08:59:03.910Z","etag":null,"topics":["component","react","react-component","shortcuts"],"latest_commit_sha":null,"homepage":"https://xalien95.github.io/shortcut-preview/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xAlien95.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}},"created_at":"2019-03-04T06:05:38.000Z","updated_at":"2025-01-31T18:57:45.000Z","dependencies_parsed_at":"2022-08-28T15:00:23.355Z","dependency_job_id":null,"html_url":"https://github.com/xAlien95/shortcut-preview","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/xAlien95/shortcut-preview","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xAlien95%2Fshortcut-preview","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xAlien95%2Fshortcut-preview/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xAlien95%2Fshortcut-preview/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xAlien95%2Fshortcut-preview/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xAlien95","download_url":"https://codeload.github.com/xAlien95/shortcut-preview/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xAlien95%2Fshortcut-preview/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266135013,"owners_count":23881774,"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":["component","react","react-component","shortcuts"],"created_at":"2024-08-08T06:01:15.618Z","updated_at":"2025-07-20T13:32:22.147Z","avatar_url":"https://github.com/xAlien95.png","language":"TypeScript","funding_links":[],"categories":["TypeScript","HarmonyOS"],"sub_categories":["Windows Manager"],"readme":"# Shortcut Preview\n\n [![npm version](https://img.shields.io/npm/v/shortcut-preview.svg?colorB=blue)](https://www.npmjs.com/package/shortcut-preview)\n![npm](https://img.shields.io/npm/l/shortcut-preview.svg)\n\nA React component to preview iOS Shortcuts.\n\n![Screenshot](https://i.imgur.com/FRCsrSG.png)\n\nSee the component in action on\n[xalien95.github.io/shortcut-preview](https://xalien95.github.io/shortcut-preview/).\n\n## Installation\n\nYou can install this component using [npm](https://www.npmjs.com/package/shortcut-preview):\n\n```\nnpm i shortcut-preview\n```\n\n## Usage\n\n```tsx\nimport React from 'react';\nimport ShortcutPreview from 'shortcut-preview';\n\n// JSON file containing a Shortcut converted using 'pblist-parser'\nimport shortcutData from './shortcut-data.json';\n\nexport default class App extends React.Component {\n  render() {\n    return \u003cShortcutPreview data={shortcutData} /\u003e;\n  }\n}\n```\n\nYou can optionally add a `debug` property: each action block will then show a **LOG** button to `console.log` the contents stored in its state.\n\n```tsx\nexport default class App extends React.Component {\n  render() {\n    return \u003cShortcutPreview debug data={shortcutData} /\u003e;\n  }\n}\n```\n\n## Similar Projects\n\n- [shcuts.app](https://github.com/pNre/shcuts.app)\n- [Apple Shortcuts Viewer](https://github.com/BobRazowsky/shortcuts)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FxAlien95%2Fshortcut-preview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FxAlien95%2Fshortcut-preview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FxAlien95%2Fshortcut-preview/lists"}