CrossPaste.

A small shared-text room for moving links, notes, and short codes between devices without sending yourself another message.

Live · Interactive walkthrough

MY ROLE
Personal project · Full-stack development
STACK
Rails 8.1 · Turbo Streams · Action Cable · PostgreSQL · Docker · Render
FOCUS
Shared rooms · Expiry · Deployment
EXPLORE
Live app ↗ GitHub ↗

Copy here. Pick it up over there.

A link on a laptop and a phone on the desk should be a small problem. In practice, the workaround often means sending a message to yourself or opening an unrelated app just to move a few words.

CrossPaste gives devices one temporary text room. Create a room, share its short code, join on another device, and submit text to the shared surface. I built it as a small Rails and Hotwire utility, including room creation and joining, text updates, copying, clearing, expiration, and a system-aware dawn/night theme.

A small working example.

TWO DEVICES. ONE ROOM.LOCAL SIMULATION

Give it a little nudge.

Edit the text on the laptop, then send it to the sample phone.

01 / YOUR LAPTOP
ROOM / h7k2mx53/240
02 / SAMPLE PHONE

Your text will appear here.

ROOM / h7k2mxDEMO

This is a browser-only demonstration, not a real shared room.

The system underneath

A small stack, on purpose.

Device ASubmit shared text
Rails roomTurbo broadcasts
Device BReceive the update

Rails saves room activity and encrypted text to Neon Postgres. Turbo Streams broadcasts updates over Action Cable WebSockets. Stimulus handles character counts, copying, and theme selection.

Deployment and CI/CD

I moved the Docker deployment from a VPS to Render. A single Puma process handles web requests and WebSocket broadcasts. GitHub Actions runs the Rails tests, RuboCop, and security scans. Its production smoke test creates a room, saves text to PostgreSQL, and checks that another connection receives the update over a WebSocket. I released the verified revision to Render.

View the passing CI run

The interesting decisions.

Make joining simple.

Rooms use six-character human-readable codes. Join input is normalized, and missing or expired rooms return a readable message instead of an unusable room screen.

Give temporary rooms an actual lifetime.

A room expires after one hour without activity. The server checks activity when opening a room and purges expired records during request handling. Explicit deletion broadcasts a deleted-room state to connected clients.

Keep one clear shared surface.

The actual application syncs submitted text; it is not collaborative keystroke-by-keystroke editing. Text is limited to 5,000 characters, and updates replace the shared room surface.

Treat text as private, without overclaiming.

The model encrypts stored room text using Rails encryption. A room code still grants access, so it is not an authentication boundary or a substitute for a secure secrets-sharing tool.

What came out of it.

The live app lets two devices join the same room with a six-character code and exchange submitted text. A room expires after an hour of inactivity.

The useful lesson is that a minimal interface still has a lifecycle: codes need validation, rooms expire, a second device needs updates, and deletion needs a meaningful screen. Those details matter as much as the happy path.

Limitations

Anyone with the room code can access the shared text. The room keeps the latest submitted value. The portfolio walkthrough simulates the exchange with two sample devices in one browser.

Got something in mind?

Let’s make
something useful.

↗
mahad.imran555@gmail.com

Based in DFW. Open to internships,
freelance work, and engineering opportunities.