@sponsored-code/core
v4.0.0
Published
Shared protocol + account code for the Sponsored Code client (wallet/credential store, Claude Code settings wiring, status-line ad engine, ad/earnings API client). Bundled by the CLI and the VS Code extension.
Downloads
1,511
Maintainers
Readme
Shared core
The shared building blocks for Sponsored Code clients — the account,
wallet, Claude Code integration, and typed API client. Published for transparency; if you just want
to earn, use the sponsored-code CLI.
npm install @sponsored-code/coreWhat's inside
| Area | What it provides | |---|---| | Account & credentials | A local credential store. Your payout wallet never lands on disk — only an opaque account token, encrypted at rest under a per-install key. | | Claude Code settings | Reversibly wires the status-line ad into Claude Code's supported settings, and removes it cleanly. | | Status-line renderer | Renders the small, clearly-labeled status-line ad row that Claude Code displays, including the running earned badge. | | Wallet & sign-in | EVM address helpers, message signing, and the browser-based wallet sign-in flow. | | API client | A typed client for the Sponsored Code API — register, request an ad, report a view, read earnings, and sign in. | | Integrity | Tamper-flagging for its own managed local state, so an out-of-band edit is detected. |
License
Source-available — see LICENSE.
