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

@lark-apaas/coding-presets

v1.0.1

Published

ESLint, Stylelint, and Tailwind presets for OpenClaw projects

Readme

@lark-apaas/coding-presets

Shared ESLint, Stylelint, Tailwind, and TypeScript presets for OpenClaw coding templates.

Install

pnpm add -D @lark-apaas/coding-presets

ESLint

Provides client and server presets with eslint/recommended + typescript-eslint/recommended base configs.

// eslint.config.js
import { eslintPresets } from '@lark-apaas/coding-presets'

export default [
  // Client: React + TypeScript
  ...eslintPresets.client.map(config => config.ignores ? config : {
    ...config,
    files: ['client/**/*.{ts,tsx}'],
  }),
  // Server: Node.js + TypeScript
  ...eslintPresets.server.map(config => config.ignores ? config : {
    ...config,
    files: ['server/**/*.ts', 'shared/**/*.ts'],
  }),
]

Client rules include

  • React Hooks recommended rules (exhaustive-deps off)
  • TypeScript loose mode (no-unused-vars, no-explicit-any, no-empty-object-type off)
  • Restricted syntax: location.href assignment, relative <a> href, Tailwind 4 hsl/rgb space check
  • Restricted imports: next/link prohibited

Server rules include

  • Node.js globals (including NodeJS)
  • TypeScript loose mode (matching client)
  • No NestJS-specific rules (unlike fullstack-presets)

TypeScript

Provides tsconfig.app.json and tsconfig.node.json presets aligned with Vite 8 standards.

// tsconfig.app.json — Client (React)
{
  "extends": "@lark-apaas/coding-presets/lib/tsconfig/tsconfig.app.json",
  "compilerOptions": {
    "types": ["vite/client"],
    "paths": { "@/*": ["./client/src/*"] }
  },
  "include": ["client/src"]
}
// tsconfig.node.json — Tooling (vite.config.ts, etc.)
{
  "extends": "@lark-apaas/coding-presets/lib/tsconfig/tsconfig.node.json",
  "include": ["vite.config.ts"]
}
// tsconfig.server.json — Server build (with output)
{
  "extends": "@lark-apaas/coding-presets/lib/tsconfig/tsconfig.node.json",
  "compilerOptions": {
    "outDir": "./dist/server",
    "noEmit": false
  },
  "include": ["server", "shared"]
}

TSConfig presets settings

| Option | app | node | |--------|-----|------| | target | ES2023 | ES2023 | | module | ESNext | ESNext | | moduleResolution | bundler | bundler | | strict | true | true | | jsx | react-jsx | — | | verbatimModuleSyntax | true | true | | noEmit | true | true |

Stylelint

import { stylelintPresets } from '@lark-apaas/coding-presets'
// Use stylelintPresets as your stylelint config

Includes custom HSL validation rule and duplicate custom properties check.

Tailwind

import { createTailwindPreset } from '@lark-apaas/coding-presets'
const preset = createTailwindPreset({ content: ['./src/**/*.tsx'] })

Includes tailwindcss-animate plugin with class-based dark mode.

License

MIT