← All Projects
Hardware / Software

NFC Macros

In Progress

NFC Macros is a browser-based tool for building and writing custom PC automation macros triggered by physical NFC tags. Design sequences that open apps, launch websites, run scripts, type keystrokes, or chain multiple actions together — then write a URL payload to a blank NFC tag. Tap the tag with your phone and the action runs on your PC instantly.

The whole system runs locally: a lightweight server on your PC listens for requests over your home network, and the NFC tag simply acts as a physical shortcut that makes an HTTP call when tapped. No cloud, no third-party app required on the triggering device — just a cheap NFC tag and any NFC-capable phone.

Web NFC API JavaScript Local HTTP Server NDEF / NTAG213 Browser-Native

How It Works

Step 1

Build Your Macros

Use the builder to design all the macros you want — open apps, run scripts, launch sites, type text, or chain steps together.

Step 2

Download the Server

Export your macros as a .py file. This script contains your macros and acts as the local server your tags will talk to.

Step 3

Run It on Your PC

Run the .py file on your Windows PC. It starts a lightweight local server that listens for tag tap requests over your network.

Step 4

Write the NFC Tag

Use your phone to write each macro's trigger URL to a blank NFC tag. iPhone users use NFC Tools; Android users can write directly from Chrome.

Step 5

Tap to Run

Tap any programmed tag with your phone. The request hits your PC and the macro executes instantly — no unlocking, no app, one tap.

What You Need

Hardware

  • Blank NFC tags (NTAG213, 215, or 216)
  • iPhone (iOS 13+) or Android phone
  • Windows PC on the same Wi-Fi network

Software

  • Local server running on your PC
  • Chrome (Android) or NFC Tools app (iPhone) to write tags
  • No app needed on your phone to trigger macros

Network

  • PC and phone on the same Wi-Fi network
  • Static or reserved IP recommended for the PC

Setup Guides

🖥️

Windows PC

Server setup & macro configuration

1
Find your PC's local IP: open Command Prompt and run ipconfig. Look for the IPv4 Address under your Wi-Fi adapter (e.g. 192.168.1.50). Enter it in the PC Settings panel in the builder.
2
Build all the macros you want in the NFC Macro Builder — open apps, run scripts, navigate to sites, type keystrokes, or chain multiple steps per macro.
3
Click Download .py to export your macros as a Python server script.
4
Run the downloaded .py file on your PC: double-click it, or open Command Prompt in that folder and run python server.py. Keep it running whenever you want your tags to work.
5
Write each macro's NFC tag using your phone (see iPhone guide), then tap to trigger. The macro runs on your PC immediately.
Requires Python 3: Download free from python.org if not already installed. To keep your PC's IP stable, set a DHCP reservation in your router — search your router model + "DHCP reservation."
📱

iPhone

Writing tags & triggering macros

1
Make sure your PC's .py server is already running and your iPhone is on the same Wi-Fi network as the PC.
2
Download NFC Tools (free) from the App Store. This is only needed once per tag to write the URL — you won't need it again after that.
3
In the NFC Macro Builder, copy the trigger URL for the macro you want to write to a tag.
4
Open NFC Tools → tap WriteAdd a recordURL/URI → paste the trigger URL → tap Write → hold your iPhone against the blank NFC tag until it confirms.
5
That's it. From now on, just tap the tag with your iPhone — no app, no unlock required. iOS fires the request and your macro runs on the PC instantly.
Note: Safari does not support writing NFC tags — NFC Tools handles that one-time step. Once a tag is written, no app is needed to trigger it.
iPhone NFC & Security: Due to a built-in iOS security feature, tapping an NFC tag shows a notification banner at the top of the screen first. You have to tap that notification to confirm before the macro fires — so it's technically a 2-tap process on iPhone rather than a true single tap.

Roadmap

Try the Builder →