{"id":28736832,"url":"https://github.com/nabeelcodes/web-archive-hono-api","last_synced_at":"2026-04-25T11:31:57.665Z","repository":{"id":298882061,"uuid":"992625742","full_name":"nabeelcodes/web-archive-hono-api","owner":"nabeelcodes","description":"REST API for web-archives web app.","archived":false,"fork":false,"pushed_at":"2025-06-13T11:04:54.000Z","size":67,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-13T12:20:59.365Z","etag":null,"topics":["cloudflare-d1","cloudflare-workers","drizzle-kit","drizzle-orm","hono","typescript","wrangler"],"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/nabeelcodes.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}},"created_at":"2025-05-29T13:06:30.000Z","updated_at":"2025-06-13T11:04:58.000Z","dependencies_parsed_at":"2025-06-13T12:33:52.545Z","dependency_job_id":null,"html_url":"https://github.com/nabeelcodes/web-archive-hono-api","commit_stats":null,"previous_names":["nabeelcodes/web-archive-hono-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nabeelcodes/web-archive-hono-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nabeelcodes%2Fweb-archive-hono-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nabeelcodes%2Fweb-archive-hono-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nabeelcodes%2Fweb-archive-hono-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nabeelcodes%2Fweb-archive-hono-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nabeelcodes","download_url":"https://codeload.github.com/nabeelcodes/web-archive-hono-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nabeelcodes%2Fweb-archive-hono-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32261021,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-25T09:15:33.318Z","status":"ssl_error","status_checked_at":"2026-04-25T09:15:31.997Z","response_time":59,"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":["cloudflare-d1","cloudflare-workers","drizzle-kit","drizzle-orm","hono","typescript","wrangler"],"created_at":"2025-06-16T02:00:49.534Z","updated_at":"2026-04-25T11:31:57.661Z","avatar_url":"https://github.com/nabeelcodes.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Web archive REST API\n\nThis api uses Cloudflare-worker, Hono, Cloudflare-D1 database(sqlite), typescript and drizzle-orm to do CRUD operations for web-archive web-app.\n\n## Manual Installation\n\nClone the repo:\n\n```bash\ngit clone git@github.com:nabeelcodes/web-archive-hono-api.git\ncd web-archive-hono-api\n```\n\nInstall the dependencies:\n\n```bash\npnpm install\n```\n\nSet the environment variables:\n\n```bash\ncp .dev.vars.example .dev.vars\n# open .dev.vars and modify the environment variables\n```\n\n## Table of Contents\n\n- [Commands](#commands)\n- [Environment Variables](#environment-variables)\n- [Project Structure](#project-structure)\n- [API Endpoints](#api-endpoints)\n\n## Commands\n\nRunning in development:\n\n```bash\npnpm run dev\n```\n\nRunning in production:\n\n```bash\n# deploy to cloudflare\npnpm run deploy\n```\n\n## Environment Variables\n\nThe environment variables can be found and modified in the `.env` file.\n\n```bash\n# number of articles in a page\nPOSTS_PER_PAGE=\n\n# JWT secret\nJWT_SECRET=\n\n# new user sign up secret\nADMIN_SECRET=\n\n# URL frontend (localhost for development)\nFRONTEND_URL=\n\n# cors whitelist urls\nCORS_WHITELIST=\n```\n\n## Project Structure\n\n```txt\napi\n |--src/index.ts        # App entry point\n |--src/db/schema       # database schema\n |--src/middleware/     # custom middlewares\n |--src/controllers/    # controllers(functions)\n |--src/utils/          # Utility classes and functions\n```\n\n### API Endpoints\n\nList of available routes:\n\n**User routes**:\n\n```txt\n`POST   api/users/register` - Create a user\n`POST   api/users/login`    - Login user\n`GET    api/users/current`  - Get current user(private route)\n```\n\n**Post routes**:\n\n```txt\n`GET    api/posts`          - Fetch all posts\n`GET    api/posts/:id`      - Fetch single post\n`POST   api/posts`          - Create new post(private route)\n`PUT    api/posts/:id`      - Update a post(private route)\n`DELETE api/posts/:id`      - Delete a post(private route)\n```\n\n**Tag routes**:\n\n```txt\n`GET    api/tags`           - Fetch all tags\n```\n\n## License\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnabeelcodes%2Fweb-archive-hono-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnabeelcodes%2Fweb-archive-hono-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnabeelcodes%2Fweb-archive-hono-api/lists"}