Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ViraStack AI

AI-native architecture kit for modern React — disciplined agent rules in one command.

ViraStack AI npm version npm downloads License: MIT @virastack


Why ViraStack AI?

  • Smart Framework Isolation: Automatically detects your framework (Next.js or TanStack Start) via package.json to inject only the relevant rules and prevent cross-framework hallucinations.
  • Strict Feature Boundaries: Enforces feature-sliced design, blocking cross-feature imports and mandating Zod-first validation at the API edge.
  • Multi-Agent Ready: Ships with unified AGENTS.md and CLAUDE.md entry points, ensuring Cursor, Claude Code, and Windsurf all follow the exact same architecture.
  • Mandatory Patterns: Imposes non-negotiable coding standards like TanStack Query queryOptions factories, Safe Return Patterns, and strict error normalization (ApiError).

Injected Rule Coverage

The initialization command safely injects .mdc files into your .cursor/rules directory, covering:

  • Architecture: Core Principles, Feature Boundaries, React Best Practices
  • Data & State: TanStack Query, Zustand, API & Error Normalization
  • UI & Performance: UI Components, Tailwind, Forms, Core Web Vitals
  • Quality: TypeScript Strictness, Testing

Quick Start

npx @virastack/ai init

The CLI reads your package.json, detects your stack, and writes AGENTS.md, CLAUDE.md, docs/, and .cursor/rules/*.mdc into your project root.

Starting a new project? ViraStack Start scaffolds Next.js or TanStack Start with these rules pre-installed.

Options

Flag Description
--force, -f Overwrite existing rule files without prompting.
--framework Explicitly set the framework (nextjs or tanstack).
--tr Run the CLI with Turkish prompts and success messages.

Explore the ViraStack Ecosystem

Discover all ViraStack tools, libraries, and boilerplates at virastack.com.

License

Licensed under the MIT License.

Maintainer

A project by Ömer Gülçiçek

Follow Ömer Gülçiçek

About

AI-native architecture kit for modern React — disciplined agent rules in one command.

Topics

Resources

Stars

23 stars

Watchers

0 watching

Forks

Contributors

Languages