{"id":17693409,"url":"https://github.com/ttytm/anchor-solana-twitter","last_synced_at":"2026-02-24T20:45:51.036Z","repository":{"id":51800261,"uuid":"483775675","full_name":"ttytm/anchor-solana-twitter","owner":"ttytm","description":"Web3 application on the Solana blockchain written in Rust (Anchor). A Twitter like, decentralized communication platform. ","archived":false,"fork":false,"pushed_at":"2022-12-24T14:37:41.000Z","size":366,"stargazers_count":11,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"v2","last_synced_at":"2025-12-03T11:41:20.469Z","etag":null,"topics":["anchor","blockchain","dapp","solana","web3"],"latest_commit_sha":null,"homepage":"https://twitter-with-ass.vercel.app/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ttytm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-04-20T18:48:51.000Z","updated_at":"2024-07-11T16:59:20.000Z","dependencies_parsed_at":"2023-01-30T21:00:52.449Z","dependency_job_id":null,"html_url":"https://github.com/ttytm/anchor-solana-twitter","commit_stats":null,"previous_names":["ttytm/anchor-solana-twitter"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ttytm/anchor-solana-twitter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ttytm%2Fanchor-solana-twitter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ttytm%2Fanchor-solana-twitter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ttytm%2Fanchor-solana-twitter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ttytm%2Fanchor-solana-twitter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ttytm","download_url":"https://codeload.github.com/ttytm/anchor-solana-twitter/tar.gz/refs/heads/v2","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ttytm%2Fanchor-solana-twitter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29799246,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-24T19:56:48.334Z","status":"ssl_error","status_checked_at":"2026-02-24T19:55:43.372Z","response_time":75,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["anchor","blockchain","dapp","solana","web3"],"created_at":"2024-10-24T13:44:56.504Z","updated_at":"2026-02-24T20:45:51.001Z","avatar_url":"https://github.com/ttytm.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# anchor-solana-twitter\n\nExtends and refactors the [v1-branch][10].\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cb\u003eChanges\u003c/b\u003e\u003c/summary\u003e\n\n- Votings are their own accounts using PDAs, instead of just updating a counter on an existing tweet\n\n  - enables to filter votings for a user\n  - less costs for sending a vote\n  - the `rating` counter on tweets becomes obsolete, which results in slimmer tweet accounts\n\n- Direct messages are separate accounts instead of being a tweet\n\n  - less cost on for dms\n  - `recipient` on tweet account becomes obsolete\n\n- Comment functionality\n\n- Users can create aliases\n\n- New api syntax for tests\n\n  - abandon deprecated `.rpc` in favor of `.methods` syntax\n  \u003c/details\u003e\n\n## Running\n\nThe installation of the prerequisites to run an anchor program is nicely explained in the [anchor book][20].\n\nWith the prerequisites out of the way, `npm i` installs the rest of the dependencies.\n\nThen building and running the tests can be done with `anchor test`.\n\nTo use the tests while working on a frontend run the localnet with `anchor localnet`.\u003cbr\u003e\nIn another terminal airdrop your wallet some SOL and load the test `solana airdrop 1000 \u003cYourPhantomWalletPubKey\u003e \u0026\u0026 anchor run test`.\n\n### Tested Functionalities\n\n```\n❯ anchor test\n\ntweets\n  ✔ can send and update tweets\n  ✔ can send a tweet without a tag\n  ✔ cannot send a tweet without content\n  ✔ cannot send a tweet with a tag \u003e 50 or content \u003e 280 characters\n  ✔ cannot update a tweet without changes\n  ✔ can delete own tweets\n  ✔ can fetch and filter tweets\n\ncomments\n  ✔ can comment and update comments\n  ✔ can delete comments\n\nvotings\n  ✔ can vote and update votings\n  ✔ can derive tweets from votings\n\ndirect messages\n  ✔ can send and update dms\n  ✔ can delete dms\n  ✔ can fetch and filter dms\n\nuser alias\n  ✔ can create and update a user alias\n  ✔ can delete a user alias\n\nstatus\n  ✔ can set a status message with up to 50 characters\n  ✔ can delete a status message\n\nreactions\n  ✔ can react on tweets and update and delete reactions\n  ✔ cannot send other then predefined reactions\n```\n\n## Frontend Showcase\n\nTo showcase the functionalities of this app you can check out a frontend implementation using SvelteKit on https://twitter-with-ass.vercel.app/ - _WIP_\n\n\u003ca href=\"https://twitter-with-ass.vercel.app/\" target=\"_blank\"\u003e\u003cimg src=\"assets/frontend-preview.png\" \u003e\u003c/a\u003e\n\n[10]: https://github.com/tobealive/anchor-solana-twitter/tree/v1\n[20]: https://book.anchor-lang.com/getting_started/installation.html\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fttytm%2Fanchor-solana-twitter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fttytm%2Fanchor-solana-twitter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fttytm%2Fanchor-solana-twitter/lists"}