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

@netpad/templates

v1.0.1

Published

100+ production-ready form templates for NetPad applications

Downloads

11

Readme

@netpad/templates

100+ production-ready form templates for NetPad applications

npm version License: Apache-2.0

Installation

npm install @netpad/templates

Quick Start

import { allTemplates, getTemplateById, searchTemplates } from '@netpad/templates';

// Get all templates
console.log(`${allTemplates.length} templates available`);

// Find a specific template
const contactForm = getTemplateById('contact-form');
console.log(contactForm?.name); // "Contact Form"

// Search templates
const healthcareTemplates = searchTemplates('healthcare');

Template Categories

| Category | Templates | Description | |----------|-----------|-------------| | Business & Sales | 8+ | Lead capture, vendor registration, sales inquiries | | HR & Recruitment | 8+ | Job applications, onboarding, employee forms | | Customer Service | 8+ | Support tickets, feedback, satisfaction surveys | | Marketing & Research | 7+ | Event registration, surveys, NPS | | Education & Training | 7+ | Course enrollment, student applications | | Healthcare & Wellness | 8+ | Patient intake, appointments, medical history | | Real Estate | 7+ | Property inquiries, tenant applications | | Legal & Compliance | 6+ | NDAs, contract reviews, DSAR | | Nonprofit & Community | 7+ | Donations, volunteer applications | | Events & Hospitality | 6+ | Event registration, RSVPs | | Technology & IT | 6+ | Bug reports, feature requests | | Finance & Accounting | 6+ | Expense reports, invoices | | Sports & Fitness | 7+ | Gym memberships, waivers | | Travel & Tourism | 7+ | Travel inquiries, bookings | | Government & Public | 6+ | Public records, permits |

API Reference

Template Access

import {
  allTemplates,           // All 100+ templates
  getTemplateById,        // Get single template by ID
  getTemplatesByCategory, // Filter by category
  getFeaturedTemplates,   // Get featured templates
  searchTemplates,        // Search by name/tags
  getTemplateCounts,      // Get count per category
  filterTemplates,        // Multi-criteria filter
} from '@netpad/templates';

Category-Specific Imports

import {
  businessSalesTemplates,
  hrRecruitmentTemplates,
  customerServiceTemplates,
  marketingResearchTemplates,
  educationTrainingTemplates,
  healthcareWellnessTemplates,
  realEstateTemplates,
  legalComplianceTemplates,
  nonprofitCommunityTemplates,
  eventsHospitalityTemplates,
  technologyItTemplates,
  financeAccountingTemplates,
  sportsFitnessTemplates,
  travelTourismTemplates,
  governmentPublicTemplates,
} from '@netpad/templates';

Type Imports

import type {
  FormTemplate,
  FieldConfig,
  FormTheme,
  FormTemplateCategory,
  TemplateComplexity,
  TemplateFormType,
} from '@netpad/templates';

Helper Functions

Create custom templates using the same builders:

import {
  createTemplate,
  textField,
  emailField,
  phoneField,
  selectField,
  textareaField,
  dateField,
  yesNoField,
  sectionHeader,
  THEME_PRESETS,
  getThemeForCategory,
} from '@netpad/templates/helpers';

const myTemplate = createTemplate({
  id: 'my-custom-form',
  name: 'My Custom Form',
  category: 'business-sales',
  shortDescription: 'A custom form for my needs',
  fieldConfigs: [
    sectionHeader('contact', 'Contact Information'),
    textField('name', 'Full Name', { required: true }),
    emailField('email', 'Email', true),
    phoneField('phone', 'Phone'),
    textareaField('message', 'Message', { required: true }),
  ],
});

Filtering Templates

import { filterTemplates } from '@netpad/templates';

// Filter by multiple criteria
const results = filterTemplates({
  category: 'healthcare-wellness',
  complexity: 'simple',
  featured: true,
  search: 'patient',
});

Template Structure

Each template includes:

interface FormTemplate {
  id: string;                    // Unique identifier
  name: string;                  // Display name
  shortDescription: string;      // Brief description
  fullDescription: string;       // Detailed description
  category: FormTemplateCategory;
  formType: 'traditional' | 'conversational' | 'hybrid';
  complexity: 'simple' | 'moderate' | 'advanced';
  estimatedTime: number;         // Minutes to complete
  icon: string;                  // Lucide icon name
  tags: string[];                // Searchable tags
  isFeatured: boolean;
  fieldConfigs: FieldConfig[];   // Form fields
  theme: FormTheme;              // Styling
  // ... additional properties
}

Field Types

Templates support 20+ field types:

  • Text: string, email, phone, url, textarea
  • Selection: select, multiselect, radio, checkbox
  • Date/Time: date, time, datetime
  • Numbers: number, currency, rating, scale
  • Boolean: boolean (yes/no toggle)
  • Files: file, image, signature
  • Location: address
  • Layout: section-header, description, divider

Theme Presets

Industry-specific themes included:

import { THEME_PRESETS, getThemeForCategory } from '@netpad/templates/helpers';

// Get theme for a category
const theme = getThemeForCategory('healthcare-wellness');

// Available presets
Object.keys(THEME_PRESETS);
// ['professional', 'healthcare', 'education', 'creative', 'tech',
//  'nonprofit', 'realEstate', 'government', 'travel', 'sports',
//  'hr', 'support', 'events', 'finance']

Contributing

Templates are defined in src/definitions/ organized by category. Each template uses the createTemplate() factory and field builder functions for consistency.

License

Apache-2.0