{"id":50613731,"url":"https://github.com/stepandel/taskforge-api","last_synced_at":"2026-06-06T06:30:44.063Z","repository":{"id":354539642,"uuid":"1224088431","full_name":"stepandel/taskforge-api","owner":"stepandel","description":"A small task-and-project management HTTP API built on Express and SQLite, instrumented with Sentry for error reporting and performance monitoring.","archived":false,"fork":false,"pushed_at":"2026-04-29T01:03:23.000Z","size":54,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-04-29T02:30:07.164Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/stepandel.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":"2026-04-29T00:27:17.000Z","updated_at":"2026-04-29T01:03:27.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/stepandel/taskforge-api","commit_stats":null,"previous_names":["stepandel/taskforge-api"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/stepandel/taskforge-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stepandel%2Ftaskforge-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stepandel%2Ftaskforge-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stepandel%2Ftaskforge-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stepandel%2Ftaskforge-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stepandel","download_url":"https://codeload.github.com/stepandel/taskforge-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stepandel%2Ftaskforge-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33972397,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-06T02:00:07.033Z","response_time":107,"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":[],"created_at":"2026-06-06T06:30:43.566Z","updated_at":"2026-06-06T06:30:44.056Z","avatar_url":"https://github.com/stepandel.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TaskForge API\n\nA small task-and-project management HTTP API built on Express and SQLite, instrumented with Sentry for error reporting and performance monitoring.\n\n## Stack\n\n- Node.js 18+ / Express 4\n- SQLite (`better-sqlite3`) for storage\n- `@sentry/node` v8 with profiling and console integrations\n- JWT auth (HS256)\n\n## Endpoints\n\n| Path | Description |\n|------|-------------|\n| `GET /health` | Liveness check |\n| `POST /auth/login` | Email + password login, returns JWT |\n| `POST /auth/register` | Create new user |\n| `GET /users/me` | Current user |\n| `GET /users/search?q=…` | Search users by name or email |\n| `GET /users/:id` | Get user by id |\n| `GET /projects` | List active projects (paginated) |\n| `POST /projects` | Create project |\n| `GET /projects/:id` | Project + its tasks |\n| `GET /tasks` | List tasks, filter by `project_id`, `status` |\n| `POST /tasks` | Create task |\n| `GET /tasks/:id` | Task detail with assignee info |\n| `PATCH /tasks/:id` | Update task |\n| `POST /payments/charge` | Charge premium subscription |\n| `GET /payments` | List my payments |\n| `POST /webhooks/inbound` | Inbound webhook receiver |\n| `GET /webhooks/events` | Recent webhook events |\n| `GET /admin/stats` | Admin dashboard metrics (admin only) |\n| `GET /admin/users` | List all users (admin only) |\n| `GET /reports/weekly?start=YYYY-Www\u0026end=…` | Weekly task breakdown |\n| `GET /reports/summary` | Counts of resources |\n\n## Setup\n\n```bash\ncp .env.example .env\n# edit .env and set SENTRY_DSN to your project's DSN\nnpm install\nnpm run seed\nnpm start\n```\n\nServer listens on `http://localhost:3000`. Default seeded credentials: `bob@taskforge.io` / `password123`. To generate background traffic for benchmarking:\n\n```bash\nnpm run load              # 60s at 5 rps\nDURATION_MS=300000 RPS=10 npm run load\n```\n\n## Environment variables\n\n| Var | Default | |\n|-----|---------|--|\n| `SENTRY_DSN` | — | required to ship errors to Sentry |\n| `SENTRY_ENVIRONMENT` | `development` | |\n| `SENTRY_RELEASE` | `taskforge-api@1.4.2` | |\n| `PORT` | `3000` | |\n| `JWT_SECRET` | `dev-secret-change-me` | |\n| `DATABASE_PATH` | `./data/taskforge.db` | |\n\n## Deploying to Fly.io via GitHub\n\nThe repo ships with a `Dockerfile`, `fly.toml`, and a GitHub Actions workflow at `.github/workflows/deploy.yml` that runs `flyctl deploy` on every push to `main` or `master`.\n\n### One-time setup\n\n1. Push the repo to GitHub.\n2. Install flyctl and sign in:\n   ```bash\n   brew install flyctl\n   flyctl auth login\n   ```\n3. Create the Fly app (matches the name in `fly.toml`; pick a unique name and edit if needed):\n   ```bash\n   flyctl apps create taskforge-api\n   ```\n4. Create the persistent volume for SQLite:\n   ```bash\n   flyctl volumes create taskforge_data --size 1 --region sjc\n   ```\n5. Set runtime secrets on Fly:\n   ```bash\n   flyctl secrets set \\\n     SENTRY_DSN=\"https://\u003cyour-key\u003e@oXXXX.ingest.sentry.io/YYYY\" \\\n     JWT_SECRET=\"$(openssl rand -hex 32)\"\n   ```\n6. Generate a deploy token and add it to GitHub:\n   ```bash\n   flyctl tokens create deploy\n   ```\n   GitHub → Settings → Secrets and variables → Actions → New repository secret. Name: `FLY_API_TOKEN`.\n\nAfter that, every push to the default branch deploys.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstepandel%2Ftaskforge-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstepandel%2Ftaskforge-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstepandel%2Ftaskforge-api/lists"}