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

@venturekit/core

v0.0.0-dev.20260507015944

Published

VentureKit core types, presets, and configuration resolution.

Downloads

12,493

Readme

@venturekit/core

Warning: This package is in active development and not production-ready. APIs may change without notice.

Core types, presets, and configuration resolution for VentureKit.

Installation

npm install @venturekit/core@dev

Overview

@venturekit/core is the foundation of the VentureKit framework. It provides:

  • Type definitions for all configuration layers (base, security, environment)
  • Presets for quick environment sizing (nano, micro, medium, large)
  • Configuration resolution that merges base + security + environment into a single resolved config
  • Validation utilities for all configuration types
  • Infrastructure intent types for declarative resource provisioning

Every other VentureKit package depends on @venturekit/core.

Configuration Layers

VentureKit uses a layered configuration system:

| Layer | Purpose | Changes per environment? | |-------|---------|--------------------------| | BaseConfig | Project identity (name, region) | No | | SecurityConfig | OAuth scopes, app clients | No | | EnvConfigInput | Resource sizing, scaling | Yes |

Base Config

import type { BaseConfig } from '@venturekit/core';

const base: BaseConfig = {
  name: 'my-api',
  displayName: 'My API',
  region: 'eu-west-1',
};

Security Config

import type { SecurityConfig } from '@venturekit/core';

const security: SecurityConfig = {
  scopes: [
    { name: 'api.read', description: 'Read API data' },
    { name: 'api.write', description: 'Write API data' },
  ],
  appClients: [
    {
      name: 'web-app',
      allowedScopes: ['api.read', 'api.write'],
      supportsRefreshTokens: true,
    },
  ],
};

Environment Config

import type { EnvConfigInput } from '@venturekit/core';

const dev: EnvConfigInput = {
  preset: 'nano',
  dataSafety: 'relaxed',
  api: { cors: { allowOrigins: ['http://localhost:3000'] } },
};

Presets

| Preset | Lambda | Timeout | API Rate | VPC | Est. Cost | |--------|--------|---------|----------|-----|-----------| | nano | 128 MB | 10s | 10/s | No | ~$5–15/mo | | micro | 256 MB | 10s | 50/s | Yes | ~$30–80/mo | | medium | 512 MB | 15s | 100/s | Yes | ~$100–300/mo | | large | 1024 MB | 30s | 500/s | Yes | ~$500+/mo |

import { getPreset, PRESET_NANO } from '@venturekit/core';

const preset = getPreset('nano'); // Returns full PresetConfig

Config Resolution

import { resolveConfig } from '@venturekit/core';

const resolved = resolveConfig(base, security, 'dev', devEnvInput);
// Returns a fully resolved ResolvedConfig with no undefined values

Validation

import { validateBaseConfig, validateSecurityConfig, assertValid } from '@venturekit/core';

const result = validateBaseConfig(base);
assertValid(result); // Throws if invalid

Infrastructure Intents

Declare what infrastructure you need without provider-specific details:

import type { VentureIntent } from '@venturekit/core';

const infrastructure: VentureIntent = {
  databases: [{ id: 'main', type: 'postgres', size: 'small', name: 'mydb' }],
  storage: [{ id: 'uploads', purpose: 'uploads', cdn: true }],
  queues: [{ id: 'jobs', type: 'standard', deadLetterQueue: true }],
  caches: [{ id: 'sessions', type: 'redis', size: 'small' }],
  schedules: [{ id: 'cleanup', handler: 'src/jobs/cleanup.handler', schedule: { rate: '1 day' } }],
};

API Reference

See the API reference for full type documentation.

License

Apache-2.0 — see LICENSE for details.