MoodChroma AI 情绪追踪器
Loading...
MoodChroma更和谐的律动

一次与自己的对话

你的心情,以色彩呈现。

留意当下。寻找一个小小的下一步。

一个轻柔的快照

此刻的感受

样本信号

探索此快照
情绪基调—
能量—
专注度—
压力—

演示数值,并非测得的大脑数据或健康评估。

信号实验室

脑波预览

模拟
Alpha 波
—
Beta 波
—
Theta 波
—
Gamma 波
—

关于设备支持

您的文字最重要

花一点时间签到

没有完美的答案
平静 专注 振奋 压力大 低能量 焦虑
有什么想要记录的吗?可选

您的笔记不会被包含在 AI 摘要中。

保存签到

最近的一些时刻

最近的记录

查看日志

您的下一次记录将显示在这里。

点滴瞬间,汇聚成海

您的心情日记

一份关于您选择关注之事的私密记录。

导出我的数据
已保存的时刻0包括示例条目
最常见的心情—来自您保存的时刻
本周0过去 7 天内的记录
按心情筛选
清除历史记录

添加签到

示例时刻有明确标记且可以删除。仅您自己的记录会被用于可选的 AI 趋势分析。

一次深思熟虑的对话

你的 AI 健康教练

反思,寻找规律,并选择一个小小的下一步。

Claude 5.5 Haiku

从提示词开始

现在什么能帮到你?

回顾我最近的一次签到 总结我的本周 总结今天的签到 比较签到模式 建议一个着陆技巧 个性化建议

私密、按需的 AI

倾诉心声

清除聊天
M
一个平静的开始

询问关于签到、您注意到的模式或自我关怀的小方法。这是反思支持,而非医疗诊断。

您的消息

发送消息时,您的消息和近期聊天记录将发送给 Claude。如果已启用,两周的心情统计数据也可能会被共享;笔记和演示信号除外。

打造你的专属空间

设置与隐私

选择 MoodChroma 记住的内容以及你分享的内容。

你的体验

个人偏好

根据我的签到调整颜色让您保存的心情引导强调色调色板。 显示模拟信号仅为视觉演示;它不读取头戴设备。

仅在您要求时使用 AI

Claude 分享选项

包含签到总数与 AI 分享过去两周内你保存的心情匿名统计数据。 在此账户上记住聊天记录关闭后,对话历史记录将仅保留在本次访问中。
i

MoodChroma 使用 Miniapps AI 连接。请勿在此处粘贴 Anthropic API 密钥;本页面不存储任何密钥。

硬件与信号

关于耳机支持

此浏览器微应用无法保持 Android 前台服务运行,也无法解码 Muse、Emotiv、NeuroSky 或 OpenBCI 数据包。信号预览为模拟信号。真实的 EEG 需要具有设备特定蓝牙驱动程序的原生应用。

阅读连接说明

原生应用参考

Android APK 设置

一个独立 Android Studio 项目的设置指南和 Gradle 模板。此 Web 微应用无法编译 APK。

打开 Android 构建指南

您的记录

管理您的数据

导出可移植副本或删除您保存的签到和对话。

导出数据清除签到清除聊天

保存的记录使用私有 Miniapps 存储。如果存储不可用,本次访问仍可运行,但更改可能无法持久保存。

关于硬件的明确说明

此预览版能做什么——以及不能做什么

MoodChroma 是一款浏览器健康伴侣。它包含真实的模拟 EEG 可视化、私密记录日志、色彩主题以及按需提供的 Claude 反思。它不会访问你的摄像头、麦克风、蓝牙 EEG 数据包,也不会在页面关闭后运行。

  • 你分享的 Android 代码在构建前需要一个真实的项目、清单权限、经过测试的传感器类以及模型文件。
  • Muse、Emotiv、NeuroSky 和 OpenBCI 使用不同的协议;通用的浏览器连接无法安全地对其进行解码。
  • 用于健康或研究目的时,请验证传感器流水线,且绝不能将情绪评估视为诊断结果。
知道了

原生 Android 项目

构建并安装 APK

本页面是一个浏览器微应用,而非 Android 项目。请将此指南作为移交给独立 Android Studio 项目的参考;此处不生成 APK。

构建前的注意事项

提供的代码片段仅作为起点,而非经过验证的完整项目。它们引用了此工作区中不存在的其他 Kotlin 类、资源和模型资产。Android 无法保证 24/7 全天候后台运行或自动启动;现代版本限制了后台服务对摄像头和麦克风的使用。

所需条件

  • Android Studio、JDK 17、Android SDK 34 以及项目的 Gradle wrapper。
  • 一个包含根 Gradle 设置、manifest、源文件、资源以及任何已训练的 .tflite 模型文件的完整原生仓库。
  • 一台真实设备以及针对 EEG 硬件经过测试的设备特定蓝牙驱动程序;网页预览中的信号是模拟的。

构建原生应用

  1. 在 Android Studio 中打开原生项目根目录并同步 Gradle。确认应用模块使用命名空间 com.moodchroma.portable。
  2. 查看下方的 app/build.gradle 模板,并将 minSdk、targetSdk、产品变体 (product flavors)、依赖项和签名与实际源码保持一致。
  3. 在项目根目录下运行 ./gradlew buildPortableApk(如果不存在自定义任务,则运行 ./gradlew assembleFullRelease)。Windows 系统请使用 gradlew.bat。
  4. 在 app/build/outputs/apk/ 下找到生成的 APK,并在分享前确认具体的变体。

在测试设备上安装

启用 USB 调试,连接设备,然后运行 adb install -r path/to/app.apk。对于侧载,请传输 APK 并允许从该文件管理器安装。

分发前审查

  • 示例签名配置指向 Android 调试密钥;请使用私有的发布密钥库,且绝不要提交其密码。
  • 前台服务需要可见的通知和运行时权限。Android OEM 厂商仍可能停止后台工作;请删除关于保证 24/7/自动启动的承诺。
  • 不要将个人 Anthropic API 密钥嵌入到 APK 中;客户端密钥可能会被提取。请使用平台 AI 连接或安全的后端。
  • 提供的原生代码片段包含此网页工作区中没有的 API 和类;在做出健康或准确性声明之前,请先进行验证、测试和衡量。
显示提供的 app/build.gradle

这是您提供的配置,以可复制模板的形式保存。它依赖于匹配的根 Gradle 插件版本、wrapper、源码和资源。

复制 Gradle 模板下载模板
plugins {
    id 'com.android.application'
    id 'org.jetbrains.kotlin.android'
}

android {
    namespace 'com.moodchroma.portable'
    compileSdk 34

    defaultConfig {
        applicationId "com.moodchroma.portable"
        minSdk 24  // Android 7.0 for wider compatibility
        targetSdk 34
        versionCode 1
        versionName "1.0.0"

        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"

        vectorDrawables {
            useSupportLibrary true
        }

        // Enable multidex for large app
        multiDexEnabled true

        // Native libraries - include all ABIs for portability
        ndk {
            abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64'
        }
    }

    signingConfigs {
        release {
            // For portable APK, use debug signing or create your own keystore
            // Replace with your keystore details for production
            storeFile file("debug.keystore")
            storePassword "android"
            keyAlias "androiddebugkey"
            keyPassword "android"
        }
    }

    buildTypes {
        release {
            minifyEnabled true  // Enable code shrinking
            shrinkResources true  // Remove unused resources

            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'

            signingConfig signingConfigs.release

            // Optimize APK size
            ndk {
                debugSymbolLevel 'NONE'
            }
        }

        debug {
            applicationIdSuffix ".debug"
            debuggable true
            minifyEnabled false
        }
    }

    // Build variants for different devices
    flavorDimensions = ["version"]
    productFlavors {
        full {
            dimension "version"
            // Full version with all features
        }

        lite {
            dimension "version"
            // Lightweight version for older devices
            minSdk 21
            versionNameSuffix "-lite"
        }
    }

    compileOptions {
        sourceCompatibility JavaVersion.VERSION_17
        targetCompatibility JavaVersion.VERSION_17
    }

    kotlinOptions {
        jvmTarget = '17'
    }

    buildFeatures {
        compose true
        buildConfig true
    }

    composeOptions {
        kotlinCompilerExtensionVersion '1.5.3'
    }

    packaging {
        resources {
            excludes += '/META-INF/{AL2.0,LGPL2.1}'
            excludes += '/META-INF/DEPENDENCIES'
            excludes += '/META-INF/LICENSE'
            excludes += '/META-INF/LICENSE.txt'
            excludes += '/META-INF/license.txt'
            excludes += '/META-INF/NOTICE'
            excludes += '/META-INF/NOTICE.txt'
            excludes += '/META-INF/notice.txt'
            excludes += '/META-INF/ASL2.0'
            excludes += '/META-INF/*.kotlin_module'
        }
    }

    // Split APKs by ABI for smaller downloads (optional)
    splits {
        abi {
            enable true
            reset()
            include 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64'
            universalApk true  // Generate universal APK too
        }
    }
}

dependencies {
    // Core Android
    implementation 'androidx.core:core-ktx:1.12.0'
    implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.6.2'
    implementation 'androidx.activity:activity-compose:1.8.1'
    implementation 'androidx.work:work-runtime-ktx:2.9.0'

    // Compose
    implementation platform('androidx.compose:compose-bom:2023.10.01')
    implementation 'androidx.compose.ui:ui'
    implementation 'androidx.compose.ui:ui-graphics'
    implementation 'androidx.compose.ui:ui-tooling-preview'
    implementation 'androidx.compose.material3:material3'

    // Coroutines
    implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.3'
    implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.3'

    // CameraX for camera access
    def camerax_version = "1.3.0"
    implementation "androidx.camera:camera-core:$camerax_version"
    implementation "androidx.camera:camera-camera2:$camerax_version"
    implementation "androidx.camera:camera-lifecycle:$camerax_version"
    implementation "androidx.camera:camera-view:$camerax_version"

    // TensorFlow Lite for ML inference
    implementation 'org.tensorflow:tensorflow-lite:2.14.0'
    implementation 'org.tensorflow:tensorflow-lite-gpu:2.14.0'
    implementation 'org.tensorflow:tensorflow-lite-support:0.4.4'

    // ML Kit for face detection
    implementation 'com.google.mlkit:face-detection:16.1.5'

    // Permissions handling
    implementation 'com.google.accompanist:accompanist-permissions:0.32.0'

    // Preferences DataStore
    implementation 'androidx.datastore:datastore-preferences:1.0.0'

    // JSON serialization
    implementation 'org.jetbrains.kotlinx:kotlinx-serialization-json:1.6.0'

    // Encryption
    implementation 'androidx.security:security-crypto:1.1.0-alpha06'

    // Multidex
    implementation 'androidx.multidex:multidex:2.0.1'

    // Testing
    testImplementation 'junit:junit:4.13.2'
    androidTestImplementation 'androidx.test.ext:junit:1.1.5'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
    androidTestImplementation platform('androidx.compose:compose-bom:2023.10.01')
    androidTestImplementation 'androidx.compose.ui:ui-test-junit4'

    // Debug
    debugImplementation 'androidx.compose.ui:ui-tooling'
    debugImplementation 'androidx.compose.ui:ui-test-manifest'
}

// Task to generate universal APK
android.applicationVariants.all { variant ->
    if (variant.name == "fullRelease") {
        variant.outputs.all { output ->
            outputFileName = "MoodChroma-${variant.versionName}-${variant.buildType.name}.apk"
        }
    }
}

// Build instructions task
tasks.register('buildPortableApk') {
    group = 'build'
    description = 'Build portable APK for sideloading'

    dependsOn 'assembleFullRelease'

    doLast {
        println """
        ===============================================
        MoodChroma Portable APK Built Successfully!
        ===============================================

        APK Location:
        app/build/outputs/apk/full/release/

        Installation Instructions:
        1. Enable "Install from Unknown Sources" on your Android device
        2. Transfer the APK to your device
        3. Tap the APK file to install
        4. Grant requested permissions
        5. The app will auto-start on device boot

        Features:
        ✓ Self-launching on boot
        ✓ Runs in background
        ✓ Persistent foreground service
        ✓ Auto-restarts if killed
        ✓ Works without Google Play Services

        ===============================================
        """
    }
}
知道了

此操作无法撤销

清除已保存的签到记录?

这将删除所有日志条目,包括示例记录。在您添加新的记录之前,您的日志将保持为空。

保留它们清除历史记录