Skip to content

Create @h3ravel/foundation package for core bootstrapping logic #86

@3m1n3nc3

Description

@3m1n3nc3

Description

Create a @h3ravel/foundation package to house the framework bootstrapping and lifecycle logic shared across environments (HTTP, CLI, workers).

This package acts as the glue between @h3ravel/core, providers, events, and application startup.


Responsibilities

  • Application bootstrapping
  • Service provider registration
  • Environment detection
  • Configuration loading
  • Lifecycle hooks (boot, ready, shutdown)

Tasks

  • Create @h3ravel/foundation package
  • Move bootstrapping logic from core where appropriate
  • Define foundation-level abstractions
  • Ensure compatibility with h3ravel() initializer
  • Add tests for lifecycle flow
  • Document responsibilities and boundaries

Acceptance Criteria

  • No HTTP-specific logic
  • Reusable across CLI, HTTP, and workers
  • Clear separation from @h3ravel/core
    *Well-defined startup lifecycle

Difficulty

Advanced

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions