{"id":17451115,"url":"https://github.com/janaka/blog-janaka-dev","last_synced_at":"2026-01-20T05:01:27.760Z","repository":{"id":36990745,"uuid":"251455927","full_name":"janaka/blog-janaka-dev","owner":"janaka","description":"Blog at janaka.dev","archived":false,"fork":false,"pushed_at":"2023-12-14T14:27:16.000Z","size":8353,"stargazers_count":0,"open_issues_count":52,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-12-14T15:37:06.746Z","etag":null,"topics":["blog","gatsby","ipfs","ipfs-web"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/janaka.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-blog-post-content","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-03-30T23:57:08.000Z","updated_at":"2023-12-20T15:49:29.235Z","dependencies_parsed_at":"2023-12-14T15:51:24.508Z","dependency_job_id":null,"html_url":"https://github.com/janaka/blog-janaka-dev","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janaka%2Fblog-janaka-dev","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janaka%2Fblog-janaka-dev/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janaka%2Fblog-janaka-dev/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janaka%2Fblog-janaka-dev/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/janaka","download_url":"https://codeload.github.com/janaka/blog-janaka-dev/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247517921,"owners_count":20951719,"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":["blog","gatsby","ipfs","ipfs-web"],"created_at":"2024-10-17T22:42:58.024Z","updated_at":"2026-01-20T05:01:22.731Z","avatar_url":"https://github.com/janaka.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [janaka.dev](janaka.dev)\n\nPersonal blog by Janaka Abeywardhana. Thoughts and notes on web technology, software development, and technical product managenement.\n\nThe main version at https://janaka.dev is hosted traditionally. A mirror at https://ipfs.janaka.dev is hosted on [IPFS](ipfs.io). A key reason for creating this site and using a static site generator was to host on IPFS as a learning exercise (web3). I've not managed to get IPFS hosting working reliably. So for now web2 hosting until I figure it out.\n\nForked from [Gatsby blog starter](https://github.com/gatsbyjs/gatsby-starter-blog).\nHelp and inspiration from [overreacted.io by Dan Abramov](https://github.com/gaearon/overreacted.io).\nSyntax theme based on [Sarah Drasner's Night Owl](https://github.com/sdras/night-owl-vscode-theme/) with small tweaks. Copied from overreacted.io.\n\n## Contributions\n\nNo third-party contributions except for code and content fixes. PRs welcome.\n\n[Supported languages](https://prismjs.com/#supported-languages) in code blocks\n\n\n### Deploy to IPFS [https://ipfs.janaka.dev](https://ipfs.janaka.dev)\n\n- Push to master on Github triggers the deploy workflow on [fleek.co](fleek.co)\n\n### Deploy to traditional hosting [https://janaka.dev](https://janaka.dev)\n\n- Push to master on Github triggers the deploy workflow on Github actions\n\n### To run locally\n\n- run `yarn dev`\n- open [https://localhost:8000](https://localhost:8000)\n\n### Deploy to IPFS manually from local\n\nThis is not the preferred option.\n\n- `yarn build`\n  Note: This command wraps `gatsby build`\n- `cd blog-janaka-dev`\n- `ipfs add -r public`\n- (One off step) create custome key `ipfs key gen --type=rsa -size=2048 blog-janaka-dev`\n  Should return a `$PEER_ID`\n- (one off step) create TLS cert?\n- `ipfs name publish --key=blog-janaka-dev $CID` $CID is the content ID from the add step\n  Should return `Published to $PEER_ID: /ipfs/$CID`\n\nrefs: [https://docs-beta.ipfs.io/how-to/host-single-page-site/#create-your-site](https://docs-beta.ipfs.io/how-to/host-single-page-site/#create-your-site)\n\n### Deploy to S3 hosting from local\n\nThis is not the preferred option. Use this only if local testing of CI/CD is require for troubleshooting\n\n- Add the following to a `.env` file\n\n  ```env\n  AWS_S3_BUCKET_NAME=\u003cbucket name\u003e\n  AWS_REGION=\u003caws region\u003e\n  AWS_PROFILE=\u003caws credentials profile name\u003e\n  ```\n\n- `yarn build`\n- `yarn deploy`\n\n## Setup\n\n- [CI/CD with Github action](./docs/ci-cd-setup.md)\n- [DNS](./docs/dns-setup.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjanaka%2Fblog-janaka-dev","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjanaka%2Fblog-janaka-dev","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjanaka%2Fblog-janaka-dev/lists"}