hi-kid
CLAUDE.md1.1k starsChanged 6 months agoMITView on GitHub
HiKid - Your AI English Pal. An Electron desktop app built with React and TypeScript, targeting children in non-English-speaking countries who want to practice English speaking and listening. The project follows the standard electron-vite three-process architecture: Path alias: @renderer maps to src/renderer/src/, configured in electron.vite.config.ts and tsconfig.web.json. Build output: Compiled artifacts go to out/ (main, preload, and renderer bundles). The preload script exposes APIs via contextBridge.exposeInMainWorld. When adding new IPC channels:
- Installs packages
We split this CLAUDE.md into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 63
Add types to src/preload/index.d.ts
≈ “Common” is an estimate: at least 1 in 5 of the 25,680 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Project Overview
HiKid - Your AI English Pal. An Electron desktop app built with React and TypeScript, targeting children in non-English-speaking countries who want to practice English speaking and listening.
Tech Stack
- Framework: Electron with electron-vite
- Frontend: React 19 + TypeScript 5.9 + Vite 7
- Package Manager: npm
- Linting: ESLint 9 (flat config) with React, Hooks, and Refresh plugins
- Formatting: Prettier (
singleQuote: true,semi: false,printWidth: 100,trailingComma: none)
Common Commands
# Install dependencies
npm install
# Development with HMR
npm run dev
# Production preview
npm start
# Type checking
npm run typecheck # Check all
npm run typecheck:node # Main + preload only
npm run typecheck:web # Renderer only
# Linting and formatting
npm run lint # ESLint with cache
npm run format # Prettier --write
# Building
npm run build # Type-check + electron-vite build
npm run build:mac # Build + package for macOS
npm run build:win # Build + package for Windows
npm run build:linux # Build + package for Linux
npm run build:unpack # Build as unpacked directoryArchitecture
The project follows the standard electron-vite three-process architecture:
src/main/— Electron main process (Node.js). Entry atindex.ts. HandlesBrowserWindowcreation, app lifecycle, and IPC listeners.src/preload/— Preload scripts usingcontextBridgeto safely expose APIs to the renderer.index.tsexposeselectronAPI(window control) andapi(custom APIs).index.d.tscontains type declarations for the global window interface.src/renderer/src/— React SPA running in the renderer process. Entry atmain.tsx, root component atApp.tsx.
Path alias: @renderer maps to src/renderer/src/, configured in electron.vite.config.ts and tsconfig.web.json.
Build output: Compiled artifacts go to out/ (main, preload, and renderer bundles).
IPC Pattern
The preload script exposes APIs via contextBridge.exposeInMainWorld. When adding new IPC channels:
- Define the channel and API in
src/preload/index.ts - Add types to
src/preload/index.d.ts - Handle the IPC in
src/main/index.ts - Consume it in the renderer via
window.api.*
Notes
- No test framework is configured. There are no unit or e2e tests yet.
- The project is at a very early stage (single init commit). Core AI/English-learning features are not yet implemented.
electron-builder.ymlstill contains template defaults (productName: electron-app-demo1). Update when ready for distribution.- The
devbranch is the active development branch;mainis the default branch for PRs.
Trending
Quiet since April.thin dataabout the whole repository
Who's talking about xiaochong/hi-kid
- ruanyf/weekly“【开源推荐】HiKid 是一个完全免费、永久免费的开源桌面应用,专为非英语国家的小朋友打造——帮助他们练习英语口语和听力。”GitHub · Apr 20, 2026
- guokaigdg/animal-island-ui“UI 基于 animal-island-ui 的桌面 APP”GitHub · Apr 19, 2026
The biggest 2 of 2 mentions linking to the repository that our crawl found. Each line is their own headline.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

