{"id":31725529,"url":"https://github.com/bluntbrain/solana-counter-program","last_synced_at":"2025-10-09T05:49:20.272Z","repository":{"id":309085177,"uuid":"1035118029","full_name":"bluntbrain/solana-counter-program","owner":"bluntbrain","description":null,"archived":false,"fork":false,"pushed_at":"2025-08-09T17:42:16.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-09T19:27:40.804Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bluntbrain.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-08-09T17:37:02.000Z","updated_at":"2025-08-09T17:42:19.000Z","dependencies_parsed_at":"2025-08-10T00:00:18.449Z","dependency_job_id":null,"html_url":"https://github.com/bluntbrain/solana-counter-program","commit_stats":null,"previous_names":["bluntbrain/solana-counter-program"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/bluntbrain/solana-counter-program","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bluntbrain%2Fsolana-counter-program","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bluntbrain%2Fsolana-counter-program/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bluntbrain%2Fsolana-counter-program/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bluntbrain%2Fsolana-counter-program/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bluntbrain","download_url":"https://codeload.github.com/bluntbrain/solana-counter-program/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bluntbrain%2Fsolana-counter-program/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279000748,"owners_count":26082932,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-10-09T05:49:18.714Z","updated_at":"2025-10-09T05:49:20.268Z","avatar_url":"https://github.com/bluntbrain.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Solana Counter Program\n\nA basic Solana program that maintains a counter value on-chain. Supports increment and decrement operations.\n\n## Setup\n\n```bash\n# Install dependencies\nbun install\n\n# Start local validator\nsolana-test-validator\n\n# Build and deploy program\ncargo build-sbf\nsolana program deploy target/deploy/counter_program.so\n\n# Run tests\nbun test\n```\n\n## What You'll Learn\n\n- Solana's account model and stateless programs\n- Cross-language serialization with Borsh\n- Account creation and rent exemption\n- Transaction construction and instruction processing\n- Client-side integration with Web3.js\n- Local development with test validators\n\n## Architecture\n\n- `src/lib.rs` - Rust program with Counter struct and increment/decrement logic\n- `tests/index.test.ts` - TypeScript tests demonstrating client interaction\n- Counter data stored in separate accounts owned by the program\n- Instructions serialized with Borsh for cross-language compatibility\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbluntbrain%2Fsolana-counter-program","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbluntbrain%2Fsolana-counter-program","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbluntbrain%2Fsolana-counter-program/lists"}