{"id":13809746,"url":"https://microsoft.github.io/sarif-web-component/","last_synced_at":"2025-05-14T08:33:32.131Z","repository":{"id":40444047,"uuid":"160718820","full_name":"microsoft/sarif-web-component","owner":"microsoft","description":" A React-based component for viewing SARIF files.","archived":false,"fork":false,"pushed_at":"2024-04-19T19:26:48.000Z","size":1991,"stargazers_count":72,"open_issues_count":26,"forks_count":29,"subscribers_count":15,"default_branch":"main","last_synced_at":"2024-05-09T17:51:36.851Z","etag":null,"topics":["react","react-components","sarif"],"latest_commit_sha":null,"homepage":"","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/microsoft.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":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-12-06T19:01:07.000Z","updated_at":"2024-06-19T00:23:19.602Z","dependencies_parsed_at":"2024-06-19T00:23:11.329Z","dependency_job_id":null,"html_url":"https://github.com/microsoft/sarif-web-component","commit_stats":{"total_commits":366,"total_committers":8,"mean_commits":45.75,"dds":0.03551912568306015,"last_synced_commit":"b28b853ce0f7199deb3093195b3030fc9367fb48"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoft%2Fsarif-web-component","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoft%2Fsarif-web-component/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoft%2Fsarif-web-component/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoft%2Fsarif-web-component/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/microsoft","download_url":"https://codeload.github.com/microsoft/sarif-web-component/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225013986,"owners_count":17407157,"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":["react","react-components","sarif"],"created_at":"2024-08-04T02:00:35.428Z","updated_at":"2024-11-19T02:31:06.604Z","avatar_url":"https://github.com/microsoft.png","language":"TypeScript","funding_links":[],"categories":["CodeQL SARIF","[SARIF Viewers](https://sarifweb.azurewebsites.net/#Viewers)"],"sub_categories":[],"readme":"\n[![npm version](https://img.shields.io/npm/v/@microsoft/sarif-web-component.svg?style=flat)](https://www.npmjs.com/package/@microsoft/sarif-web-component)\n\n# SARIF Web Component\n\nA React-based component for viewing [SARIF](https://www.sarif.info) files. [Try it out](https://microsoft.github.io/sarif-web-component/).\n\n## Usage\n\n```\nnpm install @microsoft/sarif-web-component\n```\n\n```js\nimport * as React from 'react'\nimport * as ReactDOM from 'react-dom'\nimport {Viewer} from '@microsoft/sarif-web-component'\n\nReactDOM.render(\u003cViewer logs={arrayOfLogs} /\u003e, document.body.firstChild)\n```\nIn the HTML page hosting this component, `\u003cmeta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\"\u003e` is required to avoid text rendering issues.\n\n## Publishing\nUpdate the package version. Run workflow `Publish`. Make sure Repository secret `NODE_AUTH_TOKEN` exists.\n\n## Publishing (Manual)\nIn your local clone of this repo, do the following. Double-check `package.json` `name` in case it was modified for development purposes.\n```\ngit pull\nnpm install\nnpx webpack --config ./webpack.config.npm.js\nnpm login\nnpm publish\n```\n\nFor a scoped non-paid accounts (such as for personal testing), publish would require: `npm publish --access public`.\nFor a dry-run publish: `npm publish --dry-run`. Careful: the typo `--dryrun` results in a real publish.\n\n## Publishing (Local/Private)\nAs needed, run `git pull` and `npm install`. Then...\n```\nnpx webpack --config ./webpack.config.npm.js\nnpm pack\n```\nOur convention is to move/keep the tarballs in the `packages` directory.\n\n## Bundle Size Analysis\nIn `webpack.config.common.js` temporarily disable `stats: 'minimal'`.\n\n```\nnpx webpack --profile --json \u003e stats.json\nnpx webpack-bundle-analyzer stats.json\nrm stats.json\n```\n\n## Contributing\n\nThis project welcomes contributions and suggestions.  Most contributions require you to agree to a\nContributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us\nthe rights to use your contribution. For details, visit https://cla.microsoft.com.\n\nWhen you submit a pull request, a CLA-bot will automatically determine whether you need to provide\na CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions\nprovided by the bot. You will only need to do this once across all repos using our CLA.\n\nThis project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).\nFor more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or\ncontact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/microsoft.github.io%2Fsarif-web-component%2F","html_url":"https://awesome.ecosyste.ms/projects/microsoft.github.io%2Fsarif-web-component%2F","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/microsoft.github.io%2Fsarif-web-component%2F/lists"}