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

astro-journey

v0.1.5

Published

A minimal, data-driven timeline component for Astro. Perfect for personal portfolios, changelogs, and career journeys.

Readme

astro-journey

npm version npm downloads license TypeScript Astro

A timeline component for Astro that makes your changelog intuitive - entries are spaced based on actual time gaps, so recent changes appear closer together and older ones spread apart.

Supports multiple date formats and adapts to any theme. Perfect for portfolios, changelogs, and career journeys.

Table of Contents

Installation

npm install astro-journey

Quick Start

Demo Screenshot

---
import Timeline from 'astro-journey/Timeline.astro';
import 'astro-journey/styles.css';

const journeyItems = [
  {
    date: '2024-08',
    title: 'Senior Backend Engineer',
    description: 'Leading API architecture and system design for scalable microservices.',
    link: 'https://example.com/backend',
    image: 'https://picsum.photos/400/200'
  },
  {
    date: 'July 31, 2024',
    title: 'Promoted to Tech Lead',
    description: 'Started leading a team of 5 engineers.'
  },
  {
    date: '2023-06-13',
    title: 'ML Engineer',
    description: 'Built recommendation systems and deployed ML models to production.',
    image: '/machinelearning.jpg'
  },
  {
    date: 'Mar 15, 2020',
    title: 'Full Stack Developer',
    description: 'Developed web applications using React, Node.js, and PostgreSQL.',
    image: 'https://picsum.photos/200/400'
  },
  {
    date: '2018',
    title: 'Computer Science Degree',
    description: 'Graduated with honors, focused on distributed systems.'
  }
];
---

<Timeline items={journeyItems} />

Go to the demo for a complete example.

API Reference

Date Formats

Supports multiple formats (newest date first):

| Format | Example | |--------|---------| | YYYY-MM-DD | 2024-06-15 | | YYYY-MM | 2024-06 | | YYYY | 2024 | | MMMM YYYY | June 2024 | | MMM YYYY | Jun 2024 | | MMMM D, YYYY | June 15, 2024 | | MMM D, YYYY | Jun 15, 2024 |

Mix formats freely - the component parses and calculates gaps automatically.

Timeline Entry

| Prop | Type | Required | Description | |------|------|----------|-------------| | date | string | Yes | Date in supported format | | title | string | Yes | Entry title | | description | string | No | Entry description | | link | string | No | URL (opens in new tab) | | image | string | No | Image URL or path |

interface TimelineEntry {
  date: string;
  title: string;
  description?: string;
  link?: string;
  image?: string;
}

Timeline Component

| Prop | Type | Default | Description | |------|------|---------|-------------| | items | TimelineEntry[] | [] | Array of timeline entries | | class | string | - | Additional CSS class | | lineColor | string | #d1d5db | Connector line color | | dotColor | string | #6b7280 | Dot marker color | | titleColor | string | inherit | Title text color | | titleHover | string | #3b82f6 | Title hover color | | descColor | string | inherit | Description text color | | dateColor | string | inherit | Date text color |

Example with custom colors:

<Timeline
  items={items}
  lineColor="#8b5cf6"
  dotColor="#8b5cf6"
  titleColor="#7c3aed"
  titleHover="#a78bfa"
  descColor="#6b7280"
  dateColor="#9ca3af"
/>

Styling

The component uses CSS custom properties with --aj- prefix for easy customization:

| Property | Default | Description | |----------|---------|-------------| | --aj-dot-size | 8px | Size of the dot marker | | --aj-dot-color | #6b7280 | Dot marker color | | --aj-line-width | 2px | Width of connector line | | --aj-line-color | #d1d5db | Connector line color | | --aj-spacing | 1.5rem | Base spacing unit | | --aj-content-gap | 1rem | Gap between marker and content | | --aj-title-color | inherit | Title text color | | --aj-title-hover-color | #3b82f6 | Title hover color | | --aj-desc-color | inherit | Description text color | | --aj-date-color | inherit | Date text color |

Example:

.aj-timeline {
  --aj-dot-size: 10px;
  --aj-dot-color: #8b5cf6;
  --aj-line-width: 3px;
  --aj-line-color: #8b5cf6;
  --aj-title-color: #7c3aed;
  --aj-title-hover-color: #a78bfa;
}

Spacing Algorithm

The timeline calculates spacing based on actual date differences:

  • 1 month gap = ~1rem padding
  • 6 month gap = ~6rem padding
  • Gaps < 1 month = 0.5rem minimum
  • Gaps > 8 months = 8rem maximum

This creates a visual representation of time - recent activity clusters together while older entries spread out.

Versioning

Published versions are tagged as v* (e.g., v0.1.0, v0.2.0). The master branch may contain unreleased features.

To see the source code for a specific published version, check the tags or releases.

Contributing

Contributions are welcome! Here's how to get started:

  1. Fork the repository

  2. Clone and install

    git clone https://github.com/uray-lu/astro-journey.git
    cd astro-journey
    npm install
  3. Create a feature branch

    git checkout -b feat/your-feature
  4. Make your changes

    • Run tests: npm test
    • Run build: npm run build
    • Verify demo works: cd demo && npm install && npm run dev
    • Make sure the demo runs without errors before submitting
  5. Commit and push

    git commit -m "feat: your feature description"
    git push origin feat/your-feature
  6. Open a Pull Request

    • PRs require passing CI checks
    • PRs require review before merging
    • After opening PR, contact me via by the email on my profile for review

License

MIT