{"id":30182712,"url":"https://github.com/muhammed770/powersync-attachments-for-node","last_synced_at":"2026-01-20T16:59:35.399Z","repository":{"id":307877619,"uuid":"1030956015","full_name":"Muhammed770/powersync-attachments-for-node","owner":"Muhammed770","description":"A modified version of powersync/attachments for node.js compatibility","archived":false,"fork":false,"pushed_at":"2025-08-02T18:02:34.000Z","size":743,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-02T20:36:57.181Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Muhammed770.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-08-02T17:35:43.000Z","updated_at":"2025-08-02T18:02:38.000Z","dependencies_parsed_at":"2025-08-02T20:47:09.434Z","dependency_job_id":null,"html_url":"https://github.com/Muhammed770/powersync-attachments-for-node","commit_stats":null,"previous_names":["muhammed770/powersync-attachments-for-node"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/Muhammed770/powersync-attachments-for-node","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Muhammed770%2Fpowersync-attachments-for-node","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Muhammed770%2Fpowersync-attachments-for-node/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Muhammed770%2Fpowersync-attachments-for-node/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Muhammed770%2Fpowersync-attachments-for-node/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Muhammed770","download_url":"https://codeload.github.com/Muhammed770/powersync-attachments-for-node/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Muhammed770%2Fpowersync-attachments-for-node/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270041711,"owners_count":24516907,"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-12T02:00:09.011Z","response_time":80,"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":"2025-08-12T10:15:48.166Z","updated_at":"2026-01-20T16:59:35.392Z","avatar_url":"https://github.com/Muhammed770.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @muhammedv/powersync-attachments-for-node\n\nThis is a fixed version of `@powersync/attachments` that resolves Node.js compatibility issues.\n\n## What was fixed\n\n### 1. ES Module Import Issues\n- Fixed relative imports in `lib/index.js` and `lib/AbstractAttachmentQueue.js` to include `.js` extensions\n- Original: `export * from './Schema'`\n- Fixed: `export * from './Schema.js'`\n\n### 2. Node.js Compatibility\n- Replaced `FileReader` (browser API) with Node.js `Buffer` for blob-to-base64 conversion\n- Original: Used `FileReader` which doesn't exist in Node.js\n- Fixed: Used `Buffer.from(arrayBuffer).toString('base64')`\n\n### 3. File Extension Handling\n- Updated all import statements to include proper file extensions for ES modules\n\n## Installation\n\n```bash\nnpm install @muhammedv/powersync-attachments-for-node\n```\n\n## Usage\n\nReplace the original package import:\n\n```javascript\n// Before\nimport { AbstractAttachmentQueue } from '@powersync/attachments';\n\n// After\nimport { AbstractAttachmentQueue } from '@muhammedv/powersync-attachments-for-node';\n```\n\n## Changes Made\n\n1. **lib/index.js**: Added `.js` extensions to all export statements\n2. **lib/AbstractAttachmentQueue.js**: \n   - Added `.js` extensions to import statements\n   - Replaced FileReader with Buffer for base64 conversion\n3. **package.json**: Updated name and version to avoid conflicts\n\n## License\n\nSame as original: Apache-2.0\n\n## Original Package\n\nThis is a fork of `@powersync/attachments` version 2.3.1 with Node.js compatibility fixes.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmuhammed770%2Fpowersync-attachments-for-node","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmuhammed770%2Fpowersync-attachments-for-node","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmuhammed770%2Fpowersync-attachments-for-node/lists"}