Skip to content

Sponsored-Code/core

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sponsored Code — shared core

Sponsored Code

npm license sponsoredcode.com

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/core

What'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 ad surfaces into Claude Code's supported settings (the thinking-word slot and the status-line row), and removes them 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, sign in, and manage campaigns.
Integrity Tamper-flagging for its own managed local state, so an out-of-band edit is detected.

MCP server

The @sponsored-code/core/mcp subpath exports an MCP server that exposes the account and campaign actions to Claude or any MCP client. The CLI wires it up as scode mcp.

import { runMcpServer } from "@sponsored-code/core/mcp";

License

Source-available — see LICENSE.

About

Shared protocol + account code bundled by the Sponsored Code CLI and VS Code extension.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors