New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@sirou/cli

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sirou/cli

Official CLI for Sirou — scaffold, validate, export, and generate route documentation

latest
Source
npmnpm
Version
1.1.3
Version published
Weekly downloads
106
10500%
Maintainers
1
Weekly downloads
 
Created
Source

@sirou/cli

The official command-line tool for the Sirou ecosystem. Scaffold projects, validate schemas, export route definitions for cross-platform use, and generate interactive documentation portals.

Installation

# Install globally
npm install -g @sirou/cli

# Or use with npx
npx @sirou/cli <command>

Commands

sirou init

Scaffolds a new routes.ts file with a starter configuration in the current directory.

sirou init

Output: Creates routes.ts with a home, profile, and settings route template.

sirou validate

Validates your route schema file for common errors.

sirou validate
sirou validate --file src/routes.ts

Options:

FlagDefaultDescription
-f, --file <path>routes.tsPath to your routes file

Checks performed:

  • Duplicate path definitions
  • Param name mismatches
  • Invalid guard references

sirou export

Exports your route schema to a JSON file. Used by the Flutter bridge and other native integrations.

sirou export
sirou export --output assets/routes.json
sirou export --file src/routes.ts --output dist/routes.json

Options:

FlagDefaultDescription
-f, --file <path>routes.tsPath to your routes file
-o, --output <file>routes.jsonOutput JSON file path

Tip: Run sirou export first, then sirou docs to generate a portal from real data.

sirou docs

Generates a beautiful, standalone HTML documentation portal for your route architecture. Open the output file in any browser — no server required.

sirou docs
sirou docs --output my-route-docs.html

Options:

FlagDefaultDescription
-f, --file <path>routes.tsPath to your routes file
-o, --output <file>sirou-docs.htmlOutput HTML file path

What the portal shows:

  • All route names (flat and nested with dotted keys)
  • Route paths with param highlighting
  • Guard badges
  • Param badges
  • Route metadata (JSON)

Workflow:

# 1. Export your schema
sirou export --output routes.json

# 2. Generate the portal
sirou docs --output docs/routes.html

# 3. Open in browser
open docs/routes.html

License

MIT

Keywords

sirou

FAQs

Package last updated on 03 Apr 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts