npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

declapract-typescript-ehmpathy

v0.47.64

Published

declapract best practices declarations for typescript

Readme

declapract-typescript-ehmpathy

Declared best practices for TypeScript projects.

Sync your projects with the latest and greatest best practices with codemods powered by declapract.

What is this?

This package contains battle-tested TypeScript best practices from the ehmpathy org, packaged for automated enforcement via codemods through declapract.

Instead of adhoc configuration of linters, formatters, test frameworks, cicd pipelines, and infrastructure for every project, this package provides:

  • 40+ declared practices covering TypeScript development, testing, CI/CD, AWS infrastructure, and more
  • Automated checking to verify your repo follows best practices - and avoids bad practices
  • Automatic fixes for most common issues
  • Project templates to bootstrap new projects with everything configured

How to use it?

1. Install declapract

npm install --save-dev declapract

2. Configure your project

Create declapract.use.yml in your repo:

declarations: npm:declapract-typescript-ehmpathy
useCase: typescript-project # Choose from: typescript-project, npm-package, lambda-service, lambda-service-with-rds, lambda-service-with-dynamodb, app-react-native-expo
variables:
  organizationName: 'my-org'
  projectName: 'my-project'
  infrastructureNamespaceId: 'prod-abc123'
  slackReleaseWebHook: 'https://hooks.slack.com/...'

3. Plan changes

# plan all practices
declapract plan

# or scope to one
declapract plan --practice

4. Apply changes

# apply all practices
declapract apply

# or scope to one
declapract apply --practice

Benefits

Consistency

All projects follow the same patterns, making it easy to switch between codebases

Quality

Enforced best practices catch issues before code review

Speed

Bootstrap new projects in minutes instead of hours

Maintenance

Update best practices across all repos by updating one dependency

Documentation

Practices are explicitly declared and versioned, serving as living documentation

What use cases are supported?

This package defines complete sets of practices for common project types:

typescript-project

Base configuration for any TypeScript project (18 core practices)

npm-package

TypeScript packages published to npm (adds CI/CD for publishing)

lambda-service

AWS Lambda microservices (adds AWS infrastructure, handlers, config, logging)

lambda-service-with-rds

Lambda services with PostgreSQL database (adds RDS provisioning and DAOs)

lambda-service-with-dynamodb

Lambda services with DynamoDB (adds DynamoDB DAOs)

app-react-native-expo

React Native mobile apps with Expo

What practices are included?

Core TypeScript Development

  • typescript - Strict TypeScript configuration
  • lint - ESLint with TypeScript rules (airbnb-typescript)
  • format - Prettier configuration
  • domain - Domain-driven design with domain-objects
  • directory-structure-src - Consistent project structures
  • runtime-type-checking - Type-safe validation with domain-objects
  • errors - Structured error handling with helpful-errors
  • etc

Tests & Quality

  • tests - Jest configuration for unit, integration, and acceptance tests
  • conventional-commits - Enforced commit message standards
  • husky - Git hooks for pre-commit validation
  • etc

CI/CD

  • cicd-common - GitHub Actions workflows for testing
  • cicd-package - Publishing workflows for npm packages
  • cicd-service - Deployment workflows for services

AWS Lambda Services

  • lambda-handlers - Standard Lambda function structure
  • lambda-clients - Type-safe Lambda client wrappers
  • config - Environment configuration with AWS Parameter Store
  • logs - Structured logging with simple-log-methods
  • uuid - UUID generation standards
  • etc

Infrastructure

  • terraform-common - Common Terraform patterns
  • terraform-aws - AWS-specific Terraform modules
  • declastruct-github - GitHub repository configuration
  • environments-aws - Multi-environment setup (dev/test/prod)
  • etc

Persistence

  • persist-with-rds - PostgreSQL with sql-dao-generator
  • persist-with-dynamodb - DynamoDB DAO patterns

React Native

  • app-react-native-expo - Expo app configuration
  • lint-react - React-specific linting
  • lint-react-native - React Native linting

Learn more