{"id":19798169,"url":"https://github.com/mutinywallet/mutiny-web-poc","last_synced_at":"2025-05-01T04:30:23.279Z","repository":{"id":91148623,"uuid":"600184085","full_name":"MutinyWallet/mutiny-web-poc","owner":"MutinyWallet","description":"Mutiny node frontend proof of concept","archived":true,"fork":false,"pushed_at":"2023-04-17T21:55:22.000Z","size":997,"stargazers_count":6,"open_issues_count":31,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-15T18:25:45.539Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MutinyWallet.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-02-10T19:19:44.000Z","updated_at":"2023-08-10T17:02:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"fa1bc9d7-5190-443c-ac6c-18e2052fc05a","html_url":"https://github.com/MutinyWallet/mutiny-web-poc","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MutinyWallet%2Fmutiny-web-poc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MutinyWallet%2Fmutiny-web-poc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MutinyWallet%2Fmutiny-web-poc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MutinyWallet%2Fmutiny-web-poc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MutinyWallet","download_url":"https://codeload.github.com/MutinyWallet/mutiny-web-poc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251823988,"owners_count":21649781,"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","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":"2024-11-12T07:28:21.899Z","updated_at":"2025-05-01T04:30:23.267Z","avatar_url":"https://github.com/MutinyWallet.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mutiny-web (proof of concept)\n\nThe first version of the mutiny web concept, built during the bolt.fun hackathon.\n\nThe node logic is built in rust and located [here](https://github.com/MutinyWallet/mutiny-node) and the typescript bindings for that is located [here](https://www.npmjs.com/package/@mutinywallet/mutiny-wasm).\n\n## Development \n\n### Dependencies\n\n- [node](https://nodejs.org/en/)\n- [just](https://github.com/casey/just)\n- [mkcert](https://github.com/FiloSottile/mkcert)\n\n### Build\n\nGet all the dependencies above first.\n\n```\ncd frontend\nnpm i\nnpm start\n```\n\n### Local \nanager\n\nTo make local development easier with a latest local version of the node manager, you may want to `npm link` it.\n\nIn your `mutiny-node` local repo:\n\n```\njust link\n```\n\nNow in this repo, link them.\n\n```\njust local\n```\n\nTo revert back and use the remote version of mutiny-wasm:\n\n```\njust remote\n```\n\n\n## With SSL\n\nSince we plan to use web workers and other SSL-required things, we can also do SSL in localhost to make testing a little less gotch-ey.\n\nFirst generate the local cert (requires `mkcert` command):\n\n```\njust cert\n```\n\nThen start react with SSL flags:\n\n```\nnpm run start-ssl\n```\n\n### PWA\n\nTo test out PWA stuff you need to `build` and then run the built artifact:\n\n```\nnpm run build\n```\n\n(if you don't have a server installed: `npm install -g serve`)\n\nThen serve the build folder:\n\n```\nserve -s build\n```\n\nThey recommend running this in an incognito window because caching can be annoying with this stuff. Works for me in Chrome to install Mutiny as a desktop app.\n\n### Bitcoin networks\n\nYou'll need a regtest bitcoin node, electrs, and an exposed port to whatever regtest node you are connecting to.\n\n#### For Testnet / Mainnet mutiny\n\nMutiny defaults to regtest, but the network can be set by environment variable (it's set to \"bitcoin\" in the production deployment).\n\nCreate a `.env.local` file in the frontend dir and add this:\n\n```\nREACT_APP_NETWORK=\"testnet\"\n```\n\nOr\n\n```\nREACT_APP_NETWORK=\"bitcoin\"\n```\n\nThen restart your dev server.\n\n#### For [electrs](https://github.com/Blockstream/electrs)\n\nFirst build it, then run this script for regtest, replacing paths and passwords where necessary. YMMV. One special note is that this is for cookie password based auth.\n\n```\n/path/to/target/release/electrs -vvvv --daemon-dir /path/to/.bitcoin/regtest/data/ --timestamp --blocks-dir /path/to/.bitcoin/regtest/data/regtest/blocks/ --cookie=\"bitcoinrpc:{cookiebasedpassword}\" --db-dir /path/to/.electrs/ --network regtest --http-addr 0.0.0.0:3003\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmutinywallet%2Fmutiny-web-poc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmutinywallet%2Fmutiny-web-poc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmutinywallet%2Fmutiny-web-poc/lists"}