open-index/open-npm huggingface dataset:
npm package: @spectrafm/n8n-nodes-spectra
Description: spectra.fm community node for n8n.
Author: Jannik Jung
Latest version: 1.0.8

# n8n-nodes-spectra

This is an n8n community node for spectra.fm. It lets you trigger exports, poll status, list artifacts, and download files in your workflows.

[Installation](#installation)
[Operations](#operations)
[Credentials](#credentials)
[Compatibility](#compatibility)
[Usage](#usage)
[Resources](#resources)

## Installation

Follow the [installation guide](https://docs.n8n.io/integrations/community-nodes/installation/) in the n8n community nodes documentation.

## Operations

- Project
  - List
  - Get
- Export
  - Create
  - Get Status
  - List
  - Options
  - List Artifacts
  - Download

## Credentials

Create an API key at [app.spectra.fm/settings/api-keys](https://app.spectra.fm/settings/api-keys). Use the key in the **spectra.fm API** credentials. This node authenticates via the `X-API-Key` header.

## Compatibility

Tested with n8n 1.x community nodes.

## Usage

A typical export flow is:

1. **Export → Options** (optional) to discover locales/themes
2. **Export → Create** to start a job
3. **Export → Get Status** to poll until `status` is `completed`
4. **Export → List Artifacts** to fetch download URLs
5. **Export → Download** to fetch the file

## Resources

- [spectra.fm API docs](https://api.spectra.fm/docs)
- [spectra.fm API integration guide](https://spectra.fm/docs/integration/api)
- [n8n community nodes documentation](https://docs.n8n.io/integrations/#community-nodes)
npm package: @spectrajs/arktype
Description: ArkType Validator for Spectra
Author: metebykl
Latest version: 0.14.1

# @spectrajs/arktype

[![codecov](https://codecov.io/gh/metebykl/spectra/graph/badge.svg)](https://codecov.io/gh/metebykl/spectra)
[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/metebykl/spectra/ci.yml?branch=main)](https://github.com/metebykl/spectra/actions)
[![License](https://img.shields.io/github/license/metebykl/spectra)](https://github.com/metebykl/spectra/blob/main/LICENSE)
[![npm](https://img.shields.io/npm/v/@spectrajs/arktype.svg)](https://www.npmjs.com/package/@spectrajs/arktype)
[![npm](https://img.shields.io/npm/d18m/@spectrajs/arktype.svg)](https://www.npmjs.com/package/@spectrajs/arktype)
[![Bundle Size](https://img.shields.io/bundlephobia/min/@spectrajs/arktype)](https://bundlephobia.com/result?p=@spectrajs/arktype)

A validator middleware using [ArkType](https://arktype.io) for Spectra.

## Installation

```sh
npm install @spectrajs/arktype
```

## Documentation

The documentation is available [here](../../docs/guides/validation.md#arktype-validator).

## Usage

```ts
import { Spectra } from "@spectrajs/core";
import { type } from "arktype";
import { arktypeValidator } from "@spectrajs/arktype";

const app = new Spectra();

const User = type({
  name: "string",
  age: "number",
});

app.post("/post", arktypeValidator("json", User), async (c) => {
  const { name, age } = c.req.valid<typeof User.infer>("json");
  return c.json({ name, age });
});

export default app;
```

## License

Distributed under the MIT License. See [LICENSE](LICENSE) for more information.
npm package: @spectrajs/core
Description: Fast, lightweight and fully typesafe web framework
Author: metebykl
Latest version: 0.14.1

# @spectrajs/core

[![codecov](https://codecov.io/gh/metebykl/spectra/graph/badge.svg)](https://codecov.io/gh/metebykl/spectra)
[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/metebykl/spectra/ci.yml?branch=main)](https://github.com/metebykl/spectra/actions)
[![License](https://img.shields.io/github/license/metebykl/spectra)](https://github.com/metebykl/spectra/blob/main/LICENSE)
[![npm](https://img.shields.io/npm/v/@spectrajs/core.svg)](https://www.npmjs.com/package/@spectrajs/core)
[![npm](https://img.shields.io/npm/d18m/@spectrajs/core.svg)](https://www.npmjs.com/package/@spectrajs/core)
[![Bundle Size](https://img.shields.io/bundlephobia/min/@spectrajs/core)](https://bundlephobia.com/result?p=@spectrajs/core)

**Spectra** is a fast, lightweight, and fully type-safe web framework designed
to simplify the creation of efficent and reliable web applications.

## Features

- 🚀 Optimized for speed and efficiency.
- ✅ Well-tested and production ready.
- 🔨 Full typesafety.
- 🍃 Lightweight - zero dependencies.
- 🔋 Batteries included - built-in middleware, framework integrations and lots of plugins.
- 🌍 Works on Bun, Node.js, Cloudflare Workers, and more runtimes.

## Installation

```sh
npm install @spectrajs/core
```

## Documentation

The documentation is available [here](../../docs/index.md).

## Example

```ts
import { Spectra } from "@spectrajs/core";
const app = new Spectra();

app.get("/", (c) => c.text("Spectra!"));

export default app;
```

## License

Distributed under the MIT License. See [LICENSE](LICENSE) for more information.
npm package: @spectrajs/node
Description: Node.js Adapter for Spectra
Author: metebykl
Latest version: 0.14.1

# @spectrajs/node

[![codecov](https://codecov.io/gh/metebykl/spectra/graph/badge.svg)](https://codecov.io/gh/metebykl/spectra)
[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/metebykl/spectra/ci.yml?branch=main)](https://github.com/metebykl/spectra/actions)
[![License](https://img.shields.io/github/license/metebykl/spectra)](https://github.com/metebykl/spectra/blob/main/LICENSE)
[![npm](https://img.shields.io/npm/v/@spectrajs/node.svg)](https://www.npmjs.com/package/@spectrajs/node)
[![npm](https://img.shields.io/npm/d18m/@spectrajs/node.svg)](https://www.npmjs.com/package/@spectrajs/node)
[![Bundle Size](https://img.shields.io/bundlephobia/min/@spectrajs/node)](https://bundlephobia.com/result?p=@spectrajs/node)

Adapter for using [Spectra](https://github.com/metebykl/spectra) in Node.js environments.

## Installation

```sh
npm install @spectrajs/node
```

## Documentation

The documentation is available [here](../../docs/getting-started/node.md).

## Example

```ts
import { Spectra } from "@spectrajs/core";
import { serve } from "@spectrajs/node";

const app = new Spectra();
app.get("/", (c) => c.text("Spectra!"));

serve(app);
```

## License

Distributed under the MIT License. See [LICENSE](LICENSE) for more information.
npm package: @spectrajs/trpc
Description: tRPC Adapter for Spectra
Author: metebykl
Latest version: 0.14.1

# @spectrajs/trpc

[![codecov](https://codecov.io/gh/metebykl/spectra/graph/badge.svg)](https://codecov.io/gh/metebykl/spectra)
[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/metebykl/spectra/ci.yml?branch=main)](https://github.com/metebykl/spectra/actions)
[![License](https://img.shields.io/github/license/metebykl/spectra)](https://github.com/metebykl/spectra/blob/main/LICENSE)
[![npm](https://img.shields.io/npm/v/@spectrajs/trpc.svg)](https://www.npmjs.com/package/@spectrajs/trpc)
[![npm](https://img.shields.io/npm/d18m/@spectrajs/trpc.svg)](https://www.npmjs.com/package/@spectrajs/trpc)
[![Bundle Size](https://img.shields.io/bundlephobia/min/@spectrajs/trpc)](https://bundlephobia.com/result?p=@spectrajs/trpc)

A plugin for [Spectra](https://github.com/metebykl/spectra) that provides [tRPC](https://trpc.io) support.

## Installation

```sh
npm install @spectrajs/trpc
```

## Documentation

The documentation is available [here](../../docs/plugins/trpc.md).

## Example

```ts
import { trpc } from "@spectrajs/trpc";
import { initTRPC } from "@trpc/server";
import { Spectra } from "@spectrajs/core";

const t = initTRPC.create();
const p = t.procedure;

const router = t.router({
  greet: p.input(String).query(({ input }) => `Hello ${input}!`),
});

const app = new Spectra();

app.use(
  "/trpc/*",
  trpc({
    router,
  })
);
```

## API

### trpc

#### router

The tRPC Router instance.

#### endpoint

The path to the exposed tRPC endpoint.

@default `/trpc`

```ts
app.use(
  "/api/trpc/*",
  trpc({
    endpoint: "/api/trpc",
    router,
  })
);
```

#### createContext

Create custom tRPC context.

```ts
app.use(
  "/trpc/*",
  trpc({
    router,
    createContext: (c, _opts) => ({
      message: c.req.header("X-Message"),
    }),
  })
);
```

## License

Distributed under the MIT License. See [LICENSE](LICENSE) for more information.
npm package: @spectrajs/zod
Description: Zod Validator for Spectra
Author: metebykl
Latest version: 0.14.1

# @spectrajs/zod

[![codecov](https://codecov.io/gh/metebykl/spectra/graph/badge.svg)](https://codecov.io/gh/metebykl/spectra)
[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/metebykl/spectra/ci.yml?branch=main)](https://github.com/metebykl/spectra/actions)
[![License](https://img.shields.io/github/license/metebykl/spectra)](https://github.com/metebykl/spectra/blob/main/LICENSE)
[![npm](https://img.shields.io/npm/v/@spectrajs/zod.svg)](https://www.npmjs.com/package/@spectrajs/zod)
[![npm](https://img.shields.io/npm/d18m/@spectrajs/zod.svg)](https://www.npmjs.com/package/@spectrajs/zod)
[![Bundle Size](https://img.shields.io/bundlephobia/min/@spectrajs/zod)](https://bundlephobia.com/result?p=@spectrajs/zod)

A validator middleware using [Zod](https://zod.dev) for Spectra.

## Installation

```sh
npm install @spectrajs/zod
```

## Documentation

The documentation is available [here](../../docs/guides/validation.md#zod-validator).

## Usage

```ts
import { Spectra } from "@spectrajs/core";
import { z } from "zod";
import { zodValidator } from "@spectrajs/zod";

const app = new Spectra();

const schema = z.object({
  name: z.string(),
  age: z.number(),
});

app.post("/post", zodValidator("json", schema), async (c) => {
  const { name, age } = c.req.valid<z.infer<typeof schema>>("json");
  return c.json({ name, age });
});

export default app;
```

## License

Distributed under the MIT License. See [LICENSE](LICENSE) for more information.