How robertmagic52/magic-links works
magic-links is a small Express portal with spectator and controller page routes plus APIs for reading and editing portal links and a master redirect. The server persists portal data as JSON, initializing defaults and migrating an older link format when needed. The HTML files are served by the routes, but their contents were not sampled, so browser interactions and any redirect behavior are not inferred.
Main entry points: index.js Express server · index.html Spectator page · app.html Controller page
Components 8
HTTP server
- Express server
index.js - Portal APIs
index.js
Portal pages
- Page routes
index.js - Spectator page
index.html - Controller page
app.html
Portal data
- Data access
index.js - Portal JSON data
index.js
Other components
- Portal visitor
Connections 7
- Portal visitor → Express server: requests pages or APIs
index.js - Express server → Page routes: routes requests
index.js - Page routes → Spectator page: serves at /
index.js - Page routes → Controller page: serves at /app
index.js - Express server → Portal APIs: routes API requests
index.js - Portal APIs → Data access: reads or saves
index.js - Data access → Portal JSON data: reads and writes
index.js