# Concepts

The handful of ideas the rest of the docs build on.

## Components

A component is a reusable piece of code mined from a real open-source repository: a function, a class, a module or a small group of files that does one job, such as a webhook handler or a rate limiter. The library holds 7,108,908 of them. Each one keeps a link back to the exact file and commit it came from.

## Search and pull

There are two steps, priced differently on purpose.

- **Search** (`search_components` and the other discovery tools) returns names, descriptions, scores and licences. It is free and rate-limited.
- **Pull** (`get_component`) returns the full source with its attribution header. It costs 1 credit.

An agent can look at as many candidates as it likes before spending anything. See [Tool reference](/docs/tools).

## Scores

Every component carries quality scores and a composite from 0 to 10, so an agent can prefer well-built code without reading all of it first. Scores are a signal for ranking, not a guarantee that code is correct or safe. How they are produced: [Scores & ranking](/docs/scores).

## Licence classes

Each repository's licence is recorded as an SPDX identifier and grouped into a class: permissive (MIT, Apache-2.0, BSD and similar), weak copyleft, or strong copyleft. The public library serves permissive and weak-copyleft code only. Every result says which licence applies, so you can filter before you pull. See [Licences & attribution](/docs/licences) and [How licensing works](/docs/how-licensing-works).

## Attribution

Reusing open-source code almost always requires keeping the copyright notice and licence text. A pulled component arrives with an attribution header that names the licence, the copyright holder and the source link. Keep that header with the code and add the component to your `THIRD_PARTY_LICENSES` or NOTICE file.

## Credits and plans

A credit is the unit for pulls: 1 credit per `get_component`, more for the Pro tools. Free accounts get up to 90 pulls a month (3 a day) plus 30 on signup; paid plans refill weekly. Every plan is a hard cap: when credits run out, pulls stop until the next refill, and nothing is billed beyond the plan price. See [Credits & plans](/docs/credits).

## Keys and connectors

Agents that read a config file (Claude Code, Cursor, VS Code, Codex and others) authenticate with an API key in an `Authorization: Bearer` header. Claude.ai and ChatGPT use a connector instead: you sign in with your JustClaw-It account and no key is pasted. Both routes reach the same tools and the same credits. See [Quickstart](/docs/quickstart).

## Security advisories

When a component's source repository or packages have known vulnerabilities, results carry a `security_advisories` warning, and the free `check_component_security` tool gives the detail. See [Security advisories](/docs/security-advisories).
