open-index/open-npm huggingface dataset:
npm package: @spectnullbyte/seo-content-analyzer
Description: seo content check has never been easier :D
Latest version: 1.2.2

# SEO CONTENT ANALYZER

seo content check has never been easier :D

## Documentation

[Documentation](https://github.com/wahyunurarizky/seo-content-analyzer)

## Usage/Examples

```javascript
//NODEJS
import SEOContentAnalyzer from "@spectnullbyte/seo-content-analyzer";
const result = SEOContentAnalyzer({
  keyword: "your-keyword-here",
  title: "your-title-here",
  descriptionMeta: "your-description-meta-here",
  content: "<h1>your content here</h1><p>cool</p>",
});

//JAVSASCRIPT
import SEOContentAnalyzer from "@spectnullbyte/seo-content-analyzer/dist/client";
const result = SEOContentAnalyzer({
  keyword: "your-keyword-here",
  title: "your-title-here",
  descriptionMeta: "your-description-meta-here",
  content: "<h1>your content here</h1><p>cool</p>",
});

// WITH LANGUAGE
const result = SEOContentAnalyzer(
  {
    keyword: "your-keyword-here",
    title: "your-title-here",
    descriptionMeta: "your-description-meta-here",
    content: "<h1>your content here</h1><p>cool</p>",
  },
  "id"
);
```

## Contributing

Contributions are always welcome!

See `readme.md` for ways to get started.

Please adhere to this project's `code of conduct`.
npm package: @spectotal/direc-plugin-js-architecture-drift
Description: JavaScript and TypeScript architecture drift analyzer plugin for Direc.
Latest version: 0.3.0

# @spectotal/direc-plugin-js-architecture-drift

JavaScript and TypeScript architecture drift analyzer plugin for Direc.

## Overview

This plugin analyzes JavaScript and TypeScript projects to identify architectural drift, specifically:

- **Circular Dependencies**: Detects cycles in the module dependency graph.
- **Role Boundary Violations**: Validates that modules adhere to defined roles and can only depend on allowed module roles.
- **Unassigned Modules**: Identifies source files that do not match any defined architectural role.

## How it Works

The plugin uses the TypeScript Compiler API (`typescript`) to:

1.  **Crawl Files**: Identify all relevant source files based on the analysis scope.
2.  **Extract Dependencies**: Perform a lightweight pre-processing of each file to extract imports and resolve them within the project structure.
3.  **Build Graph**: Construct a directed graph representing the project's internal module dependencies.
4.  **Analyze**: Run cycle detection algorithms and validate each edge against the configured `moduleRoles` and `roleBoundaryRules`.

## Installation

This plugin is part of the Spectotal Direc analysis suite. It is typically configured in `.direc/config.json`.

## Debugging Analysis

If you need to understand how the plugin is parsing a specific file or why a dependency is being resolved in a certain way, you can use the built-in live debug tool.

### Live Debugging

Run the live test script while specifying the `DEBUG_FILE` environment variable:

```bash
cd packages/plugins/js-architecture-drift
DEBUG_FILE=src/index.ts npx tsx --test test/live.test.ts
```

This will produce a detailed report including:

- **TS Pre-process info**: Raw imports extracted from the file.
- **Module Resolution**: Where each import was resolved on disk.
- **Resulting Graph**: The final graph entry for that file.

This tool is invaluable for troubleshooting resolution issues or verifying that your `tsConfigPath` and `packageBoundaries` are correctly configured.
npm package: @spectra-js/react
Description: React integration for Spectra analytics
Author: mvallejo3
Latest version: 1.0.1

# @spectra-js/react

React bindings for [Spectra tracker](https://www.npmjs.com/package/@spectra-js/tracker). This package wraps the browser tracker in a provider, exposes React context for init status, and offers small helpers for imperative access.

## Install

```bash
npm install @spectra-js/react
```

React 18 or 19 is required (`peerDependencies`).

## Quick start

Wrap your app (or a subtree) with `SpectraProvider` and pass your Spectra `accountId`. Optionally set `apiKey`, `debug`, or a custom `endpoint`.

```tsx
import { SpectraProvider } from "@spectra-js/react";

export function App() {
  return (
    <SpectraProvider
      accountId="your-account-id"
      apiKey={import.meta.env.VITE_SPECTRA_API_KEY}
      onReady={(spectra) => spectra.logEvent("spectra_ready")}
      onError={(err) => console.error(err)}
    >
      <YourApp />
    </SpectraProvider>
  );
}
```

`Spectra` is the same component as `SpectraProvider` but without a `children` slot in the type—it is useful when you only need side effects (init + callbacks) and render nothing extra.

## `useSpectra`

Inside any descendant of `SpectraProvider`, read initialization state and the live Spectra instance:

```tsx
import { useSpectra } from "@spectra-js/react";

function Status() {
  const { status, spectra, error } = useSpectra();

  if (status === "loading") return <p>Loading analytics…</p>;
  if (status === "error") return <p>{error?.message}</p>;
  if (status === "ready" && spectra) {
    // use spectra APIs from @spectra-js/tracker
    spectra.logEvent("my_event");
  }
  return null;
}
```

`status` is one of `"idle"` | `"loading"` | `"ready"` | `"error"`. On the server, the provider starts in `"idle"` with `spectra: null` until a browser client hydrates and runs the init effect.

## Imperative helpers

For code outside React trees (or after you know Spectra is ready):

- **`ensureSpectra(options)`** — Returns a promise that resolves to the Spectra instance. Rejects outside a browser (`window` / `document` unavailable). If Spectra was already initialized, the first configuration wins; later calls with different options are ignored and a warning is logged.
- **`getSpectra()`** — Returns the current instance or `null` if not ready.
- **`isSpectraInitialized()`** — Whether init has completed at least once in this JS realm.

Options match the tracker’s config (`EnsureSpectraOptions` / `SpectraInitConfig` from `@spectra-js/tracker`).

## TypeScript

The package exports types such as `SpectraProviderProps`, `SpectraContextValue`, `SpectraStatus`, `SpectraInitConfig`, `SpectraGlobal`, `SpectraEventPayload`, and `EnsureSpectraOptions`.

## License

MIT