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

@cortex-dev/app-api

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cortex-dev/app-api

API utilities for Cortex applications

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

@cortex-dev/app-api

A TypeScript package for Cortex applications.

Installation

npm install @cortex-dev/app-api

Usage

import { CortexApi, createCortexApi } from "@cortex-dev/app-api";

// Using the class directly
const api = new CortexApi({ apiKey: "your-api-key" });
api.initialize();

// Using the factory function
const api2 = createCortexApi({ apiKey: "your-api-key" });
api2.initialize();

// Async usage
const data = await api.getData();
console.log(data);

Development

# Install dependencies
npm install

# Build the package
npm run build

# Watch for changes during development
npm run build:watch

# Lint the code
npm run lint

# Type check
npm run type-check

Publishing

# Build and publish to npm
npm publish

The prepublishOnly script will automatically clean and build before publishing.

Keywords

cortex

FAQs

Package last updated on 15 Aug 2025

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