Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

localsend

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

localsend

[![NPM Version](https://img.shields.io/npm/v/localsend)](https://www.npmjs.com/package/localsend) [![JSR](https://jsr.io/badges/@crosscopy/localsend)](https://jsr.io/@crosscopy/localsend)

latest
Source
npmnpm
Version
0.1.2
Version published
Weekly downloads
14
7.69%
Maintainers
1
Weekly downloads
 
Created
Source

localsend-ts

NPM Version JSR

A TypeScirpt implementation of the LocalSend protocol

LocalSend provides a documentation for their protocol at https://github.com/localsend/protocol

Readme to the protocol: https://github.com/localsend/protocol/blob/main/README.md

I've seen some implementations in rust

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

# Run the sophisticated TUI with real-time device scanning
npm run tui
# or with Bun
bun src/cli-tui.tsx

# With custom port and alias
npm run tui -- --port 8080 --alias "My Device"

The TUI provides a sophisticated interface built with Ink (React for CLI) featuring:

  • Real-time device scanning - Continuously discover LocalSend devices
  • Device selection - Navigate and select from discovered devices
  • Send text messages - Interactive text input and sending
  • Send files - File path input with validation
  • Receiver mode - Real-time file receiving with progress
  • Settings - Dynamic device configuration

Simple Interactive CLI

# Run the basic menu-driven CLI
npm run cli

# With custom settings
npm run cli -- --port 8080 --alias "My Device"

Basic menu interface with:

  • Device discovery and selection
  • Text and file sending
  • Receiver mode with graceful shutdown

Traditional 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 10

Library

import {
	BunServerAdapter,
	NodeServerAdapter,
	DenoServerAdapter,
	createServerAdapter,
	LocalSendServer,
	LocalSendHonoServer,
	LocalSendClient,
	MulticastDiscovery,
	HttpDiscovery
} from "localsend"

// see ./examples and src/cli.ts for how to use them

Development

deno -A --unstable-sloppy-imports --unstable-net src/cli.ts receive -=alias deno-client
bun run src/cli.ts receive

FAQs

Package last updated on 15 Jan 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts