Skip to content

abdyfranco/zai-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Z.AI Desktop App

UNOFFICIAL - This is an unofficial, unaffiliated desktop application wrapper for Z.AI.

Electron desktop wrapper for https://chat.z.ai

Disclaimer

This application is NOT affiliated with, endorsed by, or connected to Z.AI or its developers. This is an independent open-source project created solely for convenience, providing a native desktop app experience for users who prefer to access Z.AI outside of a web browser.

This application:

  • Is a community-built wrapper using Electron
  • Does not modify, store, or transmit any user data
  • Simply provides a convenient desktop interface to the existing Z.AI web service
  • May cease to function if Z.AI changes its service or terms of use

Use at your own discretion. Please refer to the official Z.AI website (https://chat.z.ai) for the official service and terms.

Features

  • Native desktop app experience for Z.AI chat
  • All links are contained within the same window
  • Offline connection handling with retry option
  • Custom CSS and JS injection support for UI customization
  • Security-focused with sandboxed webview

Project Structure

zai-app/
├── src/
│   ├── main.js           # Main Electron process
│   ├── preload.js        # Preload script (IPC bridge)
│   ├── index.html        # Entry point with offline screen
│   ├── injections/
│   │   ├── custom.css    # Custom CSS injection (modify for UI tweaks)
│   │   └── custom.js     # Custom JS injection (modify for behavior tweaks)
│   └── icons/            # App icons
├── build/                # Build assets (icons, entitlements)
├── package.json
└── README.md

Development

Install dependencies:

npm install

Run in development mode:

npm start

Customization

CSS Injection

Edit src/injections/custom.css to inject custom styles into the Z.AI web app.

JavaScript Injection

Edit src/injections/custom.js to inject custom JavaScript for behavior modifications.

Building

macOS

npm run build

Windows

npm run build:win

Linux

npm run build:linux

Security Features

  • Sandboxed webview with context isolation
  • Only allows navigation to chat.z.ai and z.ai domains
  • Blocks external links and popups
  • Network request filtering for unauthorized domains
  • Strict SSL/TLS certificate validation

About

A sleek, cross-platform desktop client for Z.AI.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors