Skip to content

Conversation

@deathbyknowledge
Copy link
Owner

Summary

Implement a complete Node.js CLI client for the YSTP (Your Super Transfer Program) file transfer service.

Changes

  • New CLI executable (cli/ystp.mjs):

    • send command: Upload files and generate shareable mnemonic codes
    • receive command: Download files using session codes
    • Real-time progress indicators with formatted file sizes
    • Support for custom host, port, and protocol options
    • Chunked transfers (64KB) for memory efficiency
    • Comprehensive error handling and user feedback
  • Updated package.json:

    • Added ws dependency for WebSocket communication
    • Added bin field to register ystp as a CLI command

Usage Examples

# Send a file (outputs shareable code for receiver)
ystp send document.pdf

# Receive a file using session code
ystp receive apple-banana-cherry-date --output ~/downloads

# Send file to remote server with SSL
ystp send file.zip --host example.com --port 443 --protocol wss

# Get help
ystp

Features

  • ✓ Automatic mnemonic code generation and sharing
  • ✓ Real-time progress bars showing transfer speed
  • ✓ File metadata validation (name, size)
  • ✓ Chunked transmission for large files
  • ✓ Graceful error handling and recovery
  • ✓ Support for both local and remote connections

Created with Open-Inspect

- Implement send command for file upload with mnemonic code sharing
- Implement receive command for file download using session code
- Add progress indicators with formatted byte sizes
- Support custom host, port, and protocol options
- Handle chunked transfers (64KB chunks) for efficient memory usage
- Add comprehensive error handling and user feedback
@hellocomputer-bot
Copy link

HelloComputer

Click below to explore this PR with OpenCode:

Open Sandbox

The sandbox will automatically:

  • Clone this repository
  • Check out branch open-inspect/29395283fe479684195dd6020928b485
  • Start OpenCode for AI-assisted exploration

Commands

You can also interact with me by commenting:

Command Description
@hellocomputer {question} Ask a question about this PR
@hellocomputer docs Generate documentation
@hellocomputer review Get a code review
@hellocomputer help Show all commands

You'll need to sign in with GitHub to access the sandbox.

@open-inspect-local-de open-inspect-local-de bot merged commit 3c8f4ef into master Jan 28, 2026
3 checks passed
@hellocomputer-bot
Copy link

Command completed successfully.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant