Skip to content
Proyectos

Acerca de

Gofi (gəʊfi:) is a web file indexer written by golang

Desarrollo web y de aplicaciones

Cómo se miden estas cifras

Crecimiento de estrellas medido

in 24h
-1
in 7 days
-1
in 15 days
-2
in 1 month
Recopilando historial

Cambios netos en períodos que se solapan, no totales diarios. Los datos no disponibles se dejan en blanco. Las estrellas indican interés, no calidad.

README.md

Original

Gofi (Refactoring) · GitHub license

Refactoring in Progress

English | 简体中文

Gofi is a modern, open-source web file indexer and manager, featuring a fully refactored frontend and backend for enhanced security, usability, and maintainability.

✨ What's New in the Refactored Branch

  • Modern UI/UX: Frontend rebuilt with React, Vite, Tailwind CSS, and shadcn/ui. Unified, responsive, and accessible design.
  • Settings & File List Redesign: Settings page and file list page are fully modernized, with improved forms, toolbars, and interaction details.
  • Toolbar & Filtering: File list toolbar now supports icon-based filtering, floating search, and consistent view switching.
  • Internationalization: Full i18n support for English and Chinese, including error messages and UI.
  • Security & Auth: bcrypt passwords, revocable JWT sessions, centralized path isolation, guest permissions, and correct HTTP error semantics.
  • Configurable & Extensible: All key settings are environment-configurable. Backend and frontend are modular and easy to extend.
  • Performance Optimizations: Reduced redundant operations, improved database queries, and optimized logging.
  • Complete File Management: Resumable chunk uploads, folders, rename, copy, move, and batch deletion.
  • Indexed Search: Incremental SQLite indexing for names, paths, and small text files.

📦 Project Structure

  • gofi-backend/ — Go backend (API, auth, config, i18n)
  • gofi-frontend/ — React frontend (UI, state, routes, i18n)
  • preview/ — Screenshots and logo

🚀 Quick Start

Requirements: Go 1.26.5, Node.js 24.14.1 LTS, pnpm 10.34.5, and GNU Make.

Install and start

make install
make dev

Check and build

make check
make build
make package
make smoke

Visit: http://localhost:3000

Official GitHub Release tags must use vX.Y.Z; the Gofi application, deployment packages, and Docker images use the corresponding version without the leading v (X.Y.Z).

🛠️ Configuration

Backend config via environment variables, e.g.:

export GOFI_JWT_SECRET="a-random-secret-with-at-least-32-characters"
export GOFI_JWT_EXPIRE_HOURS="168"
export GOFI_ALLOWED_ORIGINS="https://files.example.com"
export GOFI_ENABLE_DEBUG="false"

GOFI_JWT_SECRET is optional. Gofi generates .gofi-jwt-secret when it is absent; persist it with the database and storage directory. During first-time setup, choose an administrator account and a password of at least 10 characters. There are no default administrator credentials.

📝 Documentation

🖼️ Preview

preview1 preview2 preview3 preview4 preview5 preview6

📝 License

MIT

Explorar proyectos relacionados

Cargando…