# Internals

> How the Count is put together, for people working on him.

How the Count is put together, for people working on him. None of this is needed to use him.

[Design](https://count-patchula.sweepy.dev/internals/design/)The goals, principles and crate layout.

[Engine](https://count-patchula.sweepy.dev/internals/engine/)How a batch moves from extraction to writes.

[SQLite cache](https://count-patchula.sweepy.dev/internals/cache/)HTTP entries, catalogs, freshness and host limits.

[GitHub client](https://count-patchula.sweepy.dev/internals/github-client/)REST and GraphQL, conditional requests and the rate-limit governor.

[Threat model](https://count-patchula.sweepy.dev/internals/threat-model/)Who the Count trusts, what a repository may cause, and the guards that follow.

[HTTP fixtures](https://count-patchula.sweepy.dev/internals/http-testing/)How tests record and replay registries offline.

The source lives at [sweepies/count-patchula](https://github.com/sweepies/count-patchula).
