Skip to content

About

Turn GitHub contribution evidence into an evidence-backed annual review draft: themes, impact bullets, STAR stories, and an appendix of links.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

AnnualReview.dev

CI codecov

Turn your GitHub activity into an evidence-backed annual review in minutes. https://annualreview.dev

Sign in with GitHub (or use a token), pick your date range, and get themes, impact bullets, STAR stories, and self-eval sections — every claim linked to a real PR.

Screenshots

Landing page – hero section

Generate page – connect GitHub and paste evidence

What you get

Output Description
Theme clusters Your scattered PRs distilled into 4–6 strategic themes a manager actually remembers.
Impact bullets XYZ-format bullets with scope, outcome, and a link to the PR that proves it.
STAR stories Ready-to-paste Situation/Task/Action/Result narratives for promotion packets.
Self-eval sections Draft self-eval sections for review forms — every claim linked to a PR.

Quickstart (web app)

  1. Go to https://annualreview.dev/generate
  2. Click Connect GitHub (public or private repos) — or paste a Personal Access Token.
  3. Set your review date range and click Fetch my data.
  4. Optionally add your annual goals so the report is tailored to what you're being measured on.
  5. Click Generate review → copy sections or download as Markdown.

See docs/how-to-get-evidence.md for the full walkthrough, including the CLI path.

CLI path (local / offline)

If you prefer to keep your token on your machine, use the CLI scripts:

# 1. Collect PRs and reviews from GitHub
GITHUB_TOKEN=ghp_xxx yarn collect --start 2025-01-01 --end 2025-12-31 --output raw.json

# 2. Normalize into the evidence contract
yarn normalize --input raw.json --output evidence.json

# 3. Run the LLM pipeline locally (requires OPENROUTER_API_KEY)
yarn generate evidence.json
  • yarn generate writes themes.json, bullets.json, stories.json, self_eval.json, and report.md to ./out by default; use --out <dir> to override.
  • Override the LLM model with the LLM_MODEL env var (e.g. LLM_MODEL=google/gemini-2.0-flash).

See docs/data-collection.md for more details.

Self-hosting

The app requires a Node server so /api/auth/* and other API routes work.

Build & run:

yarn build
yarn start   # serves dist/ + API on PORT (default 3000)

The repo ships with nixpacks.toml for one-click Coolify deploys. See docs/deploy-coolify.md.

Required environment variables:

Variable Description
SESSION_SECRET Required in production. Random string for signing session cookies (e.g. openssl rand -hex 32). In local dev, the server falls back to a built-in "dev-secret" when unset.
GITHUB_CLIENT_ID From your GitHub OAuth App
GITHUB_CLIENT_SECRET From the same OAuth App
OPENROUTER_API_KEY LLM provider for the generate pipeline — free tier defaults to anthropic/claude-3-haiku, premium to anthropic/claude-haiku-4.5.

In your GitHub OAuth App settings, set the Authorization callback URL to https://<your-domain>/api/auth/callback/github. See docs/oauth-scopes.md.

Optional environment variables:

Variable Description
DATABASE_URL Neon (or any Postgres) connection string. Required for premium credits and Stripe payments; tables credits and credit_events are created automatically.
STRIPE_SECRET_KEY Stripe secret key. Required for payments (also requires STRIPE_WEBHOOK_SECRET).
STRIPE_WEBHOOK_SECRET Secret for verifying Stripe webhook signatures.
STRIPE_PRICE_CENTS Price per purchase in cents (default 100 = $1.00).
STRIPE_CURRENCY Payment currency code (default usd).
CREDITS_PER_PURCHASE Number of premium credits awarded per Stripe purchase (default 5).
LLM_MODEL Override the free-tier model (e.g. google/gemini-2.0-flash)
PREMIUM_LLM_MODEL Override the premium-tier model (default anthropic/claude-haiku-4.5).
MAX_USER_TOKENS_FREE Max context tokens for free tier (default 500000).
MAX_USER_TOKENS_PREMIUM Max context tokens for premium tier (default 184000).
VITE_POSTHOG_API_KEY / POSTHOG_API_KEY Enables client-side PostHog analytics (pageviews, autocapture) and server-side LLM tracing
VITE_POSTHOG_HOST / POSTHOG_HOST PostHog host (default https://us.i.posthog.com; use https://eu.i.posthog.com for EU)

Development

yarn          # install dependencies
yarn dev      # start Vite dev server
yarn test     # run Vitest tests
yarn typecheck

Payment- and premium-related tests (test/payments.test.js, test/generate-premium.test.js) require DATABASE_URL to be set (e.g. a Neon branch or test database).

Codecov

CI uploads coverage after tests. To ensure uploads succeed:

  1. Token: In GitHub → Settings → Secrets and variables → Actions, add CODECOV_TOKEN. Get the value from Codecov → Settings → General → Repository Upload Token. (Required for private repos; recommended for public.)
  2. Default branch: In Codecov → Settings → General, set Default branch to main.
  3. Verify: After a push or PR, check the "Upload coverage to Codecov" step in the Actions run. If it fails, the job fails and verbose logs show the reason. Success means the commit appears on the Codecov dashboard and PRs show head/patch coverage.

Evidence grounding contract

Every generated bullet/claim cites at least one evidence item by id + URL. If impact cannot be proven from GitHub alone, the output labels it "needs confirmation" and asks a follow-up question rather than guessing.

About

Turn GitHub contribution evidence into an evidence-backed annual review draft: themes, impact bullets, STAR stories, and an appendix of links.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages