{"id":20776631,"url":"https://github.com/the3dgar/backend_personal-utils","last_synced_at":"2026-04-21T12:03:26.425Z","repository":{"id":123165573,"uuid":"524232268","full_name":"The3dgar/backend_personal-utils","owner":"The3dgar","description":"This is an utils project ","archived":false,"fork":false,"pushed_at":"2022-08-17T16:27:21.000Z","size":26,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-11T21:44:11.370Z","etag":null,"topics":["backend","express","typescript"],"latest_commit_sha":null,"homepage":"","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/The3dgar.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":"2022-08-12T21:46:45.000Z","updated_at":"2022-08-17T16:29:06.000Z","dependencies_parsed_at":"2023-06-05T22:45:45.832Z","dependency_job_id":null,"html_url":"https://github.com/The3dgar/backend_personal-utils","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/The3dgar/backend_personal-utils","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/The3dgar%2Fbackend_personal-utils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/The3dgar%2Fbackend_personal-utils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/The3dgar%2Fbackend_personal-utils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/The3dgar%2Fbackend_personal-utils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/The3dgar","download_url":"https://codeload.github.com/The3dgar/backend_personal-utils/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/The3dgar%2Fbackend_personal-utils/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27762969,"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","status":"online","status_checked_at":"2025-12-16T02:00:10.477Z","response_time":57,"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":["backend","express","typescript"],"created_at":"2024-11-17T13:10:22.887Z","updated_at":"2025-12-16T10:42:55.276Z","avatar_url":"https://github.com/The3dgar.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# personal utils\n\ndef: this is a repo with utils backend tools, like validators, errors-handlers, etc... motivated for a lazy spirit to rebuild code\n\n## 1 req.body validator\n\n### dependencies:\n\n- express-validator\n\n### how to use: \n\n- check validators/route-validatior\n\n### example:\n\n```\nimport { authValidations, authValidationsTypes } from '../validations/auth-validation';\n\nconst router = express.Router();\n\ntype SignUpRequest = {\n  email: string;\n  password: string;\n};\n\nrouter.post(\n  '/api/users/signup',\n  authValidations(authValidationsTypes.VALIDATE_SIGNUP),\n  (req, res) =\u003e {\n    ...\n  }\n);\n\n```\n\n## 2 Error Handler\n\n### dependencies:\n\n- express-async-errors\n\n### how to use: \n\n- check errors/custom-error.ts\n\n### example:\n\nin index.ts\n\n````\nimport express from 'express';\nimport 'express-async-errors';\nimport { errorHandler } from './middlewares/error-handler';\nimport { NotFoundError } from './errors/not-found-error';\n\n.\n.\n.\n\n// after the app routes\n\napp.all('*', async () =\u003e {\n  throw new NotFoundError();\n});\n\napp.use(errorHandler);\n````","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthe3dgar%2Fbackend_personal-utils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthe3dgar%2Fbackend_personal-utils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthe3dgar%2Fbackend_personal-utils/lists"}