Cut nemar-api Cloudflare cost to the included allowances

Open
#2,633 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
typescript

Research direction

Start with the linked work in issues #2634, #2635, #2636, and #2638 to understand the concrete changes planned for nemar-api and how they preserve diagnostics and download speed. Check how the production 20% log sampling setting is represented in the project configuration and release process. Done means costs are brought near the included allowances without losing relied-on diagnostics or slowing downloads, and the sampling config ships before or with the next release.

Written by the indexing model from the issue text.

Description

Cloudflare billed $274.44 for the November cycle (Oct 29 to Nov 28), almost all of it from the nemar-api Worker serving data.nemar.org: Workers CPU time $156.76 (7.87B ms), Observability Logs $81.60 (155.6M events, about $60 of it on the Nov 24 spike of 53.5M data requests), Workers requests $20.10, Workers AI $14.14. Since December 1, 2026 logs are billed by volume ($0.25/GB past 50 GB per cycle, plus storage), and the current cycle already ingests about 1.5 GB/day, close to the included 50 GB.

Goal: bring the account to the included allowances, or as near as possible, without losing the diagnostics we rely on or slowing downloads.

  • #2634
  • #2635
  • #2636
  • #2638

Production log sampling was set to 20% in the dashboard on 2026-12-02 (owner decision); the config change must ship before or with the next release, which would otherwise reset it to 100%.

Evidence was read on 2026-12-02 from the Cloudflare dashboard (Billing > Billable usage, nemar-api Metrics and Observability). Spend limits (beta) are not set; setting one is an owner decision because hitting it stops the API.

Dominant language
TypeScript
Stars
0
Forks
1
Avg merge
4h 48m
Merged PRs (30d)
468

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from nemarOrg/nemar-cli

All issues in nemarOrg/nemar-cli

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.