• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

microlinkhq / ua
100%

Build:
DEFAULT BRANCH: master
Repo Added 13 Jan 2024 11:51AM UTC
Token 61OyLtPn0363sVTaHyo79QmfMJgmHZuYd regen
Build 39 Last
Files 2
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH master
branch: master
CHANGE BRANCH
x
Reset
Sync Branches
  • master
  • Kikobeats/ci-engines-floor
  • Kikobeats/ci-push-with-gh-token
  • Kikobeats/fix-types-export
  • dependabot/github_actions/actions/checkout-5
  • dependabot/github_actions/actions/checkout-6
  • dependabot/github_actions/pnpm/action-setup-3
  • dependabot/github_actions/pnpm/action-setup-4
  • dependabot/github_actions/pnpm/action-setup-5
  • dependabot/github_actions/pnpm/action-setup-6.0.9
  • dependabot/github_actions/supercharge/redis-github-action-1.8.1
  • dependabot/github_actions/supercharge/redis-github-action-2
  • dependabot/npm_and_yarn/isbot-5.1.0
  • feat/add-typescript-types
  • kikobeats/browser-only-unique-clients

04 Nov 2026 10:42AM UTC coverage: 100.0%. Remained the same
41815960127

push

github

web-flow
feat: count only real browsers, once per client (#26)

* feat: count only real browsers, once per client

incr() now skips any user agent that does not have the exact shape a
real browser sends: a known platform, an engine that runs on it, known
vendor tokens and well-formed versions. Bots, HTTP libraries, Electron
apps, in-app webviews and hand-written fakes such as `Chrome/124.0` or
`Mac OS X 14_6` never reach Redis.

incr(userAgent, clientId) counts each client once per user agent within
a window (default 24h) through a single Lua round trip, so one heavy
caller cannot dominate the ranking. IPv6 clients are grouped per /64 and
every IPv4-mapped spelling folds into its IPv4.

isBrowser is exported for read-side reuse. isbot is dropped: nothing
isbot flags survives the shape check, and the write path gets ~3x
cheaper (1048 -> 343 ns per call on the 1369-UA corpus).

Refs microlinkhq/top-user-agents#60

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(types): require scripting only for per-client counting

A client implementing the original three-method contract keeps working
for incr(userAgent); passing a clientId needs defineCommand, so the
factory overloads return BasicUserAgentsAPI for basic clients.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix: default the window when options is null

A null options object threw while reading window. Tests now lock that path and the grammar allows the suite did not assert.

Co-authored-by: Cursor <cursoragent@cursor.com>

* refactor: drop the per-factory incr command cache

The defineCommand guard already skips a second definition, and removing the cache left the suite green.

Co-authored-by: Cursor <cursoragent@cursor.com>

* refactor: pass client ids to the IP check directly

String() was not what kept non-string ids from throwing, and dropping it left the suite green.

Co-authored-by: Cursor <cursoragent@cursor.com>

* fix: keep per-client marks on the counter's cluster slot

T... (continued)

64 of 64 branches covered (100.0%)

Branch coverage included in aggregate %.

190 of 190 new or added lines in 2 files covered. (100.0%)

215 of 215 relevant lines covered (100.0%)

294.82 hits per line

Relevant lines Covered
Build:
Build:
215 RELEVANT LINES 215 COVERED LINES
294.82 HITS PER LINE
Source Files on master
  • Tree
  • List 2
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
41815960127 master feat: count only real browsers, once per client (#26) * feat: count only real browsers, once per client incr() now skips any user agent that does not have the exact shape a real browser sends: a known platform, an engine that runs on it, known v... push 04 Nov 2026 10:43AM UTC web-flow github
100.0
40840663057 master fix(types): describe the CommonJS export with export = (#24) Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> push 29 Oct 2026 08:14AM UTC web-flow github
100.0
31044622527 master chore: improve npm search metadata push 05 Aug 2026 08:35PM UTC Kikobeats github
100.0
30846238282 master ci(dependabot): ignore actions minor/patch Floating major tags already pick up those updates at runtime. push 03 Aug 2026 07:34PM UTC Kikobeats github
100.0
29394960362 master build(deps): bump actions/setup-node from 6 to 7 (#22) Bumps [actions/setup-node](https://github.com/actions/setup-node) from 6 to 7. - [Release notes](https://github.com/actions/setup-node/releases) - [Commits](https://github.com/actions/setup-n... push 15 Jul 2026 06:42AM UTC web-flow github
100.0
28900475725 master build(deps): bump isbot from 5.1.44 to 5.2.0 (#21) Bumps [isbot](https://github.com/omrilotan/isbot) from 5.1.44 to 5.2.0. - [Changelog](https://github.com/omrilotan/isbot/blob/main/CHANGELOG.md) - [Commits](https://github.com/omrilotan/isbot/com... push 07 Jul 2026 09:38PM UTC web-flow github
100.0
28900175917 master chore: tweaks push 07 Jul 2026 09:33PM UTC Kikobeats github
100.0
23219112102 master Merge pull request #17 from microlinkhq/dependabot/github_actions/pnpm/action-setup-5 build(deps): bump pnpm/action-setup from 4 to 5 push 17 Mar 2026 10:21PM UTC web-flow github
100.0
22683694486 master Merge pull request #16 from theluckystrike/feat/add-typescript-types feat(types): add TypeScript type definitions push 04 Mar 2026 06:38PM UTC web-flow github
100.0
19563769493 master Merge pull request #13 from microlinkhq/dependabot/github_actions/actions/checkout-6 build(deps): bump actions/checkout from 5 to 6 push 21 Nov 2025 07:52AM UTC web-flow github
100.0
See All Builds (39)

Badge your Repo: ua

We detected this repo isn’t badged! Grab the embed code to the right, add it to your repo to show off your code coverage, and when the badge is live hit the refresh button to remove this message.

Could not find badge in README.

Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

Refresh
  • Settings
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc