Metadata-Version: 2.1
Name: varitykit
Version: 1.1.9
Summary: Build, deploy, and monetize apps — faster and cheaper than AWS
Author-email: Varity Team <hello@varity.com>
License: MIT
Project-URL: Homepage, https://www.varity.so
Project-URL: Documentation, https://docs.varity.so
Project-URL: Repository, https://github.com/varity-labs/varity-sdk
Project-URL: Bug Tracker, https://github.com/varity-labs/varity-sdk/issues
Keywords: varity,deploy,hosting,cli,saas
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Software Development :: Build Tools
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: click>=8.1.0
Requires-Dist: docker>=6.0.0
Requires-Dist: pyyaml>=6.0
Requires-Dist: requests>=2.31.0
Requires-Dist: rich>=13.0.0
Requires-Dist: toml>=0.10.2
Requires-Dist: jinja2>=3.1.0
Requires-Dist: python-dotenv>=1.0.0
Requires-Dist: aiohttp>=3.9.0
Requires-Dist: authlib>=1.3.0
Requires-Dist: ecdsa>=0.18.0
Requires-Dist: python-jose>=3.3.0
Provides-Extra: dev
Requires-Dist: pytest>=7.4.0; extra == "dev"
Requires-Dist: pytest-cov>=4.1.0; extra == "dev"
Requires-Dist: pytest-mock>=3.12.0; extra == "dev"
Requires-Dist: ruff>=0.1.0; extra == "dev"
Requires-Dist: mypy>=1.7.0; extra == "dev"
Requires-Dist: types-requests>=2.31.0; extra == "dev"
Requires-Dist: types-toml>=0.10.0; extra == "dev"
Requires-Dist: types-PyYAML>=6.0.0; extra == "dev"
Requires-Dist: types-click>=7.1.0; extra == "dev"
Requires-Dist: isort>=5.12.0; extra == "dev"
Requires-Dist: autoflake>=2.2.0; extra == "dev"
Provides-Extra: blockchain
Requires-Dist: web3>=6.0.0; extra == "blockchain"
Requires-Dist: eth-account>=0.10.0; extra == "blockchain"
Requires-Dist: eth-utils>=2.3.0; extra == "blockchain"
Provides-Extra: all
Requires-Dist: web3>=6.0.0; extra == "all"
Requires-Dist: eth-account>=0.10.0; extra == "all"
Requires-Dist: eth-utils>=2.3.0; extra == "all"
Requires-Dist: psutil>=5.9.0; extra == "all"

# varitykit

> Build, deploy, and monetize production apps from your terminal

[![PyPI version](https://img.shields.io/pypi/v/varitykit)](https://pypi.org/project/varitykit/)
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/varity-labs/varity-sdk/blob/main/LICENSE)
[![Python 3.8+](https://img.shields.io/badge/python-3.8+-blue.svg)](https://www.python.org/downloads/)

## Install

```bash
pip install varitykit
```

## Quick Start

```bash
# 1. Check your environment
varitykit doctor

# 2. Create a new app
varitykit init my-app
cd my-app
npm install

# 3. Start developing
npm run dev

# 4. Deploy to production (one command)
varitykit app deploy
# => Live at https://my-app.varity.app
```

**4 commands from zero to production.** No Docker, no config files, no infrastructure setup.

## Commands

### `varitykit doctor`

Check that your environment is ready to build and deploy.

```bash
varitykit doctor
```

Validates: Node.js, Python, Git, npm, disk space, memory, network connectivity.

Options:

| Flag | Description |
|------|-------------|
| `--fix` | Attempt to automatically fix issues |
| `--full` | Run full diagnostics including infrastructure checks |

### `varitykit init [name]`

Create a new app from a production-ready template.

```bash
# Interactive mode
varitykit init

# With a name
varitykit init my-app

# With a specific template
varitykit init my-app --template saas-starter
```

Options:

| Flag | Description |
|------|-------------|
| `-t, --template` | Template to use (default: saas-starter) |
| `-p, --path` | Path where project should be created |
| `-y, --yes` | Skip confirmation prompts |

### `varitykit app deploy`

Deploy your app to production with one command.

```bash
# Deploy current directory
varitykit app deploy

# Deploy and list on the Varity App Store
varitykit app deploy --submit-to-store

# Deploy a specific directory
varitykit app deploy --path ./my-app
```

Automatically detects your framework (Next.js, React), builds the project, and deploys it.

Options:

| Flag | Description |
|------|-------------|
| `--submit-to-store` | Submit to the Varity App Store |
| `--name` | Custom app name for your varity.app URL |
| `--path` | Project directory (default: current directory) |
| `--hosting` | `static` (default) or `dynamic` (coming soon) |
| `--tier` | Infrastructure tier: free, starter, growth, enterprise, scale |

### `varitykit app list`

List all your deployments.

```bash
varitykit app list
```

### `varitykit app status`

Show the status of your most recent deployment.

```bash
varitykit app status
```

### `varitykit app info <deployment-id>`

Show detailed information about a specific deployment.

```bash
varitykit app info deploy-1737492000
```

### `varitykit app rollback <deployment-id>`

Rollback to a previous deployment.

```bash
varitykit app rollback deploy-1737492000
```

### `varitykit login`

Log in with your deploy key from the [developer portal](https://developer.store.varity.so).

```bash
varitykit login
```

### `varitykit completions`

Set up shell tab completion for bash, zsh, and fish.

```bash
# Auto-detect and show instructions
varitykit completions

# Auto-install to shell config
varitykit completions --install
```

## Global Options

| Option | Description |
|--------|-------------|
| `--verbose, -v` | Enable verbose output |
| `--debug` | Enable debug output |
| `--json` | Output in JSON format |
| `--version` | Show version |
| `--help` | Show help |

## Templates

### SaaS Starter

A production-ready SaaS application with:

- Landing page with hero, features, pricing, testimonials, and CTA
- Authentication (email, social login)
- Dashboard with sidebar navigation
- Settings page with 4 tabs (General, Security, Billing, Account)
- Data tables with CSV export
- Toast notifications and command palette (Cmd+K)
- Mobile-responsive layout
- 4 color theme presets

Built with Next.js 15, Tailwind CSS, and TypeScript.

```bash
varitykit init my-saas --template saas-starter
```

## Deploy and Earn

Every app deployed through Varity can be listed on the [Varity App Store](https://store.varity.so) -- a marketplace where users discover and pay for apps.

**Revenue split: 90% to you, 10% to Varity.**

```bash
# Deploy and submit in one command
varitykit app deploy --submit-to-store
```

Set your price. Users pay with credit card. You get paid monthly.

## Supported Frameworks

| Framework | Version | Status |
|-----------|---------|--------|
| Next.js | 13+ | Supported |
| React (Vite) | 18+ | Supported |
| Vue | 3+ | Detected (no template yet) |

## Use Varity from Your AI Editor

Prefer talking to your AI instead of typing commands? The **Varity MCP Server** lets you deploy from Cursor, Claude Code, VS Code, and other AI tools.

```bash
# Claude Code
claude mcp add varity -- npx @varity-labs/mcp

# Then just say: "deploy this to Varity"
```

See [@varity-labs/mcp](https://github.com/varity-labs/varity-sdk/tree/main/packages/cli/varity-mcp) for setup instructions.

## Part of the Varity SDK

varitykit is part of the [Varity SDK](https://github.com/varity-labs/varity-sdk) -- everything you need to build, deploy, and monetize production apps.

| Package | Description |
|---------|-------------|
| [@varity-labs/sdk](https://www.npmjs.com/package/@varity-labs/sdk) | Core SDK -- database, credentials, zero-config development |
| [@varity-labs/ui-kit](https://www.npmjs.com/package/@varity-labs/ui-kit) | React components -- auth, dashboards, data display |
| [@varity-labs/types](https://www.npmjs.com/package/@varity-labs/types) | TypeScript type definitions |
| [create-varity-app](https://www.npmjs.com/package/create-varity-app) | Scaffold a new app in one command |
| [@varity-labs/mcp](https://www.npmjs.com/package/@varity-labs/mcp) | MCP Server -- use Varity from Cursor, Claude Code, and other AI tools |

## Support

- **Documentation**: [docs.varity.so](https://docs.varity.so)
- **GitHub Issues**: [varity-labs/varity-sdk/issues](https://github.com/varity-labs/varity-sdk/issues)
- **Discord**: [discord.gg/7vWsdwa2Bg](https://discord.gg/7vWsdwa2Bg)

## License

MIT -- see [LICENSE](https://github.com/varity-labs/varity-sdk/blob/main/LICENSE) for details.
