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

@questify/core

v1.0.2

Published

Headless, zero-dependency questionnaire engine. Works with React, Vue, Svelte, or vanilla JS.

Readme

@questify/core

Questify — headless, zero-dependency questionnaire engine for the web.

npm version bundle size license TypeScript

Live demo → questify.renderlog.in


This package is a pure TypeScript state machine for multi-step forms and surveys. It ships zero runtime dependencies and zero UI — you control every pixel. Framework adapters for React and Vue are included.

Install

npm install @questify/core

React

import { useQuestionnaire } from '@questify/core/react';

const questions = [
  { id: 'name',   text: "What's your name?",  type: 'text',   required: true },
  { id: 'rating', text: 'Rate us 1–5',         type: 'rating', required: true },
  {
    id: 'feedback',
    text: 'What could be improved?',
    type: 'text',
    showIf: { questionId: 'rating', value: 3, operator: 'lte' },
  },
];

function Survey() {
  const { question, answer, next, back, progress, isComplete, canGoNext, canGoBack } =
    useQuestionnaire({ questions });

  if (!question) return null;

  return (
    <div>
      <progress value={progress} max={1} />
      <h2>{question.text}</h2>

      {/* render your own inputs — questify ships no UI */}
      {question.type === 'text' && (
        <input onChange={(e) => answer(e.target.value)} />
      )}

      <button onClick={back} disabled={!canGoBack}>Back</button>
      {canGoNext
        ? <button onClick={next}>Next</button>
        : <button disabled={!isComplete}>Submit</button>
      }
    </div>
  );
}

Vue 3

<script setup lang="ts">
import { useQuestionnaire } from '@questify/core/vue';
const { question, answer, next, back, progress, isComplete } =
  useQuestionnaire({ questions });
</script>

<template>
  <div v-if="question">
    <progress :value="progress" :max="1" />
    <h2>{{ question.text }}</h2>
    <input v-if="question.type === 'text'" @input="e => answer(e.target.value)" />
    <button @click="back">Back</button>
    <button @click="next">Next</button>
  </div>
</template>

Vanilla JS

import { Questionnaire } from '@questify/core';

const q = new Questionnaire({ questions });

const unsubscribe = q.subscribe((state) => {
  console.log(state.question?.text, state.progress);
});

q.answer('Alice');
q.next();
unsubscribe();

Question types

text · email · number · boolean · single · multi · rating · date

Conditional logic — showIf

// Simple
showIf: { questionId: 'smoker', value: true }

// With operator
showIf: { questionId: 'rating', value: 3, operator: 'lte' }

// Compound AND
showIf: {
  and: [
    { questionId: 'age',    value: 18, operator: 'gte' },
    { questionId: 'smoker', value: true },
  ],
}

// Compound OR — nestable to any depth
showIf: {
  or: [
    { questionId: 'urgent', value: true },
    { and: [{ questionId: 'score', value: 5, operator: 'lte' }] },
  ],
}

Operators: eq · neq · gt · lt · gte · lte · includes

API

Hook / composable return value

| Property | Type | Description | |---|---|---| | question | Question \| null | Current question (step mode) | | visibleQuestions | Question[] | All visible questions after resolving showIf | | progress | number (0–1) | Fraction of visible questions answered | | responses | Record<string, unknown> | All answers so far | | errors | Record<string, string> | Validation errors for visible questions | | isComplete | boolean | All required visible questions answered & valid | | answer(value) | fn | Answer current question (step mode) | | answerById(id, value) | fn | Answer any question by id (all mode) | | next() | fn | Advance (validates required first) | | back() | fn | Go back one step | | jumpTo(index) | fn | Jump to a step by index | | validate() | fn | Validate all visible fields, returns errors | | reset() | fn | Clear all answers and restart | | getSubmittableResponses() | fn | Responses for visible questions only — safe for submission |

Modes

| Mode | Use case | |---|---| | step (default) | Wizard — one question at a time | | all | Show all questions simultaneously (accordion, long-form) |

Built-in validation

  • required — whitespace-only treated as empty
  • min / max — for number and rating
  • minLength / maxLength — for text and email
  • regex — for text
  • email format — always validated automatically for type: "email"
  • date format — YYYY-MM-DD enforced automatically for type: "date"
  • number — rejects NaN and ±Infinity

More tools by Renderlog

Sister tools from the same ecosystem (icons are each app’s favicon.svg, vendored under assets/tool-icons/ for this readme):

| | Tool | Link | |:-:|---|---| | | Calc | calc.renderlog.in | | | PDF | pdf.renderlog.in | | | Image | image.renderlog.in | | | JSON | json.renderlog.in | | | Text | text.renderlog.in | | | Notepad | notepad.renderlog.in | | | QR | qr.renderlog.in | | | Renderlog | renderlog.in |

License

MIT © Ashish Kumar