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

@owlmeans/client-entrypoint

v0.1.11

Published

Client-side entrypoint system: elevates route definitions into API-calling `ClientEntrypoint` instances.

Readme

@owlmeans/client-entrypoint

Client-side entrypoint system: elevates route definitions into API-calling ClientEntrypoint instances.

Overview

  • elevate(entrypoints, alias, handler?, opts?) — attaches a client handler to an entrypoint (mirrors server elevate)
  • ClientEntrypoint<T> has a call(request?) method that resolves the URL and makes an HTTP/WS request
  • stab — no-op handler for entrypoints that only need URL resolution (no logic)
  • provideRequest(alias, path) — creates an AbstractRequest for programmatic entrypoint calls
  • pickPerSchema(schema, obj) — extracts fields from an object matching an AJV schema
  • Re-exported as celevate from @owlmeans/server-app

Installation

bun add @owlmeans/client-entrypoint

Usage

Define and elevate a client entrypoint for API calls:

import { elevate, stab } from '@owlmeans/client-entrypoint'
import type { ClientEntrypoint } from '@owlmeans/client-entrypoint'

const appModules = [
  entrypoint(route('project-list', '/projects', frontend('base'))),
  entrypoint(route('project-create', '/projects', backend(RouteMethod.POST))),
]

// Frontend navigation — just a stub, no network call
elevate(appModules, 'project-list', stab)

// Backend API call — call() makes a POST request
elevate(appModules, 'project-create')

Call an entrypoint from a service:

const agentEntrypoint = ctx.entrypoint<ClientEntrypoint<Project>>(agent.project.create)
const [result] = await agentEntrypoint.call({
  body: { prompt: payload.prompt, entity: req.auth?.entityId }
})

API

elevate<T, R>(entrypoints, alias, handler?, opts?): ClientEntrypoint<T, R>[]

Mutates entrypoints in-place and returns the array typed as ClientEntrypoint. The handler sets how call() behaves.

stab: RefedEntrypointHandler

No-op handler for frontend-only entrypoints that just need URL resolution.

ClientEntrypoint<T> (type)

  • call(request?) — resolves URL, makes HTTP request, returns [T, EntrypointOutcome]
  • validate(request?) — validates the request against the entrypoint filter schema
  • getPath(partial?) — returns the URL path (with or without path params)

provideRequest<T>(alias, path): AbstractRequest<T>

Creates a minimal request object for programmatic call() invocations.

pickPerSchema<T>(schema, obj): Partial<T>

Extracts only the keys present in the AJV schema from obj.

Related Packages

Agent guidance

This package ships embedded Claude Code skills and GitHub Copilot instructions under agent-meta/. After installing your @owlmeans/* packages, run the OwlMeans agent-skills installer to place them into your project's native locations (.claude/skills/ and .github/instructions/):

npx @owlmeans/agent-skills

The embedded files are version-matched to this package release. Do not edit them directly — they are regenerated on each publish. To contribute guidance edits, open a PR against the source monorepo.