{"id":29040720,"url":"https://github.com/pushchain/frames-validator","last_synced_at":"2025-06-26T14:36:42.279Z","repository":{"id":231591745,"uuid":"782152205","full_name":"pushchain/frames-validator","owner":"pushchain","description":null,"archived":false,"fork":false,"pushed_at":"2024-04-08T13:23:07.000Z","size":50,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-23T13:54:02.621Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/pushchain.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,"publiccode":null,"codemeta":null}},"created_at":"2024-04-04T18:29:33.000Z","updated_at":"2024-04-08T13:23:11.000Z","dependencies_parsed_at":"2024-12-04T19:38:40.084Z","dependency_job_id":"3d23add3-cfef-4ac1-a229-80a22e9df362","html_url":"https://github.com/pushchain/frames-validator","commit_stats":null,"previous_names":["push-protocol/frames-validator","pushchain/frames-validator"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pushchain/frames-validator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pushchain%2Fframes-validator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pushchain%2Fframes-validator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pushchain%2Fframes-validator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pushchain%2Fframes-validator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pushchain","download_url":"https://codeload.github.com/pushchain/frames-validator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pushchain%2Fframes-validator/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262085910,"owners_count":23256541,"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":[],"created_at":"2025-06-26T14:36:37.660Z","updated_at":"2025-06-26T14:36:42.259Z","avatar_url":"https://github.com/pushchain.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# frames-validator\n\nThis package can be used by a frame server to validate incoming requests from a Push Chat Client and get the trustedData from it.\n\n### Installation\n\n```bash\nnpm i @pushprotocol/frames-validator\n```\n\n### Usage\n\n```javascript\nimport verifyFrameMessage from \"@pushprotocol/frames-validator\";\n\nconst {isValid, trustedData} = await verifyFrameMessage(trustedData);\n```\n\n### Sample Response\n\n- Returns `isValid` as `true` if the user originally made this frame interaction, otherwise return `isValid` as `false`.\n\n```javascript\n{\n  isValid: true,\n  trustedData: {\n    url: 'frame_url',\n    unixTimestamp: timestamp,\n    buttonIndex: 3,\n    inputText: '',\n    state: '',\n    transactionId: 'undefined',\n    address: 'user_address',\n    messageId: 'previous:v2:11bce1cdfdd3ce9c05b6aeb564be993e2176f2e823c9f16aa361aa67d8fb7883',\n    chatId: 'chatid:c3ea478558ffcea3dc0d08f4d52629af1125b1577490d2c95c9f56d771c8186a',\n    clientProtocol: 'push',\n    env: 'staging'\n  }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpushchain%2Fframes-validator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpushchain%2Fframes-validator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpushchain%2Fframes-validator/lists"}