Skip to content

Open source Grok Bot alternative, Bring your own agent and subscription: message Claude Code, Codex, Gemini CLI, Cursor, Copilot and 40+ AI agents as bots on your own computer, from iPhone, Mac, Windows, Linux or terminal. Agent-agnostic and free. Also a Muse and Dots alternative. Built in Rust.

feat: 7-page onboarding, APNs throttle, smooth theme transition, web updates

libokai3d50a9177d5c
diff --git a/Codync-iOS/Views/IOSOnboardingView.swift b/Codync-iOS/Views/IOSOnboardingView.swift
index 4670dadd..29346db0 100644
--- a/Codync-iOS/Views/IOSOnboardingView.swift
+++ b/Codync-iOS/Views/IOSOnboardingView.swift
@@ -11,7 +11,7 @@ struct IOSOnboardingView: View {
@State private var iCloudStatus: ICloudStatus = .checking
@State private var selectedMode: LiveActivityMode = .overall
- private let totalPages = 6
+ private let totalPages = 7
var body: some View {
ZStack {
@@ -23,7 +23,8 @@ struct IOSOnboardingView: View {
iCloudPage.tag(2)
notificationPage.tag(3)
modePage.tag(4)
- proPage.tag(5)
+ primarySessionPage.tag(5)
+ proPage.tag(6)
}
.tabViewStyle(.page(indexDisplayMode: .never))
.animation(.easeInOut(duration: 0.3), value: currentPage)
@@ -77,65 +78,62 @@ struct IOSOnboardingView: View {
content: {
Spacer()
- // Mac mockup with notch
+ // Mac mockup with notch — 1:1 replica of macOS menu bar
VStack(spacing: 0) {
ZStack(alignment: .top) {
RoundedRectangle(cornerRadius: 12, style: .continuous)
.fill(Color(white: 0.12))
VStack(spacing: 0) {
- // macOS menu bar with notch
- HStack(spacing: 0) {
- // Left menu items
- HStack(spacing: 6) {
- Image(systemName: "apple.logo")
- .font(.system(size: 10))
- Text("Finder")
- .font(.system(size: 9, weight: .semibold))
- Text("File")
- .font(.system(size: 9))
- Text("Edit")
- .font(.system(size: 9))
- }
- .foregroundStyle(.white.opacity(0.6))
- .padding(.leading, 10)
-
- Spacer()
-
- // Notch — centered
- RoundedRectangle(cornerRadius: 0, style: .continuous)
- .fill(.black)
- .frame(width: 60, height: 16)
+ // macOS menu bar
+ ZStack(alignment: .top) {
+ // Menu bar background — translucent like real macOS
+ LinearGradient(
+ colors: [
+ Color(red: 0.22, green: 0.38, blue: 0.58),
+ Color(red: 0.28, green: 0.45, blue: 0.65)
+ ],
+ startPoint: .leading,
+ endPoint: .trailing
+ )
+ .frame(height: 24)
+
+ // Notch with Codync icon inside
+ HStack(spacing: 0) {
+ Spacer()
+ HStack(spacing: 0) {
+ Spacer().frame(width: 50)
+ Image("CodyncIcon")
+ .resizable()
+ .aspectRatio(contentMode: .fit)
+ .frame(width: 13, height: 13)
+ .foregroundStyle(.white.opacity(0.9))
+ .padding(.trailing, 8)
+ }
+ .frame(height: 20)
+ .background(.black)
.clipShape(
.rect(
topLeadingRadius: 0,
- bottomLeadingRadius: 8,
- bottomTrailingRadius: 8,
+ bottomLeadingRadius: 10,
+ bottomTrailingRadius: 10,
topTrailingRadius: 0
)
)
- .offset(y: -4)
-
- Spacer()
-
- // Right menu items — Codync icon separated from notch
- HStack(spacing: 5) {
- Image("CodyncIcon")
- .resizable()
- .aspectRatio(contentMode: .fit)
- .frame(width: 11, height: 11)
- Text("2")
- .font(.system(size: 8, weight: .medium))
- Image(systemName: "wifi")
- .font(.system(size: 8))
- Image(systemName: "battery.75")
- .font(.system(size: 8))
+ Spacer()
}
- .foregroundStyle(.white.opacity(0.6))
- .padding(.trailing, 10)
+ .frame(height: 24, alignment: .top)
+ .offset(x: 15)
}
- .frame(height: 22)
- .background(.white.opacity(0.06))
+ .frame(height: 24)
+ .clipShape(
+ .rect(
+ topLeadingRadius: 12,
+ bottomLeadingRadius: 0,
+ bottomTrailingRadius: 0,
+ topTrailingRadius: 12
+ )
+ )
Spacer().frame(height: 8)
@@ -389,7 +387,116 @@ struct IOSOnboardingView: View {
)
}
- // MARK: - Page 6: Pro Upsell
+ // MARK: - Page 6: Primary Session
+
+ private var primarySessionPage: some View {
+ OnboardingPage(
+ theme: theme,
+ content: {
+ Spacer()
+
+ // Faux session list with primary indicator
+ VStack(spacing: 0) {
+ ZStack {
+ RoundedRectangle(cornerRadius: 16, style: .continuous)
+ .fill(theme.cardBackground)
+
+ VStack(spacing: 2) {
+ fauxSessionRow(name: "Codync", model: "Opus", isPrimary: true, isSelected: true)
+ fauxSessionRow(name: "MyApp", model: "Sonnet", isPrimary: false, isSelected: false)
+ fauxSessionRow(name: "Backend", model: "Haiku", isPrimary: false, isSelected: false)
+ }
+ .padding(10)
+ }
+ .frame(height: 150)
+ .overlay(
+ RoundedRectangle(cornerRadius: 16, style: .continuous)
+ .stroke(theme.border, lineWidth: 1)
+ )
+ }
+ .padding(.horizontal, 40)
+
+ Spacer().frame(height: 36)
+
+ Text("Primary Session")
+ .font(.system(size: 32, weight: .bold))
+ .foregroundStyle(theme.primaryText)
+
+ Spacer().frame(height: 12)
+
+ Text("Tap the circle on the right to set\nyour primary session.")
+ .multilineTextAlignment(.center)
+ .font(.system(size: 17))
+ .foregroundStyle(theme.secondaryText)
+ .lineSpacing(4)
+
+ Spacer().frame(height: 16)
+
+ VStack(alignment: .leading, spacing: 10) {
+ HStack(spacing: 8) {
+ Circle()
+ .fill(theme.primaryText)
+ .frame(width: 8, height: 8)
+ Text("Shown first in Dynamic Island and Lock Screen")
+ .font(.system(size: 14))
+ .foregroundStyle(theme.secondaryText)
+ }
+ HStack(spacing: 8) {
+ Circle()
+ .fill(theme.primaryText)
+ .frame(width: 8, height: 8)
+ Text("Highlighted in the session list on Mac and iPhone")
+ .font(.system(size: 14))
+ .foregroundStyle(theme.secondaryText)
+ }
+ }
+ .padding(.horizontal, 32)
+
+ Spacer()
+ },
+ primaryButton: "Continue",
+ primaryAction: { withAnimation { currentPage = 6 } },
+ secondaryButton: "Back",
+ secondaryAction: { withAnimation { currentPage = 4 } }
+ )
+ }
+
+ private func fauxSessionRow(name: String, model: String, isPrimary: Bool, isSelected: Bool) -> some View {
+ HStack(spacing: 8) {
+ Circle()
+ .fill(theme.primaryText.opacity(isPrimary ? 1 : 0.4))
+ .frame(width: 7, height: 7)
+
+ Text(name)
+ .font(.system(size: 14, weight: isPrimary ? .semibold : .regular))
+ .foregroundStyle(theme.primaryText)
+
+ Text(model)
+ .font(.system(size: 10, weight: .medium))
+ .foregroundStyle(theme.secondaryText)
+ .padding(.horizontal, 6)
+ .padding(.vertical, 2)
+ .background(theme.primaryText.opacity(0.08), in: Capsule())
+
+ Spacer()
+
+ // Primary indicator circle
+ Circle()
+ .fill(isSelected ? theme.primaryText : theme.tertiaryText.opacity(0.3))
+ .frame(width: isSelected ? 8 : 6, height: isSelected ? 8 : 6)
+ .frame(width: 24, height: 24)
+ }
+ .padding(.horizontal, 10)
+ .padding(.vertical, 8)
+ .background(
+ isPrimary
+ ? RoundedRectangle(cornerRadius: 8, style: .continuous)
+ .fill(theme.primaryText.opacity(0.06))
+ : nil
+ )
+ }
+
+ // MARK: - Page 7: Pro Upsell
private var proPage: some View {
OnboardingPage(
diff --git a/Codync-iOS/Views/IOSRootView.swift b/Codync-iOS/Views/IOSRootView.swift
index af9f8a5d..e61597c3 100644
--- a/Codync-iOS/Views/IOSRootView.swift
+++ b/Codync-iOS/Views/IOSRootView.swift
@@ -6,7 +6,8 @@ struct IOSRootView: View {
@ObservedObject var liveActivityManager: LiveActivityManager
@ObservedObject var primarySessionManager: PrimarySessionManager
@AppStorage("codync_onboardingComplete") private var onboardingComplete = false
- @AppStorage("codync_darkMode") private var isDarkMode = true
+ @AppStorage("codync_darkMode") private var storedDarkMode = true
+ @State private var isDarkMode = true
@State private var displayedSessions: [SessionState] = []
@State private var reorderTimer: Timer?
@State private var showSplash = true
@@ -29,6 +30,12 @@ struct IOSRootView: View {
}
.environment(\.theme, CodyncTheme(isDark: isDarkMode))
.preferredColorScheme(isDarkMode ? .dark : .light)
+ .onAppear { isDarkMode = storedDarkMode }
+ .onChange(of: storedDarkMode) { _, newValue in
+ withAnimation(.easeInOut(duration: 0.4)) {
+ isDarkMode = newValue
+ }
+ }
.onChange(of: receiver.sessions) { _, sessions in
liveActivityManager.userPrimarySessionId = primarySessionManager.primarySessionId
liveActivityManager.updateSessions(sessions)
diff --git a/Codync-macOS/Services/APNsPushService.swift b/Codync-macOS/Services/APNsPushService.swift
index 6218d9c1..61ac59e1 100644
--- a/Codync-macOS/Services/APNsPushService.swift
+++ b/Codync-macOS/Services/APNsPushService.swift
@@ -16,6 +16,8 @@ final class APNsPushService {
var tokenCount: Int { pushTokens.count }
private var isFetchingTokens = false
private var lastTokenFetch: Date = .distantPast
+ private var lastPushTime: [String: Date] = [:]
+ private let pushInterval: TimeInterval = 1 // minimum seconds between pushes per token
private init() {
logger.info("APNs push service ready (Worker relay)")
@@ -24,10 +26,10 @@ final class APNsPushService {
// MARK: - Public API
func sendUpdate(session: SessionState) async {
- guard let tokenHex = pushTokens[session.sessionId] else {
- logger.debug("SKIP update \(session.sessionId.prefix(8))… — no push token")
- return
- }
+ guard let tokenHex = pushTokens[session.sessionId] else { return }
+ let key = session.sessionId
+ if let last = lastPushTime[key], Date().timeIntervalSince(last) < pushInterval { return }
+ lastPushTime[key] = Date()
let contentState = Self.buildContentState(from: session)
let payload: [String: Any] = [
@@ -35,15 +37,14 @@ final class APNsPushService {
"event": "update",
"contentState": contentState
]
- logger.info("Sending update \(session.sessionId.prefix(8))… status=\(session.status.rawValue)")
await post(payload: payload, label: "update \(session.sessionId)")
}
func sendOverallUpdate(sessions: [SessionState], primarySessionId: String?) async {
- guard let tokenHex = pushTokens["__overall__"] else {
- logger.debug("SKIP overall update — no push token")
- return
- }
+ guard let tokenHex = pushTokens["__overall__"] else { return }
+ let key = "__overall__"
+ if let last = lastPushTime[key], Date().timeIntervalSince(last) < pushInterval { return }
+ lastPushTime[key] = Date()
let summaries: [[String: Any]] = sessions.prefix(4).map { session in
let liveDuration = max(session.durationSec, Int(Date().timeIntervalSince(session.startedAt)))
diff --git a/Codync-web/app/components/device-showcase.tsx b/Codync-web/app/components/device-showcase.tsx
index 9c2cc857..82b294a6 100644
--- a/Codync-web/app/components/device-showcase.tsx
+++ b/Codync-web/app/components/device-showcase.tsx
@@ -1,6 +1,7 @@
"use client";
-import { motion } from "framer-motion";
+import { useRef, useState, useCallback } from "react";
+import { motion, useMotionValue, useSpring, useTransform } from "framer-motion";
export default function DeviceShowcase() {
return (
@@ -12,8 +13,10 @@ export default function DeviceShowcase() {
label="iPhone Live Activity"
delay={0.15}
className="md:col-span-1"
+ tiltIntensity={20}
+ glowId="iphone"
>
- <div className="relative mx-auto w-[180px] aspect-[9/19.5] rounded-[2rem] overflow-hidden border-2 border-neutral-700 bg-neutral-950 shadow-2xl shadow-white/5">
+ <div className="relative mx-auto w-[180px] aspect-[9/19.5] rounded-[2rem] border-2 border-neutral-700 bg-neutral-950 overflow-hidden">
<img
src="/demo-iphone.png"
alt="Codync iPhone"
@@ -23,6 +26,7 @@ export default function DeviceShowcase() {
}}
/>
<Placeholder label="iPhone" />
+ <DeviceGlow />
</div>
</Device>
@@ -31,8 +35,10 @@ export default function DeviceShowcase() {
label="macOS Menu Bar"
delay={0}
className="md:col-span-3"
+ tiltIntensity={12}
+ glowId="mac"
>
- <div className="relative w-full aspect-[16/10] rounded-xl overflow-hidden border border-neutral-800 bg-neutral-950 shadow-2xl shadow-white/5">
+ <div className="relative w-full aspect-[16/10] rounded-xl border border-neutral-800 bg-neutral-950 overflow-hidden">
<img
src="/demo-mac.png"
alt="Codync macOS"
@@ -42,6 +48,7 @@ export default function DeviceShowcase() {
}}
/>
<Placeholder label="macOS" />
+ <DeviceGlow />
</div>
</Device>
@@ -50,8 +57,10 @@ export default function DeviceShowcase() {
label="Apple Watch"
delay={0.3}
className="md:col-span-1"
+ tiltIntensity={25}
+ glowId="watch"
>
- <div className="relative mx-auto w-[150px] aspect-square rounded-[2.5rem] overflow-hidden border-2 border-neutral-700 bg-neutral-950 shadow-2xl shadow-white/5">
+ <div className="relative mx-auto w-[150px] aspect-square rounded-[2.5rem] border-2 border-neutral-700 bg-neutral-950 overflow-hidden">
<img
src="/demo-watch.png"
alt="Codync Watch"
@@ -61,6 +70,7 @@ export default function DeviceShowcase() {
}}
/>
<Placeholder label="Watch" />
+ <DeviceGlow />
</div>
</Device>
</div>
@@ -69,26 +79,122 @@ export default function DeviceShowcase() {
);
}
+/* ── Glow context: lets Device inject glow inside children's overflow-hidden ── */
+import { createContext, useContext } from "react";
+
+type MotionString = ReturnType<typeof useMotionValue<string>>;
+
+const GlowContext = createContext<{
+ glowBg: MotionString;
+ hovering: boolean;
+} | null>(null);
+
+function DeviceGlow() {
+ const ctx = useContext(GlowContext);
+ if (!ctx) return null;
+ return (
+ <motion.div
+ className="pointer-events-none absolute inset-0 z-10"
+ style={{
+ opacity: ctx.hovering ? 1 : 0,
+ background: ctx.glowBg,
+ transition: "opacity 0.3s",
+ }}
+ />
+ );
+}
+
+/* ── 3D tilt device wrapper ── */
function Device({
label,
delay,
className,
children,
+ tiltIntensity = 15,
+ glowId: _,
}: {
label: string;
delay: number;
className?: string;
children: React.ReactNode;
+ tiltIntensity?: number;
+ glowId?: string;
}) {
+ const ref = useRef<HTMLDivElement>(null);
+ const [hovering, setHovering] = useState(false);
+
+ const mouseX = useMotionValue(0);
+ const mouseY = useMotionValue(0);
+
+ const rotateX = useSpring(useTransform(mouseY, [-0.5, 0.5], [tiltIntensity, -tiltIntensity]), {
+ stiffness: 200,
+ damping: 20,
+ });
+ const rotateY = useSpring(useTransform(mouseX, [-0.5, 0.5], [-tiltIntensity, tiltIntensity]), {
+ stiffness: 200,
+ damping: 20,
+ });
+
+ const glowX = useMotionValue(50);
+ const glowY = useMotionValue(50);
+
+ const handleMouse = useCallback(
+ (e: React.MouseEvent) => {
+ const el = ref.current;
+ if (!el) return;
+ const rect = el.getBoundingClientRect();
+ const x = (e.clientX - rect.left) / rect.width - 0.5;
+ const y = (e.clientY - rect.top) / rect.height - 0.5;
+ mouseX.set(x);
+ mouseY.set(y);
+ glowX.set((x + 0.5) * 100);
+ glowY.set((y + 0.5) * 100);
+ },
+ [mouseX, mouseY, glowX, glowY]
+ );
+
+ const handleLeave = useCallback(() => {
+ setHovering(false);
+ mouseX.set(0);
+ mouseY.set(0);
+ glowX.set(50);
+ glowY.set(50);
+ }, [mouseX, mouseY, glowX, glowY]);
+
+ const glowBg = useTransform(
+ [glowX, glowY],
+ ([x, y]) =>
+ `radial-gradient(circle at ${x}% ${y}%, rgba(255,255,255,0.1) 0%, transparent 60%)`
+ );
+
return (
<motion.div
- initial={{ opacity: 0, y: 30 }}
+ initial={{ opacity: 0, y: 40 }}
whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true, margin: "-50px" }}
- transition={{ duration: 0.6, delay }}
+ transition={{ duration: 0.7, delay, ease: [0.21, 0.47, 0.32, 0.98] }}
className={`flex flex-col items-center gap-4 ${className}`}
+ style={{ perspective: 800 }}
>
- {children}
+ <motion.div
+ ref={ref}
+ onMouseMove={(e) => {
+ setHovering(true);
+ handleMouse(e);
+ }}
+ onMouseLeave={handleLeave}
+ style={{
+ rotateX,
+ rotateY,
+ transformStyle: "preserve-3d",
+ }}
+ className="relative"
+ >
+ <GlowContext.Provider value={{ glowBg, hovering }}>
+ {children}
+ </GlowContext.Provider>
+ </motion.div>
+
<p className="text-sm text-neutral-500 font-medium">{label}</p>
</motion.div>
);
diff --git a/Codync-web/app/components/features.tsx b/Codync-web/app/components/features.tsx
index e393c7f7..56c52d4e 100644
--- a/Codync-web/app/components/features.tsx
+++ b/Codync-web/app/components/features.tsx
@@ -1,6 +1,7 @@
"use client";
-import { motion } from "framer-motion";
+import { useRef } from "react";
+import { motion, useMotionValue, useTransform } from "framer-motion";
const features = [
{
@@ -76,6 +77,55 @@ const features = [
},
];
+function FeatureCard({ feature, index }: { feature: (typeof features)[number]; index: number }) {
+ const ref = useRef<HTMLDivElement>(null);
+ const mouseX = useMotionValue(0);
+ const mouseY = useMotionValue(0);
+
+ function handleMouse(e: React.MouseEvent) {
+ const rect = ref.current?.getBoundingClientRect();
+ if (!rect) return;
+ mouseX.set(e.clientX - rect.left);
+ mouseY.set(e.clientY - rect.top);
+ }
+
+ return (
+ <motion.div
+ ref={ref}
+ key={feature.title}
+ initial={{ opacity: 0, y: 20 }}
+ whileInView={{ opacity: 1, y: 0 }}
+ viewport={{ once: true, margin: "-30px" }}
+ transition={{ duration: 0.5, delay: index * 0.08, ease: [0.21, 0.47, 0.32, 0.98] }}
+ onMouseMove={handleMouse}
+ className="group relative p-5 rounded-2xl border border-neutral-800 bg-neutral-900/30 hover:bg-neutral-900/60 hover:border-neutral-700 transition-all duration-300 overflow-hidden"
+ >
+ {/* Spotlight glow on hover */}
+ <motion.div
+ className="pointer-events-none absolute -inset-px rounded-2xl opacity-0 group-hover:opacity-100 transition-opacity duration-300"
+ style={{
+ background: useTransform(
+ [mouseX, mouseY],
+ ([x, y]) =>
+ `radial-gradient(300px circle at ${x}px ${y}px, rgba(255,255,255,0.04), transparent 60%)`
+ ),
+ }}
+ />
+ <div className="relative z-10">
+ <div className="w-9 h-9 rounded-lg bg-neutral-800/80 border border-neutral-700/50 flex items-center justify-center text-neutral-300 mb-3 group-hover:text-white group-hover:border-neutral-600 transition-colors">
+ {feature.icon}
+ </div>
+ <h3 className="font-semibold text-white text-sm mb-1.5">
+ {feature.title}
+ </h3>
+ <p className="text-sm text-neutral-400 leading-relaxed">
+ {feature.description}
+ </p>
+ </div>
+ </motion.div>
+ );
+}
+
export default function Features() {
return (
<section className="px-6 py-20">
@@ -91,24 +141,7 @@ export default function Features() {
<div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4">
{features.map((feature, i) => (
- <motion.div
- key={feature.title}
- initial={{ opacity: 0, y: 20 }}
- whileInView={{ opacity: 1, y: 0 }}
- viewport={{ once: true, margin: "-30px" }}
- transition={{ duration: 0.4, delay: i * 0.08 }}
- className="group p-5 rounded-2xl border border-neutral-800 bg-neutral-900/30 hover:bg-neutral-900/60 hover:border-neutral-700 transition-all duration-300"
- >
- <div className="w-9 h-9 rounded-lg bg-neutral-800/80 border border-neutral-700/50 flex items-center justify-center text-neutral-300 mb-3 group-hover:text-white group-hover:border-neutral-600 transition-colors">
- {feature.icon}
- </div>
- <h3 className="font-semibold text-white text-sm mb-1.5">
- {feature.title}
- </h3>
- <p className="text-sm text-neutral-400 leading-relaxed">
- {feature.description}
- </p>
- </motion.div>
+ <FeatureCard key={feature.title} feature={feature} index={i} />
))}
</div>
</div>
diff --git a/Codync-web/app/components/hero.tsx b/Codync-web/app/components/hero.tsx
index ae37571d..7d947dfb 100644
--- a/Codync-web/app/components/hero.tsx
+++ b/Codync-web/app/components/hero.tsx
@@ -1,6 +1,7 @@
"use client";
import { motion } from "framer-motion";
+import WaitlistForm from "../waitlist-form";
export default function Hero() {
return (
@@ -50,6 +51,15 @@ export default function Hero() {
Open Source
</motion.a>
+ <motion.div
+ initial={{ opacity: 0 }}
+ animate={{ opacity: 1 }}
+ transition={{ delay: 0.38 }}
+ className="mt-6"
+ >
+ <WaitlistForm />
+ </motion.div>
+
<motion.div
initial={{ opacity: 0 }}
animate={{ opacity: 1 }}
diff --git a/Codync-web/app/page.tsx b/Codync-web/app/page.tsx
index d0c1a954..ea2bbd68 100644
--- a/Codync-web/app/page.tsx
+++ b/Codync-web/app/page.tsx
@@ -1,4 +1,3 @@
-import WaitlistForm from "./waitlist-form";
import Hero from "./components/hero";
import DeviceShowcase from "./components/device-showcase";
import Features from "./components/features";
@@ -15,10 +14,8 @@ export default function Home() {
{/* Features */}
<Features />
- {/* Waitlist + CTA */}
+ {/* CTA */}
<section className="flex flex-col items-center gap-8 px-6 py-20">
- <WaitlistForm />
-
<div className="flex flex-col items-center gap-3">
<a
href="https://apps.apple.com/app/id6760984418"