{"id":51465435,"url":"https://github.com/data-fair/processing-json-file","last_synced_at":"2026-07-06T10:30:44.177Z","repository":{"id":340803218,"uuid":"1106095813","full_name":"data-fair/processing-json-file","owner":"data-fair","description":null,"archived":false,"fork":false,"pushed_at":"2026-06-24T10:32:23.000Z","size":301,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-06-24T10:44:09.080Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/data-fair.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-11-28T16:13:05.000Z","updated_at":"2026-06-24T10:32:27.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/data-fair/processing-json-file","commit_stats":null,"previous_names":["data-fair/processing-json-file"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/data-fair/processing-json-file","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/data-fair%2Fprocessing-json-file","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/data-fair%2Fprocessing-json-file/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/data-fair%2Fprocessing-json-file/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/data-fair%2Fprocessing-json-file/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/data-fair","download_url":"https://codeload.github.com/data-fair/processing-json-file/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/data-fair%2Fprocessing-json-file/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35187624,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-06T02:00:07.184Z","response_time":106,"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":"2026-07-06T10:30:43.474Z","updated_at":"2026-07-06T10:30:44.157Z","avatar_url":"https://github.com/data-fair.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# \u003cimg alt=\"Data FAIR logo\" src=\"https://cdn.jsdelivr.net/gh/data-fair/data-fair@master/ui/public/assets/logo.svg\" width=\"30\"\u003e @data-fair/processing-json-file\n\nA plugin that creates and updates a data-fair dataset from one or more remote JSON or CSV files.\n\n## Features\n\n- **Multiple protocols** — download source files over HTTP(S), SFTP or FTP.\n- **JSON or CSV** — pick the source format; a JSON file (or folder of files) is flattened through a configurable path mapping, while a CSV file is loaded as-is (its columns become the dataset's columns).\n- **Single file or whole folder** — point at a file matching the chosen format or at a folder (URL ending with `/`); every matching file in the folder is downloaded and concatenated.\n- **Reused SFTP connection** — a single SFTP connection is opened for the whole batch (listing, downloads and deletions) instead of reconnecting per file.\n- **Convert and load** — each file is converted according to the configuration and pushed to the target dataset with `_bulk_lines`.\n- **Process and delete** — optionally delete each source file on the remote after a successful import, or move it to a `backup` folder instead (FTP/SFTP only).\n\n## Configuration\n\n| Field | Description |\n| ----- | ----------- |\n| `dataset` | The target data-fair dataset to fill. |\n| `url` | URL of the source. A path ending with `.json`/`.csv` (depending on the chosen format) targets a single file; a path ending with `/` targets every matching file of the folder. |\n| `username` / `password` | Optional credentials for the remote (HTTP basic auth, SFTP or FTP). |\n| `drop` | Whether to drop the existing lines before loading. |\n| `processAndDelete` | Delete each source file on the remote once it has been imported (FTP/SFTP only). |\n| `processAndMove` | Move each source file to a `backup` folder after import instead of deleting it — next to the file for a single-file URL, or inside the imported folder for a folder URL. Independent checkbox; takes precedence over `processAndDelete` when both are set (FTP/SFTP only). |\n| `format` | `json` (default) or `csv`. JSON files go through the path mapping below; CSV files are loaded as-is, with their delimiter auto-detected (all CSV files of a run must share the same delimiter). |\n\n## Release\n\nPublishing is handled automatically by CI: the plugin is pushed to the data-fair registry (`@data-fair/registry`), not to the public npm registry — there is no manual `npm publish`. A push to `main`/`master` publishes to the staging registry; pushing a `v*` tag publishes to production:\n\n```bash\nnpm version minor       # version bump + v* tag\ngit push --follow-tags  # CI publishes to the production registry\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdata-fair%2Fprocessing-json-file","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdata-fair%2Fprocessing-json-file","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdata-fair%2Fprocessing-json-file/lists"}