{"id":30835569,"url":"https://github.com/stsysd/urlshortener","last_synced_at":"2025-09-06T17:11:57.876Z","repository":{"id":239485806,"uuid":"151384867","full_name":"stsysd/urlshortener","owner":"stsysd","description":null,"archived":false,"fork":false,"pushed_at":"2019-02-13T17:25:49.000Z","size":96,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2024-05-12T20:34:42.110Z","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/stsysd.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":"2018-10-03T08:49:13.000Z","updated_at":"2024-05-12T20:34:51.446Z","dependencies_parsed_at":"2024-05-12T20:34:44.837Z","dependency_job_id":null,"html_url":"https://github.com/stsysd/urlshortener","commit_stats":null,"previous_names":["stsysd/urlshortener"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/stsysd/urlshortener","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stsysd%2Furlshortener","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stsysd%2Furlshortener/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stsysd%2Furlshortener/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stsysd%2Furlshortener/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stsysd","download_url":"https://codeload.github.com/stsysd/urlshortener/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stsysd%2Furlshortener/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273933933,"owners_count":25193602,"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-09-06T02:00:13.247Z","response_time":2576,"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":"2025-09-06T17:11:50.267Z","updated_at":"2025-09-06T17:11:57.864Z","avatar_url":"https://github.com/stsysd.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# URL Shortener on Blockchain\r\nその名の通り、ブロックチェーン上で動くURL短縮ツール\r\n\r\n# Demo\r\n- URL登録(要MetaMask)[https://urlshr.tk]\r\n- 短縮URL[https://urlshr.tk/#TCScAkgf]\r\n\r\n## Description\r\nEthereumのContractにURLを送ると、ハッシュ関数から[a-zA-Z0-9]からなる8文字のkeyを生成してmappingに登録する。短縮URLはルートに\"#[key]\"を加えたものになる。\r\n\r\n短縮URLにアクセスがあった場合は、Contractにkeyを送って元のURLを受け取り、javascriptでそのページにジャンプする。\r\n\r\n現在のところtestnet(ropsten)でのみ動作確認済み。\r\n\r\n# Requirement\r\n- truffle@4.1.14\r\n- truffle-hdwallet-provider@0.0.6\r\n- MetaMask@4.11.1 (for registraction)\r\n\r\n# Using Libraries\r\n- [web3.js](https://github.com/ethereum/web3.js/)\r\n- [Vue.js](https://jp.vuejs.org/index.html)\r\n- [axios](https://github.com/axios/axios)\r\n- [Pure.css](https://purecss.io/)\r\n\r\n## Setup\r\ninstall truffle-hdwallet-provider\r\n```\r\nnpm install truffle-hdwallet-provider\r\n```\r\n\r\nmigrate contract (to require MetaMask nmemonic of \"../nmemonic.txt\")\r\n```\r\nnpm run migrate\r\n```\r\n\r\nand serve files in local\r\n```\r\nnpm run serve // to serve \"./docs\" at http://127.0.0.1:8080\r\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstsysd%2Furlshortener","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstsysd%2Furlshortener","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstsysd%2Furlshortener/lists"}