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

kineo

v0.11.1

Published

Declarive, TypeScript-first Object-Relation/Graph Mapper (ORM/OGM).

Readme

Kineo

Object-Relation/Graph Mapper (ORM/OGM) for TypeScript.

Usage

Install Kineo. Run one of these commands to install Kineo as a dependency:

npm install kineo
yarn add kineo
pnpm add kineo
bun add kineo

Define a schema. This schema can be anywhere in your codebase, as long as you can reference it.

import { defineSchema, model, field, relation, type InferSchema } from "kineo";

export const schema = defineSchema({
  users: model("User", {
    name: field.string().id(),
    password: field.string().required(),
    posts: relation.to("Post").outgoing("HAS_POST").array(),
  }),

  posts: model("Post", {
    id: field.string().id(),
    title: field.string().required(),
    author: relation.to("User").incoming("HAS_POST"),
  }),
});

export type Schema = InferSchema<typeof schema>;

Create a client. Use an adapter, which is the set of functions that converts Kineo's representation to your database's query language. Here, we use the Neo4j adapter, which requires you to install neo4j-driver as a dependency.

import { kineo } from "kineo";
import { neo4jAdapter } from "kineo/adapters/neo4j";

export const db = kineo(
  neo4jAdapter({
    url: "bolt://localhost:7687",
    auth: {
      username: "neo4j",
      password: "password",
    },
  }),
  schema,
);

Different adapters will have different parameters.

Query your database. Kineo uses objects for querying.

const user = await db.users.findFirst({
  where: {
    name: {
      startsWith: "a",
      not: {
        endsWith: "z",
      },
    },
    AND: [
      {
        password: {
          contains: "secure",
        },
      },
    ],
  },
  include: {
    posts: true,
  },
});

Migrations

Kineo also has a migration manager, as a separate package.

npm install kineokit
yarn add kineokit
pnpm add kineokit
bun add kineokit

After installing, run one of these commands to initialize your configuration file.

npx kineokit init
yarn kineokit init
pnpm kineokit init
bunx kineokit init

Manual setup

Create a kineo.config.ts at the root of your project, and paste these contents:

import { defineConfig } from "kineokit";
import { neo4jKit } from "kineokit/adapters/neo4j"; // replace this with the adapter you're using

import { schema } from "<your schema path>";
import { client } from "<your client path>";

export default defineConfig({
  adapter: neo4jKit(client),
  schema: schema,
  client: client,
  migrations: "./migrations",
});

Replace <your schema path> and { schema } with your schema file path and export name, and do the same for the client.

License information

Kineo uses the MIT License. See LICENSE for more details.