cntx-ui 1.0.2 → 1.0.4
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 +118 -33
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -1,50 +1,135 @@
|
|
|
1
|
-
#
|
|
1
|
+
# cntx-ui
|
|
2
2
|
|
|
3
|
-
File bundling and tagging tool for AI development workflows
|
|
3
|
+
> File bundling and tagging tool for AI development workflows
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Cntx helps developers organize, tag, and bundle their codebase files for AI tools like ChatGPT, Claude, and Cursor. Create structured bundles with semantic tags to provide better context to AI systems.
|
|
6
|
+
|
|
7
|
+
## ✨ Features
|
|
8
|
+
|
|
9
|
+
- 📁 **Direct File System Access** - Work with your files without uploads
|
|
10
|
+
- 🏷️ **Smart Tagging System** - Organize files with semantic tags
|
|
11
|
+
- 📦 **Bundle Creation** - Package files for AI consumption with metadata
|
|
12
|
+
- 🔍 **Bundle Analysis** - Track file changes and staleness over time
|
|
13
|
+
- 🎯 **Master Bundles** - Create snapshots to track project evolution
|
|
14
|
+
- 🎨 **Modern Interface** - Clean, responsive web UI
|
|
15
|
+
- ⚡ **Real-time Updates** - Watch for file changes automatically
|
|
16
|
+
|
|
17
|
+
## 🚀 Quick Start
|
|
6
18
|
|
|
7
19
|
```bash
|
|
8
|
-
npx cntx
|
|
20
|
+
npx cntx-ui
|
|
9
21
|
```
|
|
10
22
|
|
|
11
23
|
That's it! Cntx will start a local server and open in your browser.
|
|
12
|
-
Features
|
|
13
24
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
25
|
+
## 📋 Requirements
|
|
26
|
+
|
|
27
|
+
- **Node.js 16+**
|
|
28
|
+
- **Chromium-based browser** (Chrome, Edge, Opera, Brave)
|
|
29
|
+
- Firefox and Safari don't support File System Access API yet
|
|
30
|
+
|
|
31
|
+
## 🎯 How to Use
|
|
32
|
+
|
|
33
|
+
### 1. Initialize Your Project
|
|
34
|
+
|
|
35
|
+
1. Run `npx cntx-ui`
|
|
36
|
+
2. Click "Select Directory" and choose your project folder
|
|
37
|
+
3. Initialize the project (creates a `.cntx` folder with configuration)
|
|
38
|
+
|
|
39
|
+
### 2. Organize with Tags
|
|
40
|
+
|
|
41
|
+
- Use the **Tags** tab to create semantic tags (e.g., "core", "ui-components", "utilities")
|
|
42
|
+
- Tag files using the paint brush icon in the file tree
|
|
43
|
+
- Tags help categorize files by their role in your project
|
|
20
44
|
|
|
21
|
-
|
|
45
|
+
### 3. Create Bundles
|
|
22
46
|
|
|
23
|
-
|
|
24
|
-
|
|
47
|
+
- Select files in the directory tree (checkbox selection)
|
|
48
|
+
- Click "Bundle" to create a package for AI tools
|
|
49
|
+
- Bundles include file content, metadata, and your tag organization
|
|
25
50
|
|
|
26
|
-
|
|
51
|
+
### 4. Master Bundles
|
|
27
52
|
|
|
28
|
-
|
|
53
|
+
- Create a "Master Bundle" to snapshot your entire project
|
|
54
|
+
- Use this as a reference point to track which files have changed
|
|
55
|
+
- Perfect for providing complete project context to AI tools
|
|
29
56
|
|
|
30
|
-
|
|
31
|
-
Select a directory in your browser
|
|
32
|
-
Initialize the project (creates .cntx folder)
|
|
33
|
-
Start organizing files with tags
|
|
34
|
-
Create bundles for AI tools
|
|
57
|
+
### 5. Bundle Analysis
|
|
35
58
|
|
|
36
|
-
|
|
37
|
-
|
|
59
|
+
- View bundle freshness and file staleness
|
|
60
|
+
- See which files have changed since the last bundle
|
|
61
|
+
- Analyze tag distribution and file types
|
|
62
|
+
|
|
63
|
+
## 🔧 Browser Compatibility
|
|
64
|
+
|
|
65
|
+
Cntx uses the [File System Access API](https://developer.mozilla.org/en-US/docs/Web/API/File_System_API), which requires:
|
|
66
|
+
|
|
67
|
+
- ✅ Chrome 86+
|
|
68
|
+
- ✅ Edge 86+
|
|
69
|
+
- ✅ Opera 72+
|
|
70
|
+
- ✅ Other Chromium-based browsers
|
|
71
|
+
- ❌ Firefox (not yet supported)
|
|
72
|
+
- ❌ Safari (not yet supported)
|
|
73
|
+
|
|
74
|
+
## 📁 Project Structure
|
|
75
|
+
|
|
76
|
+
When you initialize a project, Cntx creates a `.cntx` folder:
|
|
77
|
+
|
|
78
|
+
```
|
|
79
|
+
your-project/
|
|
80
|
+
├── .cntx/
|
|
81
|
+
│ ├── config/
|
|
82
|
+
│ │ ├── tags.ts # Tag definitions
|
|
83
|
+
│ │ └── pattern-ignore.ts # Files to ignore
|
|
84
|
+
│ ├── bundles/ # Regular bundles
|
|
85
|
+
│ │ └── master/ # Master bundles
|
|
86
|
+
│ └── state/
|
|
87
|
+
│ └── file.json # File tracking state
|
|
88
|
+
└── your-code-files...
|
|
89
|
+
```
|
|
38
90
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
91
|
+
## 🤖 AI Integration
|
|
92
|
+
|
|
93
|
+
Cntx bundles are designed for AI tools:
|
|
94
|
+
|
|
95
|
+
- **Structured XML format** with file metadata
|
|
96
|
+
- **Directory tree visualization**
|
|
97
|
+
- **Tag-based organization** for context
|
|
98
|
+
- **Change tracking** to highlight recent modifications
|
|
99
|
+
- **Ignore patterns** to exclude irrelevant files
|
|
100
|
+
|
|
101
|
+
## 💡 Tips
|
|
102
|
+
|
|
103
|
+
- **Tag Strategy**: Use tags like "core", "ui-components", "utilities", "configuration"
|
|
104
|
+
- **Ignore Patterns**: Configure patterns to exclude `node_modules`, build files, etc.
|
|
105
|
+
- **Master Bundles**: Create these periodically to track project evolution
|
|
106
|
+
- **File Selection**: Use Shift+click for range selection in the file tree
|
|
107
|
+
|
|
108
|
+
## 🐛 Troubleshooting
|
|
109
|
+
|
|
110
|
+
**"No files found"**
|
|
111
|
+
|
|
112
|
+
- Check your ignore patterns in the Config tab
|
|
113
|
+
- Ensure you're using a supported browser
|
|
114
|
+
|
|
115
|
+
**"Failed to access directory"**
|
|
116
|
+
|
|
117
|
+
- Grant file system permissions when prompted
|
|
118
|
+
- Try refreshing and re-selecting the directory
|
|
119
|
+
|
|
120
|
+
**Bundle creation fails**
|
|
121
|
+
|
|
122
|
+
- Ensure files are staged (selected with checkboxes)
|
|
123
|
+
- Check browser console for detailed errors
|
|
124
|
+
|
|
125
|
+
## 📄 License
|
|
43
126
|
|
|
44
|
-
Development
|
|
45
|
-
bashgit clone <repository>
|
|
46
|
-
cd cntx
|
|
47
|
-
npm install
|
|
48
|
-
npm run dev
|
|
49
|
-
License
|
|
50
127
|
MIT
|
|
128
|
+
|
|
129
|
+
## 🤝 Contributing
|
|
130
|
+
|
|
131
|
+
See [DEVELOPMENT.md](./DEVELOPMENT.md) for local development setup.
|
|
132
|
+
|
|
133
|
+
---
|
|
134
|
+
|
|
135
|
+
**Made for AI-powered development workflows** 🤖✨
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cntx-ui",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.4",
|
|
5
5
|
"description": "File bundling and tagging tool for AI development",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"ai",
|
|
@@ -12,11 +12,11 @@
|
|
|
12
12
|
],
|
|
13
13
|
"repository": {
|
|
14
14
|
"type": "git",
|
|
15
|
-
"url": "git+https://github.com/nothingdao/cntx.git"
|
|
15
|
+
"url": "git+https://github.com/nothingdao/cntx-ui.git"
|
|
16
16
|
},
|
|
17
|
-
"homepage": "https://github.com/nothingdao/cntx#readme",
|
|
17
|
+
"homepage": "https://github.com/nothingdao/cntx-ui#readme",
|
|
18
18
|
"bugs": {
|
|
19
|
-
"url": "https://github.com/nothingdao/cntx/issues"
|
|
19
|
+
"url": "https://github.com/nothingdao/cntx-ui/issues"
|
|
20
20
|
},
|
|
21
21
|
"author": "whaleen",
|
|
22
22
|
"license": "MIT",
|