Skip to content
Projects

About

Frontend service for hikka.io built with TanStack Start

Web & App Development

How these counts are measured

Measured star growth

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README.md

Original
Logo

Ukrainian online anime encyclopedia. The entire list of anime, detailed content information, flexible and clean interface. Complete your own watch list, customize your profile and share with friends.

View Project · Report Bug · Request Feature · Backend

About The Project

Built With

Monorepo Structure

apps/web/             → TanStack Start frontend (@hikka/web)
packages/api/         → Generated API client + TanStack Query options (@hikka/api)
packages/core/        → Runtime-agnostic logic shared by web and mobile (@hikka/core)

Package manager: pnpm 12.14.0
Build orchestration: Turborepo
Library builds: tsdown

Getting Started

Prerequisites

  • Node.js >= 22.12.0
  • Corepack >= 0.36 (ships with Node.js; older versions cannot run pnpm 12, update with npm i -g corepack@latest)

Installation

  1. Clone the repo
  git clone https://github.com/hikka-io/hikka-next.git
  1. Enable Corepack and activate pnpm
  corepack enable pnpm
  1. Install dependencies
  pnpm install
  1. Start the development server
  pnpm dev

This runs the @hikka/api build and its watcher together, then starts the web dev server once the build finishes. The web app will be available at http://localhost:3000.

Local backend

To run against a local backend without Cloudflare Turnstile, add to apps/web/.env.development.local:

VITE_API_URL=http://localhost:8888
API_URL=http://localhost:8888
VITE_CAPTCHA_BYPASS=fake_captcha

VITE_CAPTCHA_BYPASS must match captcha.test in the backend's settings.toml.

Scripts

# Development
pnpm dev              # Start all packages in dev mode
pnpm dev:web          # Start TanStack Start dev server
pnpm dev:api          # Watch-build @hikka/api

# Building
pnpm build            # Build everything
pnpm build:web        # Build web app
pnpm start:web        # Run production build

# API client
pnpm api:generate     # Regenerate @hikka/api from the live OpenAPI spec
HIKKA_OPENAPI_URL=<url> pnpm --filter @hikka/api api:generate   # From another spec URL

# Code Quality
pnpm typecheck        # Type-check all packages
pnpm check            # Biome lint, format and import sorting, writing fixes
pnpm check:ci         # Same checks without writing
pnpm lint             # Biome lint across the repo
pnpm lint:fix         # Biome lint with auto-fix
pnpm format           # Biome format all files
pnpm format:check     # Check formatting without writing
pnpm lint:ratchet     # Layering rules: lock diagnostic counts to the baseline
pnpm check:structure  # Folder structure rules

# Tests
pnpm test                       # All packages
pnpm --filter @hikka/web test   # Web app (Vitest)
pnpm --filter @hikka/api test   # API client (Vitest)
pnpm --filter @hikka/core test  # Shared logic (Vitest)

Lint, format and check scripts run from the root only; the packages have no lint or format scripts of their own.

Continuous integration

.github/workflows/ci.yml runs on pushes to main and on pull requests:

  • Lint: biome ci at error level, the layering ratchet and the structure check.
  • Typecheck, test and build: Node 22, pnpm install --frozen-lockfile, pnpm turbo run typecheck test and pnpm build:web.

To reproduce it locally:

pnpm check:ci && pnpm lint:ratchet && pnpm check:structure && pnpm typecheck && pnpm turbo run test && pnpm build:web

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Hikka is distributed under AGPL-3.0-only. See LICENSE for more information.

Explore related projects

Loading…