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

@vercel/v0

v0.0.1-alpha.1

Published

Official v0 SDK for programmatic access to v0.app

Maintainers

sebastianromingsebastianromingcraigandrewscraigandrewsgkaragkiaourisgkaragkiaourisdglsparsonsdglsparsonsbvred4244bvred4244dummdidummdummdidummadriancooney_verceladriancooney_verceleveporcelloeveporcellobcorn-celybcorn-celyatinuxatinuxdvoytenkodvoytenkoamyeganamyeganbrookemosbybrookemosbyfeugyfeugyswarnavasenguptaswarnavasenguptaraunofreibergraunofreibergmamusomamusogoncygoncysmaeda-kssmaeda-kshenryheffernanhenryheffernangargis5gargis5wycatswycatsyvonnezhouyvonnezhouchibicodechibicodeandybitzandybitziamevilrabbitiamevilrabbittootallnatetootallnatestyflestyflematthewbinshtokmatthewbinshtokmglagolamglagolajavivelascojavivelascoluimeyluimeytimertimerlucleraylucleraymatheussmatheussanatrajkovskaanatrajkovskan0rlant1sn0rlant1sjooliashijooliashitimneutkenstimneutkenselsighelsighwitswitslpalmeslpalmescl3arglasscl3arglasssamsislesamsislechriswdmrchriswdmrrizbizkitsrizbizkitsismaelrumzanismaelrumzanrich.davis.vercelrich.davis.vercelcreationixcreationixfeedthejimfeedthejimcasey.gowriecasey.gowrierauchgrauchghuozhihuozhialdoschaldoschlfadeslfadesokbelokbeljerilynzjerilynzhedyzandihedyzandipadmaiapadmaiadelbadelbasokrasokragsandhugsandhudbredvickdbredvickhungrybearstudiohungrybearstudiocalebboydcalebboydhellojennifertranhellojennifertranmarcgreenstockmarcgreenstockagadzikagadziktknickmantknickmanjanoryjanoryjeffreyarnesonjeffreyarnesonmattjaredmattjaredmsimulcikmsimulcikgdbortongdbortoncorrettojscorrettojscramforcecramforcekakadiadarpankakadiadarpanmaxleitermaxleiterkit-fosterkit-fostertilly3gtilly3gecklfecklfhealeycodeshealeycodesdferber90dferber90epallerolsepallerolsnicolas-webdevnicolas-webdevschlezschleznpm_bot_vercel_supportnpm_bot_vercel_supportpieparkerpieparkerjtaylor0196jtaylor0196javierbytejavierbyteemeraldsantoemeraldsantogaspar09gaspar09mmastracmmastracsr_internsr_interngudmundurgudmundurnick.traceynick.traceybmealeybmealeydoquedoqueaaorrisaaorrisnutanutadaniel.campbelldaniel.campbellquiibzquiibzchloe.tedderchloe.teddermjakobismjakobismehulkarmehulkartcc-sejohnsontcc-sejohnsonfiliphassonfiliphassonlubakravchelubakravchegnoffgnoffmatt.strakamatt.strakawbinnssmithwbinnssmithofhouseofhousemknichel-vercelmknichel-vercelvvovvovercel-release-botvercel-release-botrob-peters-vercelrob-peters-vercelgt-codesgt-codesbalazsorbanbalazsorbantobiaslinstobiaslinstiago-loureirotiago-loureirombrakkenmbrakkentimolinstimolinsanthonyshewanthonyshewcmeyer_vercelcmeyer_verceltbremertbremermiguelalcaldemiguelalcaldelaugharnlaugharnviekoviekorobin-vercelrobin-vercelwude935wude935zach-baldazach-baldaah100101ah100101quietshuquietshuijjkijjkvercelbenvercelbenzharichzharichjoey.berkowitzjoey.berkowitzdfeindfeinonsclomonsclomashok.gurumurthyashok.gurumurthydavidverceldavidvercelowoceowoceshaper42shaper42ademauademaujeffsee55jeffsee55zeejabzeejabacdliteacdlitemcabs3mcabs3msemperemsemperekldavis4kldavis4lukahartwiglukahartwigbgwbgwsipexsipexjeremyphilemonjeremyphilemoneprosimoneprosimonrithmicrithmicdanmfoxdanmfoxn-vigiern-vigiervercelmattvercelmattjudegaojudegaovercel-ctatevercel-ctatealbanesealbanesesceilersceilerlgrammellgrammeljamesvclementsjamesvclementstomocchinotomocchinoaryamankhaaryamankhapranathippranathipmattfroggettmattfroggetteps1loneps1lonpbzonapbzonamalewis5malewis5devjiwonchoidevjiwonchoikonstvkonstvzacktannerzacktannergabenunezgabenunezshadcnshadcnmikecurtismikecurtisunstubbableunstubbablesueplexsueplexethansheaethansheaidoatvercelidoatvercelwentsulwentsulvikhyathvikhyathmischnicmischnichgstrmhgstrmdcampvc01dcampvc01mitul-smitul-sjonpheyjonpheyannagzhannagzhrich_harrisrich_harrisandrewbarbaandrewbarbabcjrobertsbcjrobertsmarc-vercelmarc-vercelali-vercelali-vercelduijfduijfplmrryplmrrytmdotmdojulianbenegasjulianbenegasrao.chandanrao.chandanthebigsadowskithebigsadowskigovind-vercelgovind-verceltomjohndesigntomjohndesignbshanzbshanzaubreychamberlainaubreychamberlainkmiddleton14kmiddleton14yavoryavorgracelliugracelliu1st11st1whatplanwhatplanfmoorfmoorvercel-eddievercel-eddietristantcoopertristantcooperrklaeserrklaesermerycodesmerycodesnmelmsnmelmsyasoobr0yasoobr0m7rcelom7rceloestebansuarezestebansuarezbobmshannonbobmshannoncaseyokeefecaseyokeefebhrigubhrigulaksshhlaksshhzackelanzackelankelzceanakelzceanahannah.hearthhannah.hearthfalcoagustin.vercelfalcoagustin.vercelnpasquinzonpasquinzokobologkobologtimwhite96timwhite96jnsahajjnsahajastephen100astephen100sylviezhangsylviezhangmatiasgfmatiasgflukesheardlukesheardadrientheboadrienthebokarthiklangtracekarthiklangtraceelpranselpransrihanarfanrihanarfanolivercarmontolivercarmontjjdopkinjjdopkinvercel_it_service_accountvercel_it_service_accountadamdongadamdongrhyssullivanrhyssullivanvalerian-rochevalerian-rocheallen-vercelallen-vercelalli-vercelalli-vercelethsheaethsheascotttrinhscotttrinhjaclarkejaclarkebkonklebkonkleseverinlandoltseverinlandoltkevinjosethomaskevinjosethomasjaygengelbachjaygengelbachchriskindlchriskindltk04tk04gschogschokavinvallikavinvallinsidnevnsidnevyash-kothari-vercelyash-kothari-vercelrobherleyrobherleymingchungxmingchungxmbaizambaizabenyebaibenyebaitimothyjordantimothyjordantristano45tristano45andyw22andyw22shagrawalshagrawalneil-vercelneil-vercelskullfaceskullfacefernandorojofernandorojokevin.corbettkevin.corbettzacowanzacowanjoelhooksjoelhookswillvileswillvilesmarkandrusmarkandrusloganliffickloganliffickyoungbloodcybyoungbloodcybkapehe_okkapehe_okhaydenbleaselhaydenbleaselquuuquuujteesangjteesangpckirklandpckirklanddavid_keefedavid_keefejeffreypojeffreypoaormi-vercelaormi-verceldarafshehdarafshehmarkpython86markpython86lazarvlazarvtonypantonypanjackjacksonverceljackjacksonvercelseif.ghezalaseif.ghezalamiksumiksuwillsatherwillsatheramanazadamanazadjacobparisjacobparisicyjosephicyjosephvercelliotvercelliotlukesandberglukesandbergnicolasmontonenicolasmontonevoodootikigodvoodootikigodjustinkroppjustinkroppsatya-callstacksatya-callstackchristianhubbardchristianhubbardwoshuajolkwoshuajolkbennorbennorstranglestranglebmishkinbmishkinmshepaneshmshepaneshkarimhaseboukarimhasebouwilliamboutwilliamboutpranaygppranaygpalex-groveralex-groverchrmcd-verchrmcd-verallenzhou101allenzhou101dmoridmoriiansbrashiansbrashalice-wonderedalice-wonderedmatchaimatchaivishalyathishvishalyathishsamselikoffsamselikoffmrsasuu_ckmrsasuu_ckmtoth-vercelmtoth-vercelanshuman71anshuman71runewolf7runewolf7rohantaneja-vercelrohantaneja-vercelhp_arorahp_arorajoyboy-0joyboy-0matiasperzmatiasperzjverceljverceltannerverceltannervercelgi_wrightygi_wrightymatthewstanciumatthewstanciurickeymcgregorrickeymcgregorrichardkunklirichardkunklibwalvoordbwalvoordrobpruzanrobpruzandanielroedanielroerahuliyer-vercelrahuliyer-vercelty37zhangty37zhangshawnfeldmanshawnfeldmanjohnphamousjohnphamous6ary6aryricardo-agzricardo-agzaej11aaej11amclenhardmclenhardreynaldo-vercelreynaldo-verceljaredthompson22jaredthompson22jetthenjetthenrobkebabrobkebabraidaltraidaltcodyellowcodyellowpablostanleypablostanleyronnie-hanifronnie-hanifzypxzypxthecletheclepranavkarthikpranavkarthikandy.rianchoandy.rianchojonasherrjonasherrvanessaxteovanessaxteotomdaletomdalevincent-derksvincent-derksgrappeggiagrappeggiavaguelyseriousvaguelyseriousmkrrmkrrdalyd14dalyd14kaciebkaciebgr2mgr2mkarim_v1karim_v1simhskalsimhskal

Readme

@vercel/v0

Official v0 SDK for programmatic access to v0.app.

Installation

npm install @vercel/v0
# or
pnpm add @vercel/v0
# or
yarn add @vercel/v0

Usage

Basic Example

import { createV0Client } from '@vercel/v0'

const client = createV0Client({
  token: process.env.V0_API_TOKEN!,
})

// Stream a message to v0
for await (const event of client.message.createStream({
  message: 'Create a landing page with a hero section',
})) {
  switch (event.type) {
    case 'start':
      console.log('Started chat:', event.chatId)
      break
    case 'message':
      console.log('Message update received')
      break
    case 'complete':
      console.log('Generation complete!')
      break
    case 'error':
      console.error('Error:', event.error)
      break
  }
}

Git Operations

// Push changes to a branch
const pushResult = await client.git.branch.push({
  chatId: 'chat_123',
})

// Create a pull request
const prResult = await client.git.pullRequest.create({
  chatId: 'chat_123',
  content: {
    title: 'Add new landing page',
    body: 'This PR adds a new landing page with a hero section.',
  },
})

if (prResult.ok) {
  console.log('PR created:', prResult.value.htmlUrl)
}

// Check deployment status
const status = await client.git.deploymentStatus.get({
  chatId: 'chat_123',
})

if (status.ok) {
  console.log('Deployment status:', status.value.status)
}

Sandbox Configuration

// Use with a GitHub repository
for await (const event of client.message.createStream({
  message: 'Add a dark mode toggle',
  sandbox: {
    source: { type: 'git', org: 'myorg', repo: 'myrepo' },
    branch: { mode: 'auto', prefix: 'v0/' },
  },
})) {
  // Handle events...
}

// Use with a Vercel project
for await (const event of client.message.createStream({
  message: 'Update the header component',
  sandbox: {
    source: { type: 'vercel', projectId: 'prj_123' },
    branch: { mode: 'explicit', name: 'feature/header-update' },
  },
})) {
  // Handle events...
}

API Reference

createV0Client(options)

Creates a new v0 client instance.

Options

  • token (required): Your v0 API token. Can be a string or an async function that returns a token.
  • baseUrl (optional): Custom base URL. Defaults to https://v0.app.
  • headers (optional): Custom headers to include in requests.

Client Methods

client.message.createStream(input)

Creates a streaming message to v0. Returns an async generator of StreamEvent.

client.git.branch.push(input)

Pushes changes to a branch.

client.git.pullRequest.create(input)

Creates a pull request with the generated changes.

client.git.deploymentStatus.get(input)

Gets the deployment status for a chat.

Types

All types are exported from the package:

import type {
  V0ClientOptions,
  StreamEvent,
  CreateStreamInput,
  SandboxConfig,
  RemoteConfig,
  MCPTool,
  CreatePullRequestInput,
  CreatePullRequestResult,
  PushToBranchInput,
  PushToBranchResult,
  GetDeploymentStatusInput,
  GetDeploymentStatusResult,
  DeploymentStatus,
  ProgrammaticFlags,
  ComposedProgrammaticResult,
} from '@vercel/v0'

License

MIT