localsend
v0.1.1
Published
[](https://www.npmjs.com/package/localsend) [](https://jsr.io/@crosscopy/localsend)
Readme
localsend-ts
A TypeScirpt implementation of the LocalSend protocol
LocalSend provides a documentation for their protocol at https://github.com/localsend/protocol
I've seen some implementations in rust
- https://crates.io/crates/localsend
- https://github.com/tom8zds/localsend_rs
I want to build a LocalSend integration extension for my project https://github.com/kunkunsh/kunkun
So I decided to build a TypeScript implementation of the LocalSend protocol.
CLI
npx localsend
# Please use a subcommand: send | receive | discover
# Examples:
# localsend send 192.168.1.100 ./file.txt
# localsend receive --saveDir ./downloads
# localsend discover --timeout 10Library
import {
BunServerAdapter,
NodeServerAdapter,
DenoServerAdapter,
createServerAdapter,
LocalSendServer,
LocalSendHonoServer,
LocalSendClient,
MulticastDiscovery,
HttpDiscovery
} from "localsend"
// see ./examples and src/cli.ts for how to use themDevelopment
deno -A --unstable-sloppy-imports --unstable-net src/cli.ts receive -=alias deno-client
bun run src/cli.ts receive