{"id":22472215,"url":"https://github.com/ckampfe/tweet_split_web","last_synced_at":"2025-03-27T16:22:02.839Z","repository":{"id":72030672,"uuid":"231261835","full_name":"ckampfe/tweet_split_web","owner":"ckampfe","description":null,"archived":false,"fork":false,"pushed_at":"2020-01-16T04:23:14.000Z","size":25,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-01T20:11:16.379Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ckampfe.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":"2020-01-01T20:42:10.000Z","updated_at":"2020-01-16T04:23:17.000Z","dependencies_parsed_at":"2023-03-23T09:04:09.245Z","dependency_job_id":null,"html_url":"https://github.com/ckampfe/tweet_split_web","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/ckampfe%2Ftweet_split_web","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ckampfe%2Ftweet_split_web/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ckampfe%2Ftweet_split_web/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ckampfe%2Ftweet_split_web/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ckampfe","download_url":"https://codeload.github.com/ckampfe/tweet_split_web/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245878932,"owners_count":20687300,"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-12-06T12:12:42.947Z","updated_at":"2025-03-27T16:22:02.815Z","avatar_url":"https://github.com/ckampfe.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"## About\n\nThis template demonstrates the minimum code and tooling necessary for a frontend web app with simple deployable artifacts consisting of one HTML file, one JavaScript file, and one WebAssembly file, using [`Yew`](https://github.com/yewstack/yew), [`wasm-bindgen`](https://github.com/rustwasm/wasm-bindgen), and [`wasm-pack`](https://github.com/rustwasm/wasm-pack).\n\nNote: [`yew-wasm-pack-template`](https://github.com/yewstack/yew-wasm-pack-template) is the full-featured counterpart to this template, integrating many common web technologies.\n\n## Usage\n\n### 1) Install `Rust` and `wasm-pack`\n\nFollow the instructions at https://www.rust-lang.org/tools/install and follow the `installation` link at [`wasm-pack`](https://github.com/rustwasm/wasm-pack).\n\n### 2) Build\n\nEnter `wasm-pack build --target web` from your project's root directory.\n\n### 3) [temporary] Bundle\n\nEnter `rollup ./main.js --format iife --file ./pkg/bundle.js` from your project's root directory.\n\nNote: Until `wasm-pack` [RFC #6](https://github.com/rustwasm/rfcs/blob/master/text/006-local-js-dependencies.md) is implemented there is no available option to [generate a single amalgamated JavaScript file](https://github.com/rustwasm/wasm-pack/issues/699).  In the interim a bundler, such as [`Rollup`](https://rollupjs.org/guide/en/#quick-start), must be used.\n\n### 4) [optional] Test Run\n\nRun a webserver from your project's root directory, such as with `python -m SimpleHTTPServer 8080`, and load http://localhost:8080/ in a browser to run the app.\n\nNote: It's expected behavior for the browser console to display an error similar to \"WebAssembly.instantiateStreaming failed. Assuming this is because your server does not serve wasm with application/wasm MIME type.\"  Your production webserver should be configured to associate WebAssembly files with the `application/wasm` MIME type.\n\n### 5) Deploy\n\nAccess your generated build artifacts, `bundle.js` and `yew_wasm_pack_minimal_bg.wasm`, in ./pkg from your project's root directory.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fckampfe%2Ftweet_split_web","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fckampfe%2Ftweet_split_web","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fckampfe%2Ftweet_split_web/lists"}