{"id":15725870,"url":"https://github.com/ndrean/gruland","last_synced_at":"2026-04-17T01:31:58.773Z","repository":{"id":124425039,"uuid":"609345949","full_name":"ndrean/gruland","owner":"ndrean","description":"NPM AWS package \u0026\u0026 serverlessland example-patterns","archived":false,"fork":false,"pushed_at":"2023-08-04T14:25:14.000Z","size":468,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-31T01:28:43.186Z","etag":null,"topics":["aws","elixir","javascript","universal-router","zustand"],"latest_commit_sha":null,"homepage":"https://gruland.surge.sh","language":"Elixir","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/ndrean.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":"2023-03-03T23:11:25.000Z","updated_at":"2023-03-19T01:01:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"407cf10b-9c3b-43dc-82ac-4aa61f6bd354","html_url":"https://github.com/ndrean/gruland","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ndrean/gruland","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ndrean%2Fgruland","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ndrean%2Fgruland/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ndrean%2Fgruland/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ndrean%2Fgruland/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ndrean","download_url":"https://codeload.github.com/ndrean/gruland/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ndrean%2Fgruland/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31911454,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T18:22:33.417Z","status":"ssl_error","status_checked_at":"2026-04-16T18:21:47.142Z","response_time":69,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["aws","elixir","javascript","universal-router","zustand"],"created_at":"2024-10-03T22:24:42.963Z","updated_at":"2026-04-17T01:31:58.733Z","avatar_url":"https://github.com/ndrean.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Gruland\n\nAccessible via: \u003chttps://gruland.surge.sh\u003e\n\nA backend to serve the statistics on AWS package from NPM is deployed on fly.io (`curl https://gruland.fly.dev/api/packages?p=\"@grucloud\"`)\n\n```bash\n\u003e fly deploy\n```\n\n## JSON files (Elixir)\n\n1/ To build the examples,\n\n- fork the repo \u003chttps://github.com/aws-samples/serverless-patterns\u003e.\n- open an IEx session and run `Builder.run`. It will read all the directories and extract the \"example-pattern.json\" files, and concat into a new file for the front to render it.\n\nIn a terminal run:\n\n```bash\nmix deps.get\niex -S mix\n```\n\nThis open an IEx session. Then run:\n\n```elixir\niex\u003e Builder.run\n```\n\nThis creates a file \"serverlessland-examples.json\"\n\n2/ The NPM packages are served by a deployed app. You can `curl https://gruland.fly.dev/api/packages?p=\"mypackage\"` or use the front-end `https://gruland.surge.sh` to get them.\n\nThe file \"aws-npm-packages.json\" is created if you set `true`. This can only be done in the terminal locally where you can also set \"starting\" and \"ending\" query period.\n\n```elixir\n$ iex -S mix\niex\u003e Npm.find(true, \"@aws-sdk/client\", \"2022-01-01\", \"2023-01-01\")\n```\n\n3/ Sources:\nThe official list of AWS NPM packages is: \u003chttps://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/index.html\u003e\n\nThe NPM api can be found at: \u003chttps://api-docs.npms.io/\u003e and a \"search\" endpint \u003chttps://api.npms.io/v2/search\u003e (paginated per 25).\n\n4/ Results for AWS JS packages in 2022:\n\nTotal downloads in 2022 per package:\n\n\u003cimg width=\"702\" alt=\"Screenshot 2023-03-11 at 01 42 08\" src=\"https://user-images.githubusercontent.com/6793008/224469567-eca61d3d-448c-4689-ac94-7acdf4f9a8ac.png\"\u003e\n\nDetail of downloads per package in 2022:\n\n\u003cimg width=\"422\" alt=\"Screenshot 2023-03-11 at 01 44 37\" src=\"https://user-images.githubusercontent.com/6793008/224469675-a996a21a-d885-4eb8-a67b-9756ce733c45.png\"\u003e\n\nThe code of AWS NPM packages can be run in a Livebook.\n\n[![Run in Livebook](https://livebook.dev/badge/v1/blue.svg)](https://livebook.dev/run?url=https://github.com/ndrean/gruland/blob/main/livebook.livemd)\n\n## Front\n\nVite generate Preact + Universal-Router + Zustand\n\nPackage.json:\n\n```json\n\"dependencies\": {\n    \"history\": \"^5.3.0\",\n    \"preact\": \"^10.11.3\",\n    \"universal-router\": \"^9.1.0\",\n    \"zustand\": \"^4.3.6\"\n  },\n```\n\nErase \"React\" in the \"node_modules\".\n\nVisible at: \u003chttps://gruland.surge.sh\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fndrean%2Fgruland","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fndrean%2Fgruland","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fndrean%2Fgruland/lists"}