@kosmas10/portal 0.0.4 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,44 +1,40 @@
1
1
  # Portal
2
2
 
3
- **Version:** 0.0.4
3
+ **Version:** 0.0.5
4
4
  **Package:** `@kosmas10/portal`
5
5
 
6
- A launcher portal for AI Chat Extensions applications. Provides a unified entry point to access Chat & Verify, Folder LLM Analyzer, and other AI-powered tools.
6
+ A launcher portal for AI Chat Extensions applications. Provides a unified entry point to access Chat & Verify, Folder LLM Analyzer, and other AI-powered tools. Built with React and bundled for maximum reliability.
7
7
 
8
8
  ## 🎯 Key Features
9
9
 
10
10
  - **🚀 Unified Launcher**: Single entry point for all AI Chat Extensions apps
11
11
  - **📱 Responsive Design**: Works on desktop and mobile devices
12
- - **⚡ Fast Loading**: 3-stage architecture for reliable, efficient loading
12
+ - **⚡ Fast Loading**: 2-stage architecture for reliable, efficient loading
13
13
  - **🔄 Auto-Updates**: Always loads the latest version of apps
14
14
  - **💻 No Installation Required**: Single HTML file that runs in any modern browser
15
+ - **⚛️ Built with React**: Modern component-based architecture
15
16
 
16
- ## 🏗️ Architecture: 3-Stage Loading System
17
+ ## 🏗️ Architecture: 2-Stage Loading System
17
18
 
18
- This application uses an innovative **3-stage loading architecture** designed for maximum reliability and flexibility:
19
+ This application uses a **simplified 2-stage loading architecture** with bundled React:
19
20
 
20
21
  ### Stage 1: Bootstrap (User Installs This)
21
22
  - **File**: `portal-bootstrap.html`
22
- - **Purpose**: Ultra-minimal loader that NEVER changes
23
- - **Size**: ~2KB
24
- - **What it does**: Loads Stage 2 from npm/CDN
23
+ - **Purpose**: Ultra-minimal loader (~25 lines)
24
+ - **Size**: ~1KB
25
+ - **What it does**: Fetches version from package.json and loads the bundled app
25
26
 
26
- ### Stage 2: Loader (Auto-Updates)
27
- - **Package**: `@kosmas10/html-app-loader`
28
- - **Purpose**: Sophisticated HTML app loader
29
- - **What it does**: Handles complex loading logic, can be updated via npm
30
-
31
- ### Stage 3: Application (Auto-Updates)
27
+ ### Stage 2: Bundled React Application (Auto-Updates)
28
+ - **File**: `dist/portal.html`
32
29
  - **Package**: `@kosmas10/portal` (this package)
33
- - **Purpose**: The actual Portal application
34
- - **What it does**: Provides the launcher interface
30
+ - **What it does**: Self-contained React app with all dependencies bundled
35
31
 
36
32
  ### Why This Architecture?
37
33
 
38
- 1. **🛡️ Future-Proof**: Stage 1 never changes, so users never need to update their local file
39
- 2. **🔄 Auto-Updates**: Stages 2 & 3 update automatically via npm/CDN
40
- 3. **🐛 Bug Fixes**: Loader bugs can be fixed without user intervention
41
- 4. **📦 Flexible**: Can adapt to new requirements without breaking existing installations
34
+ 1. **🛡️ Future-Proof**: Stage 1 is simple and never needs to change
35
+ 2. **🔄 Auto-Updates**: Stage 2 updates automatically via npm/CDN
36
+ 3. **📦 Zero External Dependencies**: All code bundled in single HTML file
37
+ 4. **🐛 Reliable**: No CDN dependency issues or script loading failures
42
38
 
43
39
  ## 🚀 Quick Start
44
40
 
@@ -62,13 +58,6 @@ Simply navigate to:
62
58
  https://cdn.jsdelivr.net/npm/@kosmas10/portal@latest/portal-bootstrap.html
63
59
  ```
64
60
 
65
- ### Option C: Load Specific Version
66
-
67
- Use URL parameters to control versions:
68
- ```
69
- https://cdn.jsdelivr.net/npm/@kosmas10/portal@latest/portal-bootstrap.html?appVersion=0.0.1
70
- ```
71
-
72
61
  ## 📖 Available Applications
73
62
 
74
63
  The Portal provides access to:
@@ -79,35 +68,41 @@ A chatbot with citations and highlights in source documents for easy verificatio
79
68
  ### Folder LLM Analyzer
80
69
  Analyze entire folders of files using Large Language Models. Upload a folder, ask questions, and get AI-powered insights.
81
70
 
82
- ## 🔧 Advanced Configuration
83
-
84
- ### URL Parameters
85
-
86
- Control the loading behavior with URL parameters:
71
+ ## 📦 Package Structure
87
72
 
88
73
  ```
89
- ?loader=@kosmas10/html-app-loader # Use different Stage 2 loader
90
- ?loaderVersion=1.0.0 # Pin Stage 2 version
91
- ?app=@kosmas10/portal # Load different app
92
- ?appVersion=0.0.1 # Pin app version
93
- ?appFile=portal.html # Load specific file
74
+ @kosmas10/portal/
75
+ ├── dist/
76
+ │ └── portal.html # Bundled React application
77
+ ├── portal-bootstrap.html # Bootstrap loader (Stage 1)
78
+ ├── README.md # This file
79
+ └── LICENSE # MIT License
94
80
  ```
95
81
 
96
- ### Example: Pin All Versions
97
- ```
98
- portal-bootstrap.html?loaderVersion=1.0.0&appVersion=0.0.1
99
- ```
82
+ ## 🛠️ Development
100
83
 
101
- ## 📦 Package Structure
84
+ ### Prerequisites
85
+ - Node.js 18+
86
+ - npm
102
87
 
88
+ ### Setup
89
+ ```bash
90
+ cd portal
91
+ npm install
103
92
  ```
104
- @kosmas10/portal/
105
- ├── portal.html # Main application (Stage 3)
106
- ├── portal-bootstrap.html # Bootstrap loader (Stage 1)
107
- ├── README.md # This file
108
- └── LICENSE # MIT License
93
+
94
+ ### Development Server
95
+ ```bash
96
+ npm run dev
109
97
  ```
110
98
 
99
+ ### Build
100
+ ```bash
101
+ npm run build
102
+ ```
103
+
104
+ This produces `dist/portal.html` - a single self-contained HTML file.
105
+
111
106
  ## 🌐 Browser Compatibility
112
107
 
113
108
  - ✅ Chrome/Chromium 90+
@@ -132,17 +127,20 @@ portal-bootstrap.html?loaderVersion=1.0.0&appVersion=0.0.1
132
127
 
133
128
  ## 📝 Version History
134
129
 
135
- ### 0.0.4 (Current)
130
+ ### 0.0.5 (Current)
131
+ - **Migrated to bundled React architecture**: Complete rewrite using React + TypeScript + Tailwind
132
+ - **Simplified 2-stage loading**: Bootstrap loads bundled app directly
133
+ - **Zero external dependencies**: All code bundled in single HTML file
134
+ - **Improved reliability**: No CDN script loading issues
135
+
136
+ ### 0.0.4
136
137
  - Removed all non-error console output to prevent console popups during normal operation
137
138
  - Cleaner console output - only shows errors when something goes wrong
138
139
  - Bootstrap file updated with cleaner code structure and version resolution
139
140
 
140
141
  ### 0.0.3
141
- - **Improved @latest handling**: Resolves `@latest` to specific version numbers by fetching package.json first
142
- - Avoids CDN cache issues by using specific version numbers instead of `@latest` tag
143
- - Fetches version from `package.json` with cache buster to ensure fresh data
144
- - Version caching to avoid multiple fetches for the same package
145
- - Falls back to `@latest` if version fetch fails for backward compatibility
142
+ - Improved @latest handling: Resolves `@latest` to specific version numbers
143
+ - Version caching to avoid multiple fetches
146
144
 
147
145
  ### 0.0.2
148
146
  - Bug fixes and improvements
@@ -150,7 +148,6 @@ portal-bootstrap.html?loaderVersion=1.0.0&appVersion=0.0.1
150
148
  ### 0.0.1
151
149
  - Initial release
152
150
  - Launcher interface for AI Chat Extensions apps
153
- - 3-stage loading architecture
154
151
 
155
152
  ## 🤝 Contributing
156
153
 
@@ -169,7 +166,6 @@ For issues, questions, or feature requests:
169
166
 
170
167
  ## 🔗 Related Packages
171
168
 
172
- - **Stage 2 Loader**: [@kosmas10/html-app-loader](https://www.npmjs.com/package/@kosmas10/html-app-loader)
173
169
  - **Chat & Verify**: [@kosmas10/chat-and-verify](https://www.npmjs.com/package/@kosmas10/chat-and-verify)
174
170
  - **Folder LLM Analyzer**: [@kosmas10/folder-llm-analyzer](https://www.npmjs.com/package/@kosmas10/folder-llm-analyzer)
175
171