{"id":15764169,"url":"https://github.com/devjiwonchoi/vercel-cron-logger","last_synced_at":"2026-05-05T07:32:59.608Z","repository":{"id":225887448,"uuid":"767024397","full_name":"devjiwonchoi/vercel-cron-logger","owner":"devjiwonchoi","description":"Vercel Cron Jobs logger for those who are in pain with the log span limit.","archived":false,"fork":false,"pushed_at":"2024-03-06T08:48:07.000Z","size":40,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-14T17:22:50.345Z","etag":null,"topics":["cron","cronjob","logger","logging","serverless","vercel"],"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/devjiwonchoi.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-03-04T15:12:20.000Z","updated_at":"2024-03-10T22:26:13.000Z","dependencies_parsed_at":"2024-10-25T11:35:15.042Z","dependency_job_id":"e7551839-74dc-465f-a66c-98e157ff411a","html_url":"https://github.com/devjiwonchoi/vercel-cron-logger","commit_stats":{"total_commits":5,"total_committers":1,"mean_commits":5.0,"dds":0.0,"last_synced_commit":"0248d355a48c793650fdf16fdc340f7640efc5ff"},"previous_names":["devjiwonchoi/vercel-cron-logger"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/devjiwonchoi/vercel-cron-logger","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devjiwonchoi%2Fvercel-cron-logger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devjiwonchoi%2Fvercel-cron-logger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devjiwonchoi%2Fvercel-cron-logger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devjiwonchoi%2Fvercel-cron-logger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devjiwonchoi","download_url":"https://codeload.github.com/devjiwonchoi/vercel-cron-logger/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devjiwonchoi%2Fvercel-cron-logger/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32640534,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-04T10:08:07.713Z","status":"online","status_checked_at":"2026-05-05T02:00:06.033Z","response_time":54,"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":["cron","cronjob","logger","logging","serverless","vercel"],"created_at":"2024-10-04T12:01:38.178Z","updated_at":"2026-05-05T07:32:59.588Z","avatar_url":"https://github.com/devjiwonchoi.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Vercel Cron Jobs Logger\n\n\u003e Vercel Cron Jobs logger for those who are in pain with the log span limit.\n\n## Why this project?\n\nFor hobby plan users, Vercel has a log span limit of an hour. It is hard to debug your cron jobs after the span, only choice is to create a reprouction, which would consume much time and the result may vary due to numerous factors. This project is to help you to log your cron jobs to a database and view them later.\n\n## Setup\n\n### Create a Vercel Postgres Database\n\n\u003e See [Vercel Postgres](https://vercel.com/docs/storage/vercel-postgres/quickstart#quickstart) for details.\n\nConnect the database to your project with the cronjobs.\n\n### Create a Vercel Secret `CRON_SECRET`\n\n\u003e See [Securing cron jobs](https://vercel.com/docs/cron-jobs/manage-cron-jobs#securing-cron-jobs) for details.\n\nIf you are not using this secret, it is highly recommended to use it.\n\n### Import `vercel-cron-logger` to your cron job\n\n```sh\nnpm install vercel-cron-logger\n```\n\n```ts\nimport VercelCronLogger from 'vercel-cron-logger';\n\nexport async function GET(request: Request) {\n  const authHeader = request.headers.get('authorization')\n\n  if (authHeader === `Bearer ${process.env.CRON_SECRET}`) {\n    // ...Your cron job logic\n    await VercelCronLogger(request)\n    return new Response('Success!', { status: 200 })\n  }\n\n  return new Response('Unauthorized.', { status: 401 })\n}\n```\n\n\u003e The logger returns a `Response` objects above with same `CRON_SECRET` validation logic internally.\n\n### Check your Vercel Postgres Database\n\nYou can check the logs in your project database.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevjiwonchoi%2Fvercel-cron-logger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevjiwonchoi%2Fvercel-cron-logger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevjiwonchoi%2Fvercel-cron-logger/lists"}