Skip to content

Core Package

The @promptable/core package contains shared utilities, types, and core functionality used by other packages in the Promptable App monorepo.

Overview

This package serves as the foundation for the Promptable App, providing:

  • Common type definitions
  • Shared utility functions
  • Core business logic

Usage

The core package is imported by other packages in the monorepo:

typescript
import { someUtility } from '@promptable/core';
// or
import { someType } from '@promptable/core/types';

Structure

core/
├── src/
│   ├── types/     # TypeScript type definitions
│   ├── utils/     # Utility functions
│   └── index.ts   # Main entry point
├── package.json
└── tsconfig.json

Development

When making changes to the core package, you need to rebuild it for the changes to be available to other packages:

bash
npm run build -w @promptable/core

API Reference

This section will contain detailed API documentation for the core package.

Further Reading

Core Package Guide

Content for Core Package Guide.