{"id":18901172,"url":"https://github.com/regular/tre-import","last_synced_at":"2025-08-21T02:04:51.872Z","repository":{"id":57379417,"uuid":"302285143","full_name":"regular/tre-import","owner":"regular","description":null,"archived":false,"fork":false,"pushed_at":"2020-10-09T07:56:20.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-27T10:48:38.636Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/regular.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}},"created_at":"2020-10-08T09:02:04.000Z","updated_at":"2020-10-09T07:56:19.000Z","dependencies_parsed_at":"2022-09-02T21:22:08.335Z","dependency_job_id":null,"html_url":"https://github.com/regular/tre-import","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/regular/tre-import","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/regular%2Ftre-import","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/regular%2Ftre-import/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/regular%2Ftre-import/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/regular%2Ftre-import/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/regular","download_url":"https://codeload.github.com/regular/tre-import/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/regular%2Ftre-import/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271415496,"owners_count":24755639,"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-08-21T02:00:08.990Z","response_time":74,"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":"2024-11-08T08:55:24.043Z","updated_at":"2025-08-21T02:04:51.847Z","avatar_url":"https://github.com/regular.png","language":"JavaScript","readme":"# tre-import\n\nsimple tool to publish messages stored as double-newline-delimited json.\nFor importing files and more complex features see tre-init/bin/import.js\n\n```\nUSAGE\n\n  tre-import INPUT_FILE|- [--dryRun] [--config CONFIG] [--help]\n\nDESCRIPTION\n\n  tre-import reads a double-newline-delimited JSON file containing ssb message content objects and publishes them to an ssb network.\n\n  INPUT_FILE           name of the input file or - for stdin\n  --dryRun             do not publish any messages and show diagnostic output\n  --config CONFIG      path to JSON file with caps.shs, defaults to .trerc (see FILES)\n  --help               show help\n\nFILES\n  \n  If --config CONFIG is not given, tre-import looks for a file named .trerc in the current directory or above. (and other locations, see rc on npm for details)\n  That JSON formatted file must have a property called csps.shs (the network key). The network key is used to discover a ssb server on the local network that shares its manifest with us. This usually only is the case, if it uses the same ssb id (e.g. tre server started from the same directory), or our ssb id is authorized by the server to call manifest() (e.g. bay-of-pleny started with --authorize or ssb-server started with our public key in config.master)\n\n  Auto-discovery ony works if the server uses ssb-lan to broadcasts its address. Bay-of-plenty and tre server do this.\n\nEXAMPLE\n\n  cat messages.jsondnld | tre-import - --dryRun\n\n```\n\n---\nLicense: MIT Copyright 2020 Jan Bölsche \u003cjan@lagomorph.de\u003e (https://regular.codes/)\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fregular%2Ftre-import","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fregular%2Ftre-import","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fregular%2Ftre-import/lists"}