{"id":16480549,"url":"https://github.com/andrewjbateman/svelte-rxjs-api","last_synced_at":"2026-04-18T07:34:17.986Z","repository":{"id":96860950,"uuid":"397992820","full_name":"AndrewJBateman/svelte-rxjs-api","owner":"AndrewJBateman","description":":clipboard: Tutorial app to display random Github user info. using Svelte with rxjs. Code by Ilia Mikhailov of Codechips.me with minor changes due to deprecations \u0026 commenting","archived":false,"fork":false,"pushed_at":"2022-03-21T20:05:51.000Z","size":711,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-11T08:48:38.040Z","etag":null,"topics":["ajax-request","api-rest","css3","github-api","html5","rxjs","rxjs-observables","snowpack","svelte3"],"latest_commit_sha":null,"homepage":"","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/AndrewJBateman.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}},"created_at":"2021-08-19T15:37:54.000Z","updated_at":"2022-03-21T20:00:32.000Z","dependencies_parsed_at":"2023-03-30T11:34:41.979Z","dependency_job_id":null,"html_url":"https://github.com/AndrewJBateman/svelte-rxjs-api","commit_stats":{"total_commits":7,"total_committers":1,"mean_commits":7.0,"dds":0.0,"last_synced_commit":"512cf506a1a9fe9873b7278a3f198c9ea85aa181"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fsvelte-rxjs-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fsvelte-rxjs-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fsvelte-rxjs-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fsvelte-rxjs-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AndrewJBateman","download_url":"https://codeload.github.com/AndrewJBateman/svelte-rxjs-api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241180998,"owners_count":19923335,"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":["ajax-request","api-rest","css3","github-api","html5","rxjs","rxjs-observables","snowpack","svelte3"],"created_at":"2024-10-11T13:04:26.179Z","updated_at":"2025-10-13T23:08:29.815Z","avatar_url":"https://github.com/AndrewJBateman.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# :zap: Svelte RXJS API\n\n* Snowpack-generated Sveltejs app to display random Github users\n* Code by [Ilia Mikhailov of Codechips.me](https://codechips.me/) - see [:clap: Inspiration](#clap-inspiration) below. Some minor changes due to deprecations \u0026 commenting.\n* **Note:** to open web links in a new window use: _ctrl+click on link_\n\n![GitHub repo size](https://img.shields.io/github/repo-size/AndrewJBateman/svelte-rxjs-api?style=plastic)\n![GitHub pull requests](https://img.shields.io/github/issues-pr/AndrewJBateman/svelte-rxjs-api?style=plastic)\n![GitHub Repo stars](https://img.shields.io/github/stars/AndrewJBateman/svelte-rxjs-api?style=plastic)\n![GitHub last commit](https://img.shields.io/github/last-commit/AndrewJBateman/svelte-rxjs-api?style=plastic)\n\n## :page_facing_up: Table of contents\n\n* [:zap: Svelte RXJS API](#zap-svelte-rxjs-api)\n  * [:page_facing_up: Table of contents](#page_facing_up-table-of-contents)\n  * [:books: General info](#books-general-info)\n  * [:camera: Screenshots](#camera-screenshots)\n  * [:signal_strength: Technologies](#signal_strength-technologies)\n  * [:floppy_disk: Setup](#floppy_disk-setup)\n  * [:wrench: Testing](#wrench-testing)\n  * [:computer: Code Examples](#computer-code-examples)\n  * [:cool: Features](#cool-features)\n  * [:clipboard: Status \u0026 To-Do List](#clipboard-status--to-do-list)\n  * [:clap: Inspiration - code by Ilia Mikhailov](#clap-inspiration---code-by-ilia-mikhailov)\n  * [:file_folder: License](#file_folder-license)\n  * [:envelope: Contact](#envelope-contact)\n\n## :books: General info\n\n* App bootstrapped with [Create Snowpack App (CSA)](https://www.snowpack.dev/)\n* Displays random Github user details\n* Note: Rxjs 'combineLatest' is deprecated - replaced with combineLatestWith\n* `JSON.stringify()` method initially used to convert a JavaScript object to a JSON string\n\n## :camera: Screenshots\n\n![Frontend screenshot](./imgs/users.png)\n\n## :signal_strength: Technologies\n\n* [Snowpack v3](https://www.snowpack.dev/) frontend build tool, alternative to webpack or Parcel etc.\n* [Sveltejs v3](https://svelte.dev/) fast front-end UI library with small bundles of highly-optimized vanilla JavaScript \u0026 declarative transitions. Does not use a virtual DOM.\n* [RxJS v7](https://rxjs.dev/) Reactive Extensions JS library\n* [RxJS/AJAX] used to fetch Github API observable\n* [Github REST API v2](https://docs.github.com/en/rest/reference/users) RESTful API with data on all world countries. [Get a Github access token](https://github.com/settings/tokens) so API access not limited\n\n## :floppy_disk: Setup\n\n* `npm i` to install dependencies\n* `npm start` to run Snowpack dev server on port `localhost:8080`\n* `npm run build` to build a static copy of app to a `build/` folder\n\n## :wrench: Testing\n\n* N/A\n\n## :computer: Code Examples\n\n* Svelte code to display Github user info.\n\n```svelte\n\u003cdiv\u003e\n    \u003cbutton class=\"refresh\" on:click={refresh}\u003erefresh\u003c/button\u003e\n    {#if $suggestions}\n      \u003cul\u003e\n        {#each $suggestions as user}\n          \u003cli\u003e\n            \u003cdiv class=\"user\"\u003e\n              \u003cimg src={user.avatar_url} alt={user.login} /\u003e\n              \u003ca href={user.html_url}\u003e{user.login}\u003c/a\u003e\n              \u003cbutton class=\"refresh\" on:click={() =\u003e replace(user.login)}\n                \u003ex\u003c/button\n              \u003e\n            \u003c/div\u003e\n          \u003c/li\u003e\n        {/each}\n      \u003c/ul\u003e\n    {/if}\n  \u003c/div\u003e\n  ```\n\n## :cool: Features\n\n* Observables can be displayed in Svelte markup with a preceding $\n\n## :clipboard: Status \u0026 To-Do List\n\n* Status: Working\n* To-Do: Add more commenting and try diffferent RxJS methods\n\n## :clap: Inspiration - code by Ilia Mikhailov\n\n* [Ilia Mikhailov: Recreating a classic FRP tutorial with Svelte and RxJS](https://codechips.me/classic-frp-tutorial-with-svelte-rxjs-6/)\n\n## :file_folder: License\n\n* N/A\n\n## :envelope: Contact\n\n* Repo created by [ABateman](https://github.com/AndrewJBateman), email: gomezbateman@yahoo.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewjbateman%2Fsvelte-rxjs-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrewjbateman%2Fsvelte-rxjs-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewjbateman%2Fsvelte-rxjs-api/lists"}