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

@delkon/apple-letters

v0.1.1

Published

`@delkon/apple-letters` is a Vue 3 handwritten text library built around a small engine-first core.

Downloads

36

Readme

Apple Letters

@delkon/apple-letters is a Vue 3 handwritten text library built around a small engine-first core.

It gives you two layers:

  • a thin Letters Vue component for direct rendering
  • a lower-level engine API for custom SVG or animation workflows

Install

pnpm add @delkon/apple-letters

vue is a peer dependency.

Quick Start

<script setup lang="ts">
import { Letters } from '@delkon/apple-letters'
</script>

<template>
  <Letters text="hello" color="#1f2937" />
</template>

Common Usage

Control draw progress

<script setup lang="ts">
import { computed, ref } from 'vue'
import { Letters } from '@delkon/apple-letters'

const progress = ref(0.4)
const percentage = computed(() => `${Math.round(progress.value * 100)}%`)
</script>

<template>
  <Letters text="hello" :progress="progress" color="currentColor" />
  <input v-model.number="progress" type="range" min="0" max="1" step="0.01" />
  <span>{{ percentage }}</span>
</template>

Tune stroke style

<script setup lang="ts">
import { Letters } from '@delkon/apple-letters'
</script>

<template>
  <Letters
    text="bonjour"
    color="#b45309"
    :stroke-width="2.4"
    variant="simple"
    :overlap="0.04"
  />
</template>

Use the composable in your own component

<script setup lang="ts">
import { computed, ref } from 'vue'
import { useLettersRender } from '@delkon/apple-letters'

const progress = ref(0.65)

const model = useLettersRender(
  computed(() => ({
    text: 'engine',
    progress: progress.value,
    color: '#111827',
    strokeWidth: 2,
  })),
)
</script>

<template>
  <svg :viewBox="model.svg.viewBox" fill="none">
    <path
      v-for="item in model.paths"
      :key="item.key"
      :d="item.d"
      :stroke="item.stroke"
      :stroke-width="item.strokeWidth"
      :stroke-dasharray="item.strokeDasharray"
      :stroke-dashoffset="item.strokeDashoffset"
      :stroke-linecap="item.linecap"
      :stroke-linejoin="item.linejoin"
      pathLength="1"
      fill="none"
    />
    <circle
      v-for="item in model.dots"
      :key="item.key"
      :cx="item.translateX != null ? item.cx + item.translateX : item.cx"
      :cy="item.cy"
      :r="item.r"
      :fill="item.fill"
      :opacity="item.opacity"
    />
  </svg>
</template>

Use the engine directly

import { createLettersRenderModel } from '@delkon/apple-letters'

const model = createLettersRenderModel({
  text: 'hello',
  progress: 0.5,
  color: '#2563eb',
  strokeWidth: 2,
})

console.log(model.svg.viewBox)
console.log(model.paths)
console.log(model.dots)

API

import {
  Letters,
  createLettersRenderModel,
  layoutText,
  useLettersRender,
} from '@delkon/apple-letters'

Letters

The default Vue component for rendering handwritten SVG paths.

Supported props:

  • text: string
  • progress?: number
  • strokeWidth?: number
  • color?: string
  • variant?: 'simple' | 'complex'
  • overlap?: number
  • opts?: SmoothingOptions

useLettersRender

Turns reactive input into a computed render model. Useful when you want full control over SVG rendering while staying inside Vue reactivity.

createLettersRenderModel

Framework-agnostic engine entry. Returns:

  • svg
  • paths
  • dots

This is the best choice when you want to build your own renderer or feed the geometry into another animation system.

layoutText

Lower-level layout helper for advanced use cases. Most consumers will not need it directly.

Notes

  • progress is expected to be between 0 and 1
  • variant="simple" is the default
  • color defaults to currentColor
  • strokeWidth defaults to 2
  • overlap defaults to 0.02

Development

pnpm install
pnpm dev
pnpm build
  • pnpm dev runs the local demo
  • pnpm build emits the publishable library bundles and type declarations into dist/

Reference

Inspired by @kumailnanji/letters: https://github.com/kumailnanji/letters