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

@thinairthings/air-graph

v1.3.6

Published

<p> <img src="readme.assets/github.banner.png"> </P>

Readme

Welcome to thinairthings!

This is a wrapper around Neo4j and OpenAI enabling streamlined handling of application data for AI use cases.

Why?

Graph data models are awesome. So are LLM's. This libraries goal is to help you merge these things so you can do awesome stuff like matching. Examples of this are matching Candidates to Open Jobs, Grant Opportunities to Eligible Small Businesses, and many more things.

NOTE Strict null checks must be on in tsconfig.json

Why does this library exist?

TypeScript and functional programming together allows you build really big things and not get lost. The goal of this library is to provide you with some sane defaults and reasonable programming interfaces that will enable you to build complex things from simple building blocks. The major goal is to keep this library as simple as possible.

Inspired By

Zustand, Liveblocks, React, Neo4j, Cypher

Installation

npm install @thinairthings/air-graph

Configure

import { configureGraphEnvironment } from '@thinairthings/air-graph'

export const {
    defineNode,
    defineGraph
} = configureGraphEnvironment({
    neo4jConfig: {
        uri: process.env.NEO4J_URI!,
        user: process.env.NEO4J_USERNAME!,
        password: process.env.NEO4J_PASSWORD!
    },
    openaiApiKey: process.env.OPENAI_API_KEY!,
    embeddingsModel: 'text-embedding-3-large',
    defaultGptModel: 'gpt-3.5-turbo',
})

Define your nodes

Example:

CompanyNode.ts

import { z } from "zod";
import { defineNode } from "../graph.config";


export const companyNodeDefinition = defineNode({
    nodeType: 'Company',
    propDefinition: z.object({
        companyName: z.string(),
        shortDescription: z.string().optional(),
        longDescription: z.string().optional(),
        website: z.string().url().optional(),
        logo: z.string().url().optional()
    }),
    embeddingsDefinition: {
        shortDescription: {
            // More explanation on what a contextPointer is coming soon...
            contextPointer: `The thing this company does is...`
        },
        longDescription: {
            contextPointer: null
        }
    }
})

UserNode.ts

import { z, TypeOf } from 'zod';
import { defineNode } from '../graph.config';

export const userNodeDefinition = defineNode({
    nodeType: 'User',
    propDefinition: z.object({
        firstName: z.string(),
        lastName: z.string(),
        email: z.string().email(),
        password: z.string(),
        headshot: z.string().url().optional(),
        userType: z.union([z.literal('Recruiter'), z.literal('Candidate'), z.null()])
    })
})

EmployeeNode.ts


import { z } from 'zod';
import { defineNode } from '../graph.config';

export const employeeNodeDefinition = defineNode({
    nodeType: 'Employee',
    propDefinition: z.object({
        position: z.string().optional()
    }),
    embeddingsDefinition: {
        position: {
            contextPointer: null
        }
    }
})

Define your graph

import { defineGraph } from "./graph.config";
import { companyNodeDefinition } from "./nodes/CompanyNode";
import { employeeNodeDefinition } from "./nodes/EmployeeNode";
import { userNodeDefinition } from "./nodes/UserNode";


export const {
    createNode
} = defineGraph(({
    nodeDefinitions: [
        companyNodeDefinition,
        employeeNodeDefinition,
        userNodeDefinition
    ]
}))

Create nodes. Everything will be fully typed and hopefully feel good.

const user = await createNode('Company', {
    companyName: 'Thin Air Things',
    shortDescription: 'Thin Air makes things.',
    longDescription: 'Thin air makes things that make other things do things.'
})

Relationship (Coming soon...)