Core CLI Tool

@via-dev/via

Reuse real project patterns instead of rewriting boilerplate. Via learns from your existing code and recreates modules without repeated AI calls.

$ npm install -g @via-dev/viaView on GitHub

Quick Start

# Initialize in any directory

$ via learn

# List what has been learned

$ via list

# Create a new instance (e.g., Auth from User)

$ via UserModule create Auth

Why Via exists

Reusing existing code patterns should not require repeated AI calls. Via solves the unpredictability of AI scaffolds by making your own code the source of truth.

The old way

Prompts, unpredictable output, and per-generation token costs.

The Via way

Deterministic generation using your own verified project structures.

Key Features

Pattern Learning

Extract any folder or component as a reusable module.

Smart Renaming

Intelligent casing preservation (Pascal, camel, kebab).

Optional AI

AI is used for discovery only, never for generation.

Zero Dependency

Once learned, Via works offline with no token costs.

Command Reference

via learn [path]Point Via to a folder to learn a new pattern.
via listSee everything Via has learned so far.
via <module> create <name>Create a new instance of a module.
via uiLaunch the browser-based dashboard.
via configConfigure your preferred AI provider.

Smart Renaming in Action

Via understands the context of your variables and files. When you create a new module, it maps cases automatically:

Pattern CaseOriginal (User)New (Auth)
PascalCaseUserComponentAuthComponent
camelCaseuserServiceauthService
kebab-caseuser-model.tsauth-model.ts
SCREAMING_SNAKEUSER_IDAUTH_ID