{"id":20863361,"url":"https://github.com/agregoreweb/agregore-cli","last_synced_at":"2025-10-05T06:38:26.759Z","repository":{"id":42861800,"uuid":"508464434","full_name":"AgregoreWeb/agregore-cli","owner":"AgregoreWeb","description":"Run  p2p web scripts from the CLI, no browser required.","archived":false,"fork":false,"pushed_at":"2024-04-11T22:03:40.000Z","size":36,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-29T04:48:00.776Z","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":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AgregoreWeb.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}},"created_at":"2022-06-28T21:48:05.000Z","updated_at":"2024-10-20T22:55:14.000Z","dependencies_parsed_at":"2022-07-08T00:10:26.271Z","dependency_job_id":null,"html_url":"https://github.com/AgregoreWeb/agregore-cli","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AgregoreWeb%2Fagregore-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AgregoreWeb%2Fagregore-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AgregoreWeb%2Fagregore-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AgregoreWeb%2Fagregore-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AgregoreWeb","download_url":"https://codeload.github.com/AgregoreWeb/agregore-cli/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225132981,"owners_count":17425913,"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-11-18T05:28:43.549Z","updated_at":"2025-10-05T06:38:26.741Z","avatar_url":"https://github.com/AgregoreWeb.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# agregore-cli\n\nRun  p2p web scripts from the CLI, no browser required.\n\n**Work in progress!**\n\n## CLI\n\n```\nnpx agregore --help\n\nagregore run \u003cscript\u003e [...opts]\nagregore eval \"Some code\" [...opts]\n\n--no-https: Disable loading scripts from HTTPS\n--no-http:  Disable loading scripts from HTTP\n--no-ipfs: Disable loading scripts from IPFS\n--no-hyper: Disable loading scripts from hypercore-protocol\n--root: The root folder to persist data to (defaults to current folder)\n--help: Show this text\n```\n\n```\nnpm i -g agregore\nagregore run hyper://blog.mauve.moe/example.js\nagregore eval '(await fetch(\"hyper://agregore.mauve.moe/index.md\")).text()'\necho \"4+20\" | agregore eval\nagregore repl\n```\n\n### Currently missing before being \"stable\":\n\n- `file://` support\n- Persistence\n- More APIs?\n\n## TODO:\n\n- Use vm module to set up environment\n- Inject browser APIs\n\t- Reuse as much as possible from existing [globals](https://nodejs.org/api/globals.html)\n- Set up dynamic fetch map `\u003cscheme\u003e =\u003e fetch()`\n- Wrap map with a `fetch()` API which can understand schemes\n- Inject `fetch()` into VM\n- Add custom linker which uses `fetch()`\n- Register `http://` and `https://`\n- Register `file://` protocol scheme, limit to local folder or below\n- Register p2p protocol schemes (dynamic require?)\n\t- ipfs/ipns/ipld/pubsub\n\t- hyper\n- Publish as downloadable binary\n- Figure out import maps\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagregoreweb%2Fagregore-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fagregoreweb%2Fagregore-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagregoreweb%2Fagregore-cli/lists"}