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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@whoz-oss/coday-web

v0.51.0

Published

This package provides the web interface launcher for Coday, bundling both the client (Angular app) and server components into a single executable package.

Downloads

1,949

Readme

Coday Web Package

This package provides the web interface launcher for Coday, bundling both the client (Angular app) and server components into a single executable package.

Architecture

The web package acts as a thin orchestration layer:

┌─────────────────────────────────────────┐
│         coday-web (index.js)            │
│  ┌───────────────────────────────────┐  │
│  │ 1. Resolve client package path   │  │
│  │ 2. Set CODAY_CLIENT_PATH env var │  │
│  │ 3. Import and run server         │  │
│  └───────────────────────────────────┘  │
└─────────────────────────────────────────┘
                    │
        ┌───────────┴───────────┐
        ▼                       ▼
┌──────────────┐        ┌──────────────┐
│ coday-server │        │ coday-client │
│  (Express)   │───────▶│  (Angular)   │
└──────────────┘        └──────────────┘

Usage Modes

Production Mode (Published Package)

Use the published npm package via npx:

# Using the published package
pnpm web

# Or directly with npx
npx @whoz-oss/coday-web --no_auth

In production mode:

  • The web launcher resolves the client package from node_modules
  • Server serves pre-built static files from the client package
  • Single process handles both server and client

Development Mode (Local Sources)

For development with live reload and local sources:

# Start both client and server in development mode
pnpm web:dev

This command:

  • Starts the Angular dev server on port 4200 (with HMR)
  • Starts the Express server on port 4100 (with tsx watch)
  • Server proxies non-API requests to Angular dev server
  • Changes to client or server code trigger automatic reloads

How it works in dev mode:

  1. Client runs with Angular CLI dev server (localhost:4200)
  2. Server runs with tsx watch (localhost:4100)
  3. Server detects BUILD_ENV=development and proxies to Angular
  4. API routes (e.g., /api/*) are handled by the server
  5. All other routes are proxied to Angular for client-side routing

Development Workflow

Running Individual Services

You can also run services separately for debugging:

# Run only the client (Angular dev server)
pnpm client

# Run only the server (Express with tsx watch)
pnpm server

Building for Production

The web package depends on built client and server packages:

# Build all packages
pnpm nx run-many --target=build --projects=client,server,web

# Or build everything
pnpm nx run-many --target=build --all

Testing Changes

When making changes to the web launcher:

  1. Modify apps/web/index.js
  2. Test with local server: node apps/web/index.js --no_auth
  3. Verify client resolution works correctly
  4. Check that server starts and serves the client

Environment Variables

  • CODAY_CLIENT_PATH: Set by the web launcher to tell server where client files are
  • BUILD_ENV: Set to development by server's serve target for dev mode
  • PORT: Override default server port (default: 3000 production, 4100 dev)

Package Dependencies

{
  "@whoz-oss/coday-client": "workspace:*",
  "@whoz-oss/coday-server": "workspace:*"
}

These use workspace protocol in development and resolve to specific versions when published.

Troubleshooting

"Could not resolve @whoz-oss/coday-client package"

This means the client package isn't built or installed:

# In development
pnpm install
pnpm nx run client:build

# Or use the web:dev command which doesn't require builds
pnpm web:dev

"Failed to start server"

Check that all dependencies are installed:

pnpm install

Development mode not proxying correctly

Ensure both services are running:

  1. Angular dev server should be on port 4200
  2. Express server should be on port 4100
  3. Access the app via http://localhost:4100

Quick Reference

| Command | Mode | Ports | Use Case | |---------|------|-------|----------| | pnpm web | Production | 3000 | Testing published package | | pnpm web:dev | Development | 4100→4200 | Active development | | pnpm client | Development | 4200 | Client-only work | | pnpm server | Development | 4100 | Server-only work |