Skip to content
项目

关于

Application wiring, configuration, and boilerplate utilities

效率与自动化

这些数字如何统计

实测星标增长

24小时
0
7天
0
15天
0
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

codecov version stars


Digital Alchemy

Install

yarn add @digital-alchemy/core

Introduction

@digital-alchemy/core is a dependency-injection framework for TypeScript — no decorators, no reflection, no class hierarchy. Services are plain functions that receive their dependencies through a single typed parameter. The framework wires everything at boot time, with full type safety across your entire service graph.

Targets the latest ESModule syntax and runs on Bun, Deno, and modern Node.

At a glance

import { CreateApplication, TServiceParams } from "@digital-alchemy/core";

function HelloService({ logger, lifecycle }: TServiceParams) {
  lifecycle.onReady(() => logger.info("hello world"));
}

const app = CreateApplication({
  name: "hello",
  services: { hello: HelloService },
});

await app.bootstrap();

What it does

  • Service wiring - Automatic dependency injection with full type safety
  • Configuration - Load config from files, environment variables, CLI args
  • Logging - Structured logging with customizable outputs
  • Lifecycle hooks - Run code during app startup/shutdown
  • Task scheduling - Cron jobs and timers
  • Testing utilities - Mock and test your services easily

Questions / Issues?

discord

探索相关项目

加载中…