@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 Case | Original (User) | New (Auth) |
|---|---|---|
| PascalCase | UserComponent | AuthComponent |
| camelCase | userService | authService |
| kebab-case | user-model.ts | auth-model.ts |
| SCREAMING_SNAKE | USER_ID | AUTH_ID |