Skip to content

Latest commit

Β 

History

23 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

EerkAI (v3.0)

Encrypted Engine Research Kit

EerkAI is a specialized interface that forces Google's Gemini Nano LLM to run locally on low-spec hardware (verified on 1.9GB VRAM) and in restricted regions. It provides a distraction-free, modern chat interface that runs 100% offline.

Status Privacy VRAM

⚑ Core Capabilities

  • 🧠 Persistent Context: The AI remembers previous turns in the conversation (no more "amnesia").
  • 100% Offline: Runs entirely in the browser via the LanguageModel API.
  • Auto-Healing Core: Automatically detects frozen sessions and reboots the AI brain in milliseconds.
  • Stealth Mode (NUKE): A dedicated Trash button instantly wipes the session, clears the screen, and flushes console logs.
  • Smart Streaming: Smooth text generation that handles data chunks intelligently.

πŸš€ Quick Start

  1. Download the index.html file from this repository.
  2. Configure your browser (See SETUP_GUIDE.md for the bypass instructions).
  3. Drag and drop index.html into Chrome.
  4. Start typing.

πŸ“‚ Documentation

This tool requires specific browser flags to bypass hardware checks. πŸ‘‰ READ THE SETUP GUIDE HERE

πŸ“œ License

Open Source. Dedicated to the pursuit of knowledge.

⚑ Core Capabilities

  • 100% Offline: Runs entirely in the browser with zero server calls.
  • Auto-Healing Engine: Automatically detects frozen sessions and reboots the AI core in milliseconds without refreshing the page.
  • Stealth Mode (NUKE): One-click memory wipe that clears the screen, resets the model, and flushes console logs instantly.
  • Smart Streaming: Handles data chunks intelligently to prevent text flickering/jumping.
  • Markdown Rendering: Automatically formats code blocks with syntax highlighting.

πŸ“¦ Installation

EerkAI is a Zero-Dependency tool. You do not need Node.js, Python, or a local server.

  1. Download the index.html file from this repository.
  2. Drag and drop it into your Chrome Dev browser.
  3. Start typing.

πŸ› οΈ Prerequisites

Important: EerkAI requires a Chromium browser with the Gemini Nano model enabled.

  • Browser: Chrome Dev / Canary (v133+)
  • Flags Required:
    • PromptAPIForGeminiNano
    • OptimizationGuideOnDeviceModel

(If your browser is not set up yet, see SETUP_GUIDE.md in this repo).

πŸ–₯️ Interface Controls

Command Action
RUN Executes the prompt and streams the response.
WIPE Instantly clears chat history and destroys the current session (Stealth Mode).
Enter Submit command.
Shift+Enter New line.

πŸ“œ License

Open Source. Dedicated to the pursuit of knowledge.

Software Requirements Specification: EerkAI (v3.0)

Project Name: Encrypted Engine Research Kit - AI (EerkAI)
Version: 3.0 (Stable)
Status: Operational
License: Open Source (MIT)


1. Introduction

1.1 Purpose

The purpose of EerkAI is to provide a lightweight, zero-dependency interface for interacting with on-device Large Language Models (LLMs), specifically Google's Gemini Nano. It is engineered to overcome artificial hardware constraints (VRAM gating) and regional restrictions, enabling offline AI inference on standard consumer hardware.

1.2 Scope

The software functions as a client-side web application running within the Chromium environment. It bridges the gap between the user and the browser's internal LanguageModel API. Key Capabilities:

  • Offline text generation (Air-gapped).
  • Bypassing GPU VRAM requirements (<3GB).
  • Persistent session management (Context Awareness).
  • Real-time Markdown rendering.

1.3 Definitions & Acronyms

  • LLM: Large Language Model.
  • VRAM: Video Random Access Memory.
  • Air-Gapped: Isolated from unsecured networks (Internet).
  • API: Application Programming Interface.

2. Overall Description

2.1 Product Perspective

EerkAI operates as a standalone HTML5 application. It does not require a backend server (Node.js, Python) or cloud dependencies. It utilizes the experimental AI capabilities embedded in Chrome Dev/Canary builds (v133+).

2.2 User Characteristics

  • Target Audience: Researchers, Students, and Developers.
  • Technical Proficiency: Intermediate (Requires ability to modify browser launch flags).

2.3 Hardware Constraints

  • Minimum Requirement: Integrated GPU with shared memory.
  • Verified Testbed: Intel UHD Graphics / 1.9 GB VRAM.
  • Storage: 2GB free space (for model weights).

3. Specific Requirements (Functional)

3.1 Core Inference Engine

  • FR-01: The system shall initialize a connection to the window.ai.languageModel or LanguageModel class upon launch.
  • FR-02: The system shall auto-detect API availability and visually indicate status (Green/Red).
  • FR-03: The system shall support "Auto-Healing"; if a session hangs, it must terminate and re-initialize the instance automatically.

3.2 User Interface

  • FR-04: The interface shall feature a floating input dock containing the text area and action buttons.
  • FR-05: The "Send" button must dynamically transform into a "Stop" button during active generation.
  • FR-06: The "Theme Toggle" shall switch between Dark Mode and Light Mode and persist the user's choice via LocalStorage.

3.3 Data Privacy & Security

  • FR-07 (Stealth Mode): The "NUKE" function must perform a hard reset: clearing the DOM, destroying the session object, and flushing console logs.
  • FR-08: No data shall be transmitted over the network. All processing must remain local.

4. Installation & Configuration Guide

4.1 Pre-requisites

The software requires a specific environment configuration to function.

Browser: Google Chrome Dev or Canary (v133+)

4.2 Configuration (The Bypass)

To enable the underlying model on restricted hardware, the browser must be launched with specific command-line arguments.

Steps:

  1. Right-click the Chrome Dev shortcut.
  2. Select Properties.
  3. Append the following flags to the Target field:
    --enable-features=PromptAPIForGeminiNano,OptimizationGuideOnDeviceModel:compatible_on_device_performance_classes/*,OptimizationGuideOnDeviceModelOverride
    

4.3 Deployment

  1. Download index.html from the repository release.
  2. Launch the modified Chrome Dev browser.
  3. Drag and drop the file into the browser window.

5. Interface Design

5.1 Chat Interface

The main view consists of a vertically scrolling chat history.

  • User Prompts: Aligned right, styled with accent colors.
  • AI Responses: Aligned left, rendering Markdown (Code blocks, Bold, Italics).

5.2 Code Block Rendering

Output detected as code (wrapped in triple backticks) is rendered in a dedicated container:

  • Header: Displays language type (e.g., Python, JS).
  • Body: Monospace font with syntax coloring.
  • Action: "Copy to Clipboard" button with visual feedback.

6. Appendix

6.1 Technology Stack

  • Frontend: HTML5, CSS3 (CSS Variables), Vanilla JavaScript (ES6+).
  • Backend: N/A (Client-Side only).
  • Model: Gemini Nano (Quantized 1.5B).

6.2 Known Issues

  • Cold Start: Initial prompt may take 5-10 seconds to load into VRAM on low-end devices.
  • Context Window: Limited by the browser's allocation (approx. 4k tokens).

Developed by [Your Name] Dedicated to the pursuit of knowledge.

About

EerkAI is a lightweight, single-file interface designed to interact with Google's local Gemini Nano model, dashboard for offline research.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages