{"id":13638403,"url":"https://github.com/yosoyubik/canvas","last_synced_at":"2025-04-30T18:42:04.563Z","repository":{"id":41966352,"uuid":"258959927","full_name":"yosoyubik/canvas","owner":"yosoyubik","description":"Peer-to-peer paint app for Urbit","archived":false,"fork":false,"pushed_at":"2024-09-06T19:25:39.000Z","size":14440,"stargazers_count":142,"open_issues_count":8,"forks_count":9,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-03T08:30:44.288Z","etag":null,"topics":["d3js","hoon","p2p","svelte","sveltekit","urbit"],"latest_commit_sha":null,"homepage":"","language":"hoon","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/yosoyubik.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2020-04-26T06:45:19.000Z","updated_at":"2024-09-06T19:25:43.000Z","dependencies_parsed_at":"2024-01-14T09:59:43.446Z","dependency_job_id":"926ace47-c3c9-47f2-b943-10f542ffe2d0","html_url":"https://github.com/yosoyubik/canvas","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yosoyubik%2Fcanvas","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yosoyubik%2Fcanvas/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yosoyubik%2Fcanvas/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yosoyubik%2Fcanvas/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yosoyubik","download_url":"https://codeload.github.com/yosoyubik/canvas/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243521280,"owners_count":20304186,"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":["d3js","hoon","p2p","svelte","sveltekit","urbit"],"created_at":"2024-08-02T01:00:45.261Z","updated_at":"2025-03-14T04:06:45.210Z","avatar_url":"https://github.com/yosoyubik.png","language":"hoon","funding_links":[],"categories":["Applications"],"sub_categories":[],"readme":"# *Canvas* for \\~Urbit\n\n[![awesome urbit badge](https://img.shields.io/badge/~-awesome%20urbit-lightgrey)](https://github.com/urbit/awesome-urbit)\n\n[![Header](/images/canvas.png)](https://www.youtube.com/watch?v=S6DySv730Hw)\n\n[Video Demo](https://yosoyubik.fra1.digitaloceanspaces.com/norsyr-torryn/2021.7.06..15.37.33-Jul-06-2021%2017-36-28.mp4)\n\n## Features\n\n- Each stroke is stored automatically on your Urbit.\n- Export Canvas Images as SVG.\n  - Image files are stored on S3 Storage, if configured.\n- Allows creation of Public/Private Canvas.\n  - Others can join a Public Canvas and work collaboratively in a cool art project.\n\n## Access\n\nSearch for `~dister-norsyr-torryn` in Grid to find the Canvas app, and install it from there\n\nA public canvas is hosted at\n\n```hoon\n~picsel-norsyr-torryn/public\n```\n\nCome and join the group to share your creations and see what others are doing:\n```hoon\n~norsyr-torryn/canvas\n```\n\n## Development Setup\n\n1. Clone the repo, of course\n2. Create a new desk in Urbit to install canvas in\n    - `$ ./urbit -F zod` - Spin up a fake zod, if you haven't already (should be running on port 8080. If not, you'll need to edit [`ui/svelte.config.js`](ui/svelte.config.js))\n    - `dojo\u003e +code` - Get an access code and use it to sign in to your ship at http://localhost:8080\n    - `dojo\u003e |mount %base` - Mount `%base`, if you haven't already\n    - `dojo\u003e |merge %canvas our %base` - Create a `%canvas` desk\n    - `dojo\u003e |mount %canvas` - Mount the desk so it appears in your pier\n    - `$ rm -r zod/canvas/*` - Clear out your new desk to make room for the actual desk\n    - Follow the instructions [here](https://urbit.org/docs/userspace/dist/guide#create-desk) to merge the `base-dev` and `garden-dev` desks into your desk\n3. Copy canvas desk to Urbit\n    From the repo folder, run `./install.sh \u003cPATH_TO_THE_MOUNTED_DESK\u003e` where `\u003cPATH_TO_THE_MOUNTED_DESK\u003e` might be something like `~/urbit/zod/canvas`\n    You can alse run `./install.sh -w \u003cPATH_TO_THE_MOUNTED_DESK\u003e` if you want to watch for changes.\n4. Install `%canvas` in Dojo with\n    - `dojo\u003e |commit %canvas` (do this after every change to see it reflected in Urbit)\n    - `dojo\u003e |install our %canvas`(only necessary the first time, I think)\n5. Serve the UI for development\n    In the repo folder:\n    - `cd ui`\n    - `npm i` (short for `npm install`)\n    - `npm run dev` (runs on port 3000. To run on a different port: `npm run dev -- --port 3001`)\n    - Visit http://localhost:3000/apps/canvas\n6. Eventually, build the UI to test in Urbit for real test\n    - `npm run build` (in `/ui`)\n    - `./install.sh \u003cPATH_TO_THE_MOUNTED_DESK\u003e` (in project root)\n    - `|commit %canvas` (in dojo)\n## Templates\n\nTODO\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyosoyubik%2Fcanvas","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyosoyubik%2Fcanvas","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyosoyubik%2Fcanvas/lists"}