open-index/open-npm huggingface dataset:
npm package: @southwellmedia/aether-cli
Description: CLI tool for Aether Sites SDK
Latest version: 1.0.0

# @aether-official/cli

CLI tool for Aether Sites SDK - Generate TypeScript types from your CMS schema.

## Installation

```bash
npm install -D @aether-official/cli
```

## Commands

### `init`

Interactive setup wizard to configure Aether SDK in your project.

```bash
npx aether-sdk init
```

This will:
- Prompt for your Site ID, Organization ID, and API token
- Test the connection to your CMS
- Create a `.env` file with your configuration
- Fetch your site schema
- Generate TypeScript types

### `sync`

Fetch the latest schema from your CMS.

```bash
npx aether-sdk sync
```

This downloads all section templates and their field definitions to `.aether/schema.json`.

### `types`

Generate TypeScript types from your schema.

```bash
npx aether-sdk types
```

This creates `src/aether-types.d.ts` with:
- Section ID constants
- TypeScript interfaces for each section
- Type-safe helper types

## Workflow

1. **Initial Setup**:
   ```bash
   npx aether-sdk init
   ```

2. **After Adding Sections in CMS**:
   ```bash
   npx aether-sdk sync
   npx aether-sdk types
   ```

3. **Use in Code**:
   ```typescript
   import { SECTIONS, type HeroSectionData } from './aether-types';
   import { getAetherSection } from '@aether-official/sites-sdk/astro';

   const hero = await getAetherSection(SECTIONS.HERO);
   // TypeScript knows all available fields!
   ```

## Configuration

The CLI reads from your `.env` file:

```env
AETHER_SITE_ID=your-site-id
AETHER_ORGANIZATION_ID=your-org-id
AETHER_API_TOKEN=your-api-token
AETHER_API_URL=http://localhost:3000
```

## Generated Types Example

```typescript
// src/aether-types.d.ts (auto-generated)

export const SECTIONS = {
  HERO: 'abc123' as const,
  FEATURES: 'def456' as const,
} as const;

export interface HeroSectionData {
  /** text field */
  title: string;
  /** textarea field */
  subtitle?: string;
  /** image field */
  backgroundImage: ImageField;
}

export type SectionId = typeof SECTIONS[keyof typeof SECTIONS];
export type SectionData<T extends SectionId> =
  T extends typeof SECTIONS.HERO ? HeroSectionData :
  T extends typeof SECTIONS.FEATURES ? FeaturesSectionData :
  never;
```

## License

MIT
npm package: @souvik_99/chromaui
Description: This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
Latest version: 0.1.2

# React + Vite

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available:

- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh