{"id":21413112,"url":"https://github.com/rixrix/mosaic-photo","last_synced_at":"2025-10-07T13:09:49.085Z","repository":{"id":66584613,"uuid":"55270911","full_name":"rixrix/mosaic-photo","owner":"rixrix","description":null,"archived":false,"fork":false,"pushed_at":"2016-04-19T12:50:17.000Z","size":11,"stargazers_count":0,"open_issues_count":6,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-16T18:22:51.134Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/rixrix.png","metadata":{"files":{"readme":"README","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}},"created_at":"2016-04-02T00:51:29.000Z","updated_at":"2016-04-19T12:29:18.000Z","dependencies_parsed_at":"2023-02-24T12:15:53.734Z","dependency_job_id":null,"html_url":"https://github.com/rixrix/mosaic-photo","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/rixrix/mosaic-photo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rixrix%2Fmosaic-photo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rixrix%2Fmosaic-photo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rixrix%2Fmosaic-photo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rixrix%2Fmosaic-photo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rixrix","download_url":"https://codeload.github.com/rixrix/mosaic-photo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rixrix%2Fmosaic-photo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278779219,"owners_count":26044311,"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-07T02:00:06.786Z","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":"2024-11-22T18:16:53.322Z","updated_at":"2025-10-07T13:09:49.051Z","avatar_url":"https://github.com/rixrix.png","language":"JavaScript","readme":"Photo mosaic\n------------\n\nThe goal of this task is to implement the following flow in a client-side app.\n1. A user selects a local image file.\n2. The app loads that image, divides the image into tiles, computes the average\n   color of each tile, fetches a tile from the server for that color, and\n   composites the results into a photomosaic of the original image.\n3. The composited photomosaic should be displayed according to the following\n   constraints:\n    - tiles should be rendered a complete row at a time (a user should never\n      see a row with some completed tiles and some incomplete)\n    - the mosaic should be rendered from the top row to the bottom row.\n4. The client app should make effective use of parallelism and asynchrony.\n\nThe project skeleton contains a lightweight server (written in node) for\nserving the client app and the tile images. To start it, run npm start.\n  /              serves mosaic.html\n  /js/*          serves static resources\n  /color/\u003chex\u003e   serves an SVG mosaic tile for color \u003chex\u003e.  e.g., /color/0e4daa\n\nThe tile size should be configurable via the code constants in js/mosaic.js.\nThe project skeleton is already set up to include those constants in both the\nmosaic client and the mosaic server.  The default size is 16x16.\n\nYou should:\n - pretend you're submitting this as production-quality code for review; i.e.,\n   - write effective comments; \n   - make the code modular;\n   - make the code testable;\n - avoid using JS libraries (e.g., jQuery, Modernizr, React) as browser APIs\n   are sufficient for the exercise and we're not testing for familiarity with\n   any particular tools;\n - use HTML5 features where appropriate;\n - allocate about 3 hours to do the task.\n\nYou may:\n - edit /etc/hosts;\n - use any HTML5 feature supported by current Chrome (e.g., Promise, Worker);\n - be as creative as you like with the submission UI (file input, drag \u0026 drop,\n   etc); however, it is not the focus of the task, a minimal UI is fine.\n\nHave fun!\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frixrix%2Fmosaic-photo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frixrix%2Fmosaic-photo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frixrix%2Fmosaic-photo/lists"}