New:Microsoft Teams Notifications Are Now Available in Socket.Learn more
Get Started

@ashlr/stack-core

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

@ashlr/stack-core

Ashlr Stack core — provider adapters, .stack.toml config, Phantom integration. Shared logic behind the Stack CLI and MCP server.

latest
Source
npmnpm
Version
0.1.1
Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

@ashlr/stack-core

Shared library behind the Ashlr Stack CLI and MCP server. Provider adapters, .stack.toml config, Phantom integration, source/env detection.

You probably don't want to install this directly. If you want the CLI, install @ashlr/stack. This package exists so the CLI and the ashlr-stack-mcp server can share a single implementation.

Install

bun add @ashlr/stack-core
# or
npm i @ashlr/stack-core

Public API

Selected exports — see src/index.ts for the full surface.

ExportPurpose
addService(opts)End-to-end pipeline: login → provision → materialize → persist secrets + MCP entry
readConfig(cwd) / writeConfig(cfg, cwd)Read/write .stack.toml + .stack.local.toml
listProviderNames() / getProvider(name)Introspect the built-in 23-provider registry
scanSource(opts)Detect providers from package.json, configs, .env.example
detectProvider(envName)Map an env-var name back to a known provider
parseEnv(text)Parse .env-style text into { key, value } pairs

Example

import {
  addService,
  readConfig,
  listProviderNames,
  scanSource,
} from "@ashlr/stack-core";

// Pipeline: provisions a new Supabase project, writes secrets through Phantom,
// merges the MCP entry, and updates .stack.toml + .stack.local.toml.
await addService({ provider: "supabase", cwd: process.cwd() });

const cfg = await readConfig();
console.log(cfg.services.map((s) => s.name));

// Scan an existing checkout for providers already wired up.
const detections = await scanSource({ cwd: process.cwd() });
console.log(listProviderNames().length); // 23

License

MIT. See LICENSE.

Keywords

ashlr

FAQs

Package last updated on 19 Apr 2026

Related posts