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

dokio-create-template

v1.1.6

Published

CLI tool to scaffold Dokio templates (general, pdf, email, video)

Readme

dokio-create-template (TypeScript)

🚀 CLI tool to quickly scaffold Dokio templates

Generate starter templates for Dokio in seconds with all the necessary files and configurations.

Features

4 Template Types - General (Image), PDF, Email, Video
🎨 Interactive CLI - Beautiful prompts guide you through setup
📝 Complete Files - HTML, SCSS, YAML, CHANGELOG generated automatically
TypeScript Support - Full type safety and IDE autocomplete
🔧 Ready to Use - Upload generated files directly to Dokio

Installation

npm install -g dokio-create-template

Or use without installing:

npx dokio-create-template

Usage

Simply run the command and follow the prompts:

dokio-create-template

The CLI will ask you:

  1. What type of template (General, PDF, Email, Video)
  2. Template name
  3. Template ID (auto-generated from name)
  4. Subdomain
  5. Output directory

For PDF templates, you'll also choose:

  • Prince version (11 or 15)
  • Whether it's resizable
  • Whether it has dynamic page count

Example

$ dokio-create-template

🚀 Dokio Template Generator

? What type of template do you want to create? PDF
? Template name: Marketing Brochure
? Template ID (slug): marketing-brochure
? Subdomain: production
? Output directory: ./marketing-brochure
? Prince version: 15
? Is this a resizable template? No
? Will this template have dynamic page count? Yes

✔ Template created successfully!

📁 Files created:
   ./marketing-brochure/index.html
   ./marketing-brochure/style.scss.hbs
   ./marketing-brochure/data.yaml
   ./marketing-brochure/CHANGELOG.md

✨ Next steps:
   cd marketing-brochure
   Start customizing your template files
   Upload to Dokio when ready

Template Types

General (Image)

Perfect for social media graphics, banners, and thumbnails.

  • Export formats: JPG, PNG
  • Default size: 400x400px (customizable)

PDF

Ideal for brochures, flyers, certificates, and reports.

  • Export formats: Hi-res PDF, Low-res PDF, Print-ready with crop marks
  • Prince XML: Versions 11 or 15 support
  • Features: Headers, footers, page numbers

Email

Great for newsletters, marketing emails, and transactional emails.

  • Responsive: Works on desktop and mobile
  • Compatible: Outlook and Gmail tested
  • Export formats: Standalone HTML, Hosted HTML, URL
  • Accessible: Built-in accessibility features

Video

Best for social media videos, ads, and animations.

  • Resolution: 1920x1080 (Full HD)
  • Duration: 30 seconds (default)
  • Export format: 1080p video

What Gets Generated

Each template includes 4 files:

  1. index.html - Template markup with Handlebars syntax
  2. style.scss.hbs - SCSS styles with Handlebars support
  3. data.yaml - Field definitions and template configuration
  4. CHANGELOG.md - Version history

Customizing Your Template

After generation:

  1. Navigate to your template directory
  2. Edit the files to match your needs
  3. Upload to Dokio Hub
  4. Test in Dokio Studio

For detailed customization help, see the Dokio Developer Reference.

TypeScript Support

If you're using TypeScript in your own projects, this package exports helpful types:

import type { TemplateType, TemplateConfig } from "dokio-create-template";

// TemplateType = 'general' | 'pdf' | 'email' | 'video'

Getting Help

License

MIT

Credits

Created by Jake Lourence Villar for Dokio