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

@nova-lang/schema

v0.4.1

Published

Nova schema library — type definitions, validation helpers, and code generation templates

Readme

@nova-lang/schema

Nova schema library — type definitions, validation helpers, and code generation templates.

Install

npm install @nova-lang/schema

Usage

@use "nova/schema"

Modules

Types (types.nv)

Foundational type definitions — Int8 through Int64, UInt8 through UInt64, Float32/64, String, Char, Bool, Bytes, Date, DateTime, UUID, JSON, Any, Void, Never, Null, Array, Map, Record, Tuple, Union, Intersection, Optional.

Validation (validation.nv)

| Function | Description | |----------|-------------| | validate-required(value, fieldName) | Check value is not empty | | validate-min(value, min, fieldName) | Check minimum value | | validate-max(value, max, fieldName) | Check maximum value | | validate-range(value, min, max, fieldName) | Check value range | | validate-length(value, minLen, maxLen, fieldName) | Check string/array length | | validate-email(value, fieldName) | Validate email format | | validate-url(value, fieldName) | Validate URL format | | validate-pattern(value, pattern, fieldName) | Match regex pattern | | validate-one-of(value, options, fieldName) | Check value in options | | validate-type(value, expectedType, fieldName) | Validate value type | | validate-schema(value, schemaName) | Validate against schema |

API (api.nv)

| Function | Description | |----------|-------------| | api-endpoint(method, path, desc) | Define API endpoint | | api-request(body) | Define request body | | api-response(status, body) | Define response | | api-section(title) | Group endpoints |

Code Generation (codegen.nv)

| Function | Description | |----------|-------------| | codegen-go(schemaName, fields) | Generate Go types | | codegen-typescript(schemaName, fields) | Generate TypeScript types | | codegen-python(schemaName, fields) | Generate Python types | | codegen-rust(schemaName, fields) | Generate Rust types | | codegen-java(schemaName, fields) | Generate Java types | | codegen-protobuf(schemaName, fields) | Generate Protobuf definitions | | codegen-json-schema(schemaName, fields) | Generate JSON Schema |

Database (db.nv)

| Function | Description | |----------|-------------| | db-table(name, @body) | Define table schema | | db-column(name, type, constraints) | Define column | | db-index(name, table, columns) | Define index | | db-foreign-key(column, ref-table, ref-column) | Define foreign key | | db-relation(name, type, from, to) | Define relation | | db-migration(version, desc, @body) | Define migration | | db-query(sql, params) | Define SQL query | | db-seed(table, data) | Define seed data |

GraphQL (graphql.nv)

| Function | Description | |----------|-------------| | gql-schema(name, @body) | Define GraphQL schema | | gql-type(name, kind, @body) | Define type/input/interface | | gql-field(name, type, args) | Define field | | gql-input(name, @body) | Define input type | | gql-enum(name, values) | Define enum | | gql-union(name, types) | Define union | | gql-interface(name, @body) | Define interface | | gql-query(name, @body) | Define query | | gql-mutation(name, @body) | Define mutation | | gql-subscription(name, @body) | Define subscription | | gql-directive(name, locations, args) | Define directive |

gRPC (grpc.nv)

| Function | Description | |----------|-------------| | grpc-service(name, @body) | Define gRPC service | | grpc-rpc(name, input, output, stream) | Define RPC method | | grpc-message(name, @body) | Define message | | grpc-field(name, type, tag) | Define field | | grpc-enum(name, values) | Define enum | | grpc-oneof(name, @body) | Define oneof | | grpc-map(name, key-type, value-type) | Define map field | | grpc-option(name, value) | Set protobuf option | | grpc-package(name) | Set protobuf package | | grpc-import(path) | Import protobuf file |

OpenAPI (openapi.nv)

| Function | Description | |----------|-------------| | openapi-spec(title, version, @body) | Define OpenAPI spec | | openapi-path(path, method, @body) | Define API path | | openapi-parameter(name, type, location, required) | Define parameter | | openapi-response(status, desc, @body) | Define response | | openapi-request-body(content-type, @body) | Define request body | | openapi-schema(name, @body) | Define schema | | openapi-property(name, type, required) | Define property | | openapi-tag(name, desc) | Define tag | | openapi-security(scheme, type) | Define security scheme | | openapi-server(url, desc) | Define server |

License

MIT