{"id":49593063,"url":"https://github.com/dimuzzo/sentinel-shield","last_synced_at":"2026-05-04T01:40:33.350Z","repository":{"id":348378170,"uuid":"1197754853","full_name":"dimuzzo/sentinel-shield","owner":"dimuzzo","description":"A modular TypeScript library for data sanitization and security.","archived":false,"fork":false,"pushed_at":"2026-03-31T22:32:20.000Z","size":55,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-01T01:07:02.774Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dimuzzo.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-31T21:21:52.000Z","updated_at":"2026-03-31T22:32:24.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/dimuzzo/sentinel-shield","commit_stats":null,"previous_names":["dimuzzo/sentinel-shield"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/dimuzzo/sentinel-shield","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimuzzo%2Fsentinel-shield","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimuzzo%2Fsentinel-shield/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimuzzo%2Fsentinel-shield/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimuzzo%2Fsentinel-shield/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dimuzzo","download_url":"https://codeload.github.com/dimuzzo/sentinel-shield/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimuzzo%2Fsentinel-shield/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32591603,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T22:12:39.696Z","status":"ssl_error","status_checked_at":"2026-05-03T22:09:10.534Z","response_time":103,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":"2026-05-04T01:40:31.083Z","updated_at":"2026-05-04T01:40:33.342Z","avatar_url":"https://github.com/dimuzzo.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🛡️ Sentinel Shield\n\n![Build Status](https://github.com/dimuzzo/sentinel-shield/actions/workflows/tests.yml/badge.svg)\n![License](https://img.shields.io/github/license/dimuzzo/sentinel-shield?t=1)\n![TypeScript](https://img.shields.io/badge/language-TypeScript-blue)\n\nA lightweight, modular, and secure data sanitization library for TypeScript applications.\n\n## Overview\nSentinel Shield provides a robust defense layer for your application by automating data validation, XSS protection, and sensitive information masking.\n\n## Key Features\n* **XSS Protection:** Automatically escapes dangerous HTML tags to prevent cross-site scripting.\n* **Schema Validation:** Ensures incoming JSON objects match your expected structure.\n* **Data Masking:** Protects user privacy by masking emails, credit cards, and phone numbers.\n\n## Installation\nThe project can be used locally by cloning the repository:\n\n```bash\ngit clone https://github.com/dimuzzo/sentinel-shield.git\ncd sentinel-shield\nnpm install\n```\n\n## Quick Start\n```typescript\nimport { Sentinel, type Schema } from './src/index';\n\nconst guard = new Sentinel();\n\n// 1. Protect an entire object\nconst userSchema: Schema = { username: 'string', bio: 'string' };\nconst rawData = { username: 'dev_hero', bio: '\u003cscript\u003ealert(\"hacked\")\u003c/script\u003e' };\n\nconst safeData = guard.shieldObject(userSchema, rawData);\n// bio becomes: \u0026lt;script\u0026gt;alert(\"hacked\")\u0026lt;\u0026#x2F;script\u0026gt;\n\n// 2. Mask sensitive data\nconst maskedEmail = guard.mask('dev@example.com', 'email'); // d********@example.com\n```\n\n## Testing\n```bash\nnpm test\n```\n\n## Try the Demo\nCheck out the `examples/` folder to see Sentinel Shield in action with real-world scenarios.\nRun the demo locally using:\n```bash\nnpx ts-node examples/demo.ts\n```\n\n---\n\n\u003e Created with passion by [dimuzzo](https://github.com/dimuzzo)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdimuzzo%2Fsentinel-shield","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdimuzzo%2Fsentinel-shield","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdimuzzo%2Fsentinel-shield/lists"}