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

@synergyerp/backend-standards

v1.9.7

Published

SynergyERP backend standards — ESLint, Prettier, commitlint, Husky, TypeScript configs, modularization enforcement, and PR templates.

Readme

@synergyerp/backend-standards

Shared backend standards for all AO Holdings backend projects. Provides unified configurations for ESLint, Prettier, commitlint, Husky, TypeScript, Vitest, and module isolation enforcement.

Quick Start

pnpm add -D @synergyerp/backend-standards

📖 Starting a new child project? Use the SynergyERP API Base Template and follow its CHILD_PROJECT_SETUP.md for onboarding (branch setup, CI/CD, secrets, deployment, migrations).

What's Included

| Config | File | Description | | -------------- | ---------------------------------- | --------------------------------------------------------------------------------------------------- | | ESLint v9 | eslint.config.js | Flat config with naming, imports, module boundaries, barrel-file enforcement, console/debugger bans | | Prettier | prettier.config.js | Shared formatting with prettier-plugin-organize-imports | | commitlint | commitlint.config.js | Conventional commit enforcement | | TypeScript | tsconfig.base.json | Strict mode base with decorators, path aliases | | Vitest | vitest.config.base.ts | Node environment, coverage thresholds (80/75/80/80) | | VS Code | .vscode/ | settings.json + extensions.json | | Husky | .husky/ | pre-commit, commit-msg, pre-push hooks | | Modularization | scripts/check-modularization.mjs | Module structure + barrel file validator | | PR Template | .github/PULL_REQUEST_TEMPLATE.md | PR checklist with module isolation compliance |

Usage

ESLint

// eslint.config.js
export { default } from '@synergyerp/backend-standards';

TypeScript

// tsconfig.json
{
  "extends": "@synergyerp/backend-standards/tsconfig.base.json",
}

Vitest

// vitest.config.ts
import baseConfig from '@synergyerp/backend-standards/vitest.config.base';
import { defineConfig, mergeConfig } from 'vitest/config';
export default mergeConfig(baseConfig, defineConfig({}));

Scripts

{
  "scripts": {
    "prepare": "cp -r node_modules/@synergyerp/backend-standards/.husky . 2>/dev/null && chmod +x .husky/* 2>/dev/null || true",
    "lint": "eslint --ext .ts --max-warnings 0 .",
    "lint:fix": "eslint --ext .ts . --fix",
    "format": "prettier --write \"src/**/*.ts\"",
    "format:check": "prettier --check \"src/**/*.ts\"",
    "check-types": "tsc --noEmit",
    "check-modularization": "node node_modules/@synergyerp/backend-standards/scripts/check-modularization.mjs",
    "test": "vitest run",
    "test:watch": "vitest",
    "test:ci": "vitest run --coverage",
    "validate": "pnpm lint && pnpm check-modularization && pnpm check-types && pnpm test:ci"
  },
  "lint-staged": {
    "src/**/*.ts": ["eslint --fix --max-warnings 0", "prettier --write"],
    "*.{json,md,yaml,yml}": ["prettier --write"]
  }
}

Enable Hooks

pnpm prepare
pnpm add -D husky lint-staged

CI Pipeline

cp node_modules/@synergyerp/backend-standards/.github/workflows/ci-template.yml .github/workflows/ci.yml

Module Isolation Enforcement

| Rule | Tool | | ------------------------------------------- | ------------------------------------ | | No flat files at modules/ root | check-modularization.mjs | | Every module has index.ts barrel | check-modularization.mjs | | Cross-module imports go through barrel only | import/no-internal-modules | | No direct imports of repos/controllers | import/no-restricted-paths | | Barrel only exports service layer | check-modularization.mjs (warning) |

Related Documents