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

@cocoframe/cocoql

v0.2.0

Published

AI-first schema-aware query planning and parameterized SQL compilation.

Readme

@cocoframe/cocoql

Versioned, schema-aware query and mutation tooling for deterministic AI-generated database work.

The public entry exports the lexer/parser, canonical formatter, schema and permission definitions, semantic validation, safety enforcement, query/mutation plans, previews, structured diagnostics, semantic UTC dates, and guarded parameterized MySQL/PostgreSQL compilers. The PostgreSQL dialect additionally supports UUID, JSON/JSONB, typed arrays, full-text search, grouped predicates, CTEs, HAVING, DISTINCT, unique-field cursors, row locks, RETURNING, and UPSERT.

const schema = defineCocoQLSchema({ /* explicit entities and relations */ });
const plan = planCocoQL(validateCocoQL(parseCocoQL(source), schema), schema);
const compiled = compileCocoQLToPostgres(plan, schema);

Never compile unvalidated ASTs or forged plans. Reads and mutations require explicit schema, permission, and safety boundaries; preview plans are not executable writes. Start with docs/cocoql-ai-guidelines.md, then the relevant docs/cocoql-*.md specification. Verify all behavior with tests/cocoql.test.ts. Use createCocoQLPostgresExecutor from @cocoframe/database-postgres when the validated plan should be executed with connection, transaction, timeout, cancellation, retry, result-limit, and guard management.