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

flip-clock-app

v1.0.22

Published

A minimalist, open-source desktop flip clock built with Tauri

Readme

flip-clock


Features

  • Pure CSS Flip Animation - No external dependencies, smooth 3D transforms
  • 10 Beautiful Themes - Dark, Light, Sepia, Blue, Forest, Sunset, Midnight, Ocean, Rose, Slate
  • 12h / 24h Toggle - Switch time formats with one click
  • Lunar Calendar (农历) - Display Chinese lunar date
  • Custom Motto - Add your own daily quote
  • Native Fullscreen - Real fullscreen support on macOS
  • Local-first - No cloud, no telemetry

Tech Stack

  • Tauri 2 - Native desktop framework
  • Rust - Application backend
  • Pure CSS/JS - Flip clock animation (no jQuery, no external libraries)

Quick Start

Prerequisites

  • Rust 1.70+
  • Node.js 18+ (for frontend development, optional)
  • macOS, Windows, or Linux

Build & Run

# Build the application
cargo build

# Run in development mode
cargo run

# Build release version
cargo build --release

Run the Built Binary

# macOS/Linux
./src-tauri/target/debug/flip-clock

# Or from the src-tauri directory
cd src-tauri && cargo run

Install from npm

You can also install the prebuilt binary directly via npm:

# Install globally
npm install -g flip-clock-app

# Or install locally and run with npx
npm install flip-clock-app
npx flip-clock

Supported platforms: macOS (Intel/Apple Silicon), Linux (x64), Windows (x64).

Configuration

Configuration is stored at:

  • macOS/Linux: ~/.flip-clock/config.json
  • Windows: %USERPROFILE%\.flip-clock\config.json

Default config:

{
  "motto": "君子三思而后行",
  "theme": "dark",
  "style": "with-seconds",
  "timeFormat": "24h",
  "showDate": true,
  "showSeconds": true,
  "showLunar": false,
  "showMotto": true
}

Keyboard Shortcuts

| Shortcut | Action | |----------|--------| | F11 | Toggle fullscreen | | Ctrl/Cmd + , | Open settings | | Escape | Close settings |

Project Structure

flip-clock/
├── Cargo.toml              # Rust workspace
├── package.json            # npm package metadata
├── bin/
│   └── flip-clock.js       # npm entrypoint wrapper
├── scripts/
│   ├── postinstall.js      # Copies binary to ~/.flip-clock/bin
│   ├── preuninstall.js     # Cleans up ~/.flip-clock/bin
│   └── build-npm-packages.js  # Builds platform npm packages
├── src-tauri/
│   ├── Cargo.toml          # Tauri app config
│   ├── build.rs            # Build script
│   ├── tauri.conf.json     # Tauri configuration
│   ├── capabilities/        # Permissions
│   ├── icons/              # App icons
│   └── src/
│       ├── main.rs         # Entry point + Tauri commands
│       └── config.rs       # Config management
└── frontend/
    ├── index.html          # Main HTML
    ├── styles.css          # Pure CSS (themes + flip animation)
    └── clock.js            # Pure JS clock logic

Themes

| Theme | Description | |-------|-------------| | dark | Deep black background | | light | Clean white background | | sepia | Warm vintage tone | | blue | Cool blue palette | | forest | Natural green tones | | sunset | Warm orange/red | | midnight | Purple night sky | | ocean | Teal ocean waves | | rose | Soft pink tones | | slate | Neutral gray |

CI/CD

This project uses GitHub Actions for continuous integration and release automation.

Workflows

CI Workflow (.github/workflows/ci.yml)

Runs on every push to main/master and on pull requests:

| Job | Description | |-----|-------------| | lint | Code formatting check and Clippy linting | | test | Unit tests via cargo test | | build-check | Cross-platform build verification (Linux, Windows, macOS) |

Release Workflow (.github/workflows/release.yml)

Triggered by:

  • Pushing a version tag (git tag v* and push)
  • Manual trigger via workflow_dispatch

Builds and packages:

  • Linux: Standalone binary
  • Windows: NSIS installer
  • macOS: Universal DMG (arm64 + x86_64)

Artifacts are uploaded to GitHub Releases as draft releases.

Running Locally

# Build with Tauri (produces native binaries)
cd src-tauri
cargo tauri build

# Or use the build script (includes DMG icon fix)
./scripts/build.sh

Creating a Release

# Update version in:
# - src-tauri/Cargo.toml
# - src-tauri/tauri.conf.json
# - package.json

# Create and push a tag
git tag v1.0.0
git push origin v1.0.0

The release workflow will automatically:

  1. Build for all platforms
  2. Package macOS DMG as universal binary
  3. Create a draft GitHub Release with artifacts
  4. Publish platform-specific binary packages and the main package to npm

Note: Publishing to npm requires an NPM_TOKEN repository secret.

License

MIT License