How jstrieb/urlpages works
Main Application Components
• Main Page Handler (index.html)
• Editor Interface (editor/)
• Bookmarklet Component (bookmarklet.js)
• Encoding/Decoding System (b64.js)
• API Interface (api.js)
Data Flow Architecture
a. Content Creation Flow:
• Editor → Encoding System → URL Generation
b. Content Consumption Flow:
• URL → Decoding System → Page Rendering
c. Page Cloning Flow:
• Bookmarklet → External Page → Encoding System → URL Generation
User Interface Layer (Top)
• Use rectangles to represent these UI elements
External Interactions (Sides)
• Bookmarklet component
• Integration with external web pages
• URL shortener service interaction points
Data Transformation Layer (Bottom)
• Base64 encoding/decoding process
• URL composition/decomposition
• Where compression occurs
• Blue: Core application components
• Green: User interface elements
• Orange: External services/interactions
• Purple: Data transformation processes
Important Elements to Highlight:
Stateless Nature
• How all data lives in the URL
Security Features
• Optional encryption layer (Link Lock integration)
• Where password protection can be applied
Integration Points
• URL shortener service connection points
• Browser bookmark integration
Specific Implementation Details:
• Editor Input → JSON Creation → Base64 Encoding → URL Generation
• URL Hash → Base64 Decoding → HTML/CSS/JS Extraction → Page Rendering
A special section showing the bookmarklet's interaction
• External Page → DOM Capture → Resource Embedding → URL Encoding