AWS/CDK · Datadog · TypeScript
Jaypie
Complete-stack approach to multi-environment cloud applications. Aligns infrastructure, execution, and observability.
What Jaypie Provides
Serverless CDK Constructs
JaypieLambda, JaypieDistribution, and more CDK constructs for AWS infrastructure with consistent patterns.
Datadog Instrumentation
Lambda layers, log forwarding, and metrics submission configured automatically via constructs.
Industrial Application Patterns
Handler lifecycle, secrets management, error handling, and logging patterns for production applications.
Complete Mock Coverage
@jaypie/testkit provides mock factories for all packages. Custom matchers: toThrowJaypieError, toMatchUuid, toBeClass.
Packages
1.2 Main
1.2 Library
Complete Stack
CDK
import { JaypieLambda } from "@jaypie/constructs";
new JaypieLambda(this, "Handler", {
entry: "src/handler.ts",
secrets: ["MONGODB_URI"],
});Express
import { expressHandler } from "jaypie";
export default expressHandler(async (req, res) => {
return { message: "Hello, World!" };
});Test
import { matchers, mockLogFactory } from "@jaypie/testkit";
expect.extend(matchers);
vi.mock("jaypie", mockLogFactory);CI/CD
# npm-check.yml
- run: npm run lint
- run: npm run typecheck
- run: npm run test
- run: npm run build