{"id":31792713,"url":"https://github.com/vanhumbeecka/json-validator","last_synced_at":"2026-04-18T12:03:45.060Z","repository":{"id":318062788,"uuid":"1069838856","full_name":"vanhumbeecka/json-validator","owner":"vanhumbeecka","description":null,"archived":false,"fork":false,"pushed_at":"2025-10-05T12:46:21.000Z","size":90,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-14T18:48:49.987Z","etag":null,"topics":["debugging-tool","dev-tool","json-schema","json-schema-validator","json-validation"],"latest_commit_sha":null,"homepage":"https://json-validator.codemine.be","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/vanhumbeecka.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-10-04T18:11:35.000Z","updated_at":"2025-10-08T07:54:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"e871b056-f9ae-483c-b0e9-96ae7b856d23","html_url":"https://github.com/vanhumbeecka/json-validator","commit_stats":null,"previous_names":["vanhumbeecka/json-validator"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/vanhumbeecka/json-validator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vanhumbeecka%2Fjson-validator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vanhumbeecka%2Fjson-validator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vanhumbeecka%2Fjson-validator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vanhumbeecka%2Fjson-validator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vanhumbeecka","download_url":"https://codeload.github.com/vanhumbeecka/json-validator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vanhumbeecka%2Fjson-validator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31967993,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"online","status_checked_at":"2026-04-18T02:00:07.018Z","response_time":103,"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":["debugging-tool","dev-tool","json-schema","json-schema-validator","json-validation"],"created_at":"2025-10-10T17:15:50.875Z","updated_at":"2026-04-18T12:03:45.006Z","avatar_url":"https://github.com/vanhumbeecka.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JSON Schema Validator\n\nA web-based JSON Schema Validator with a Node.js/Express backend that supports both local deployment and AWS Lambda. Validate JSON data against JSON Schema definitions, save validations, and share them via unique URLs.\n\n**Goal:** This project serves as a debug tool for verifying JSON schema mismatches. By storing validation results via the API, developers can easily share and troubleshoot schema validation issues with their team.\n\nThis app was vibe-coded using [Claude Code](https://claude.com/claude-code).\n\n## Demo\n\nTry it out at: [https://json-validator.codemine.be](https://json-validator.codemine.be)\n\n## Features\n\n- Real-time JSON validation against JSON Schema\n- Save and share validations via unique URLs\n- 1-day TTL for saved validations (production)\n- API documentation with Swagger UI (available at `/api-docs`)\n\n## Programmatic Usage\n\nThis tool can be used programmatically to store debug information from your application. Use the `POST /api/save` endpoint to save JSON schema validation failures directly from your code, then share the generated URL with your team for troubleshooting.\n\n**Example:**\n\n```javascript\nconst response = await fetch('\u003chost\u003e/api/save', {\n  method: 'POST',\n  headers: { 'Content-Type': 'application/json' },\n  body: JSON.stringify({\n    schema: { type: 'object', properties: { name: { type: 'string' } } },\n    json: { name: 123 }\n  })\n});\n\nconst { id } = await response.json();\nconsole.log(`View validation: \u003chost\u003e/${id}`);\n```\n\nSee `/api-docs` for full API documentation.\n\n## Local Setup\n\n### Prerequisites\n\n- Node.js (v14 or higher)\n- npm\n\n### Installation\n\n1. Clone the repository\n2. Install dependencies:\n   ```bash\n   npm install\n   ```\n\n3. Start the development server:\n   ```bash\n   npm run dev\n   ```\n\n4. Open your browser and navigate to:\n   ```\n   http://localhost:3000\n   ```\n\n## Deployment\n\n### Database Configuration\n\nThe application supports two database providers:\n- **SQLite** (default): Used for local development, no cleanup/TTL\n- **DynamoDB**: Used for production AWS Lambda deployment with 1-day TTL\n\n#### Environment Variables\n\n- `DB_PROVIDER` - Database provider: `sqlite` (default) or `dynamodb`\n- `DYNAMODB_TABLE_NAME` - DynamoDB table name (required when using DynamoDB)\n- `AWS_REGION` - AWS region for DynamoDB (optional, defaults to SDK default)\n\n### AWS Lambda\n\nThe demo at [https://json-validator.codemine.be](https://json-validator.codemine.be) is deployed using AWS Lambda with DynamoDB. This repository includes both build and deploy scripts to streamline the deployment process.\n\n#### Prerequisites\n\n1. Create a DynamoDB table:\n   - Table name: Choose a name\n   - Partition key: `PK` (String)\n   - **Enable TTL**: Set TTL attribute name to `ttl`\n\n2. Configure Lambda environment variables:\n   ```\n   DB_PROVIDER=dynamodb\n   DYNAMODB_TABLE_NAME=\u003ctable-name\u003e\n   ```\n\n#### Deploy\n\n1. Build and package the application:\n   ```bash\n   npm run package\n   ```\n\n2. Deploy to AWS Lambda:\n   ```bash\n   npm run deploy\n   ```\n\n   Note: Ensure AWS credentials are configured in `~/.aws/credentials` and update the function name in `package.json` if needed.\n\n## Scripts\n\n- `npm run dev` - Start local development server\n- `npm run build` - Build for production\n- `npm run package` - Create deployment package (deployment.zip)\n- `npm run deploy` - Build, package, and deploy to AWS Lambda\n\n## License\n\nMIT License\n\nCopyright (c) 2025\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvanhumbeecka%2Fjson-validator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvanhumbeecka%2Fjson-validator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvanhumbeecka%2Fjson-validator/lists"}