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

@evjs/client

v0.1.11

Published

Client-side runtime for the evjs framework

Readme

@evjs/client

Client-side runtime for the evjs fullstack framework.

Features

  • Type-Safe Routing — Re-exports TanStack Router with custom createApp integration.
  • Data Fetching — Re-exports TanStack Query with built-in server function proxies.
  • Server Function SupportuseQuery(fn) and useMutation(fn) for zero-boilerplate RPC.
  • Unified BootstrapcreateApp({ routeTree }).render("#app").

Install

npm install @evjs/client react react-dom

Quick Start

1. Define Routes

// src/routes.tsx
import { createRoute, createAppRootRoute, Outlet } from "@evjs/client";

export const rootRoute = createAppRootRoute({
  component: () => (
    <div>
      <h1>My App</h1>
      <Outlet />
    </div>
  ),
});

export const indexRoute = createRoute({
  getParentRoute: () => rootRoute,
  path: "/", // Must be a string literal!
  component: () => <div>Hello World</div>,
});

export const routeTree = rootRoute.addChildren([indexRoute]);

2. Bootstrap App

// src/main.tsx
import { createApp } from "@evjs/client";
import { routeTree } from "./routes";

const app = createApp({ routeTree });
app.render("#app");

Server Functions

Use the "use server" directive in *.server.ts files. @evjs/client provides hooks to call them:

import { useQuery } from "@evjs/client";
import { getPosts } from "./api/posts.server";

function Posts() {
  const { data } = useQuery(getPosts);
  return <ul>{data?.map(p => <li key={p.id}>{p.title}</li>)}</ul>;
}

API

Routing

  • createApp: Create the main application instance.
  • createRoute: Define a route (enforces string literal paths).
  • createAppRootRoute: Define the root layout.
  • Link, Outlet, useNavigate, useParams, useSearch: Standard TanStack Router components/hooks.

Query

  • useQuery(fn, args?): Wrapper around useSuspenseQuery.
  • useMutation(fn): Wrapper around useMutation.
  • getFnQueryKey(fn, args?): Generate stable query keys for server functions.
  • getFnQueryOptions(fn, args?): Generate options for manual queryClient usage.

Transport

  • initTransport({ baseUrl, credentials, headers, functions }): Configure the default HTTP adapter.
  • credentials / headers: Supported HTTP defaults; fetch mode is intentionally not configurable.
  • initTransport({ adapter }): Replace transport behavior with a custom adapter.

License

MIT