-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
292 lines (236 loc) · 5.44 KB
/
index.html
File metadata and controls
292 lines (236 loc) · 5.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>switchto.claude — Fix Claude in 60 seconds</title>
<meta name="description" content="Claude doesn’t know you. Fix that in 60 seconds. Migrate your ChatGPT memory instantly.">
<link href="https://fonts.googleapis.com/css2?family=Fraunces:wght@600;700&family=DM+Mono:wght@300;400;500&display=swap" rel="stylesheet">
<style>
body{
font-family:'DM Mono',monospace;
background:#faf9f6;
color:#1a1a18;
margin:0;
}
.container{
max-width:760px;
margin:0 auto;
padding:48px 20px;
}
h1{
font-family:'Fraunces',serif;
font-size:52px;
line-height:1.05;
letter-spacing:-1px;
}
em{color:#d4521a}
.sub{
margin-top:14px;
color:#6f6a5f;
font-size:14px;
}
.upload{
margin-top:40px;
border:2px dashed #e5dfd6;
padding:48px;
border-radius:12px;
text-align:center;
cursor:pointer;
transition:0.2s;
background:#fff;
}
.upload:hover{
border-color:#d4521a;
background:#fdf2ed;
}
button{
margin-top:12px;
padding:12px 18px;
border:none;
border-radius:8px;
background:#d4521a;
color:#fff;
cursor:pointer;
font-family:inherit;
}
.secondary{
background:#fff;
color:#1a1a18;
border:1px solid #ddd;
}
.section{
margin-top:40px;
}
.card{
background:#fff;
border:1px solid #eee;
border-radius:10px;
padding:20px;
margin-bottom:14px;
}
pre{
white-space:pre-wrap;
font-size:12px;
line-height:1.6;
}
.small{
font-size:11px;
color:#9b9488;
margin-top:10px;
}
input{
padding:10px;
border:1px solid #ddd;
border-radius:6px;
width:220px;
}
.actions{
display:flex;
gap:10px;
flex-wrap:wrap;
margin-top:12px;
}
.badge{
display:inline-block;
font-size:10px;
padding:4px 10px;
border-radius:20px;
background:#eef6f1;
color:#2d6a4f;
margin-top:10px;
}
.share{
margin-top:20px;
display:flex;
gap:10px;
}
</style>
</head>
<body>
<div class="container">
<h1>Claude doesn’t know you.<br><em>Fix that in 60 seconds.</em></h1>
<p class="sub">
Switching from ChatGPT? Don’t start from zero.<br>
Upload your export → rebuild your memory → paste into Claude
</p>
<div class="badge">Runs locally · Your data never leaves your browser</div>
<div class="upload" onclick="fileInput.click()">
📦 Drop conversations.json<br><br>
or click to upload
</div>
<input type="file" id="fileInput" style="display:none">
<div id="output" class="section"></div>
<div id="waitlist" class="section" style="display:none">
<h3>Next: migrate to other AIs</h3>
<input id="email" placeholder="Enter email">
<button onclick="join()">Join</button>
</div>
</div>
<script>
let dataStore = {
topics: [],
prefs: [],
memory: []
};
document.getElementById('fileInput').addEventListener('change', async e=>{
const file = e.target.files[0];
const text = await file.text();
const data = JSON.parse(text);
process(data);
});
function process(data){
let texts = [];
data.forEach(c=>{
if(c.mapping){
Object.values(c.mapping).forEach(n=>{
if(n.message && n.message.content?.parts){
const t = n.message.content.parts.join(' ');
if(t.length > 20) texts.push(t);
}
});
}
});
dataStore.topics = extractTopics(data);
dataStore.prefs = extractPrefs(texts);
dataStore.memory = extractMemory(texts);
render();
}
function extractTopics(data){
const map = {};
data.forEach(c=>{
const t = (c.title || '').toLowerCase();
t.split(' ').forEach(w=>{
if(w.length > 4) map[w] = (map[w] || 0) + 1;
});
});
return Object.entries(map)
.sort((a,b)=>b[1]-a[1])
.slice(0,6)
.map(x=>x[0]);
}
function extractPrefs(texts){
return texts.slice(0,10).map(t=>{
if(t.toLowerCase().includes('prefer')) return 'prefers direct answers';
if(t.toLowerCase().includes('build')) return 'builder mindset';
return 'practical solutions';
});
}
function extractMemory(texts){
return texts.slice(0,8);
}
function identity(){
return `AI PROFILE
- Focus: ${dataStore.topics.join(', ')}
- Style: direct, no fluff
- Traits: ${dataStore.prefs.join(', ')}
- Type: builder`;
}
function prompt(){
return `Remember this about me:
Focus: ${dataStore.topics.join(', ')}
Style: direct, practical, no fluff
Confirm what you stored. Ask if anything missing.`;
}
function render(){
const out = document.getElementById('output');
out.innerHTML = `
<div class="card">
<h3>🧬 Your AI Identity</h3>
<pre>${identity()}</pre>
</div>
<div class="card">
<h3>Claude Prompt</h3>
<pre>${prompt()}</pre>
<div class="actions">
<button onclick="copy()">Copy Prompt</button>
<button class="secondary" onclick="openClaude()">Open Claude</button>
</div>
<div class="share">
<button class="secondary" onclick="share()">Share</button>
</div>
</div>
`;
document.getElementById('waitlist').style.display = 'block';
}
function copy(){
navigator.clipboard.writeText(prompt());
alert('Copied');
}
function openClaude(){
navigator.clipboard.writeText(prompt());
window.open('https://claude.ai','_blank');
}
function share(){
const url = encodeURIComponent(location.href);
const text = encodeURIComponent("Migrated my ChatGPT brain to Claude in 60 seconds.");
window.open(`https://twitter.com/intent/tweet?text=${text}&url=${url}`);
}
function join(){
const email = document.getElementById('email').value;
console.log(email);
alert('You are in');
}
</script>
</body>
</html>