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

losta

v0.1.8

Published

A revolutionary React-like framework with unique modular architecture, built-in theme system, and modern development experience

Readme

�� Losta Framework

A revolutionary React-like framework with unique modular architecture, built-in theme system, and modern development experience.

✨ Features

  • ⚡ JSX Support - Modern JSX syntax with automatic runtime
  • 🎯 Virtual DOM - Efficient DOM diffing and updates
  • 🪝 React-like Hooks - useState, useEffect, useRef, useMemo, useCallback
  • 🎨 Component-Scoped CSS - Each component has its own styles
  • 🌙 Built-in Theme System - Dark/light mode with automatic persistence
  • 📱 Responsive Design - Mobile-first approach
  • 🔧 TypeScript Support - Full TypeScript integration
  • 🔥 Hot Module Replacement - Instant development updates
  • 🎭 Advanced Animations - CSS animations and transitions
  • 🛠️ Professional CLI - Create projects with language choice

🚀 Quick Start

Install Losta Framework

npm install -g losta

Create a New Project

# Create JavaScript project
losta create my-app js

# Create TypeScript project
losta create my-app ts

# Default (JavaScript)
losta create my-app

Run Your Project

cd my-app
npm install
npm run dev

📁 Project Structure

my-app/
├── package.json           # Project configuration
├── index.html            # Entry HTML file (self-contained demo)
├── losta.config.js       # Framework configuration
├── .eslintrc.cjs         # ESLint configuration
├── .gitignore            # Git ignore rules
├── README.md             # Project documentation
└── src/                  # Source code
    ├── main.jsx          # Entry point
    ├── pages/
    │   └── App.jsx       # Main app component
    ├── components/       # Reusable components
    ├── hooks/            # Custom hooks
    ├── utils/            # Utility functions
    ├── styles/           # CSS files
    ├── assets/           # Static assets
    └── types/            # TypeScript types

🎯 What You'll See

Self-Contained Demo Features:

  • Interactive Counter - Click increment/decrement
  • Theme Toggle - Switch between dark/light mode
  • Responsive Design - Works on mobile and desktop
  • Smooth Animations - CSS transitions and effects
  • Component Examples - Header, Footer, Counter components

🔧 Development Commands

npm run dev      # Start development server
npm run build    # Build for production
npm run preview  # Preview production build
npm run lint     # Run ESLint
npm run typecheck # TypeScript type checking

🌟 Unique Features

Modular Architecture

  • Organized by feature/type (pages, components, hooks, utils, styles)
  • Clear separation of concerns
  • Easy to scale and maintain

Built-in Theme System

  • Automatic dark/light mode detection
  • Persistent theme preferences
  • CSS custom properties for easy theming

Component-Scoped CSS

  • Each component has its own CSS file
  • Scoped styles prevent conflicts
  • Integrated with theme system

Custom Hooks

  • Reusable logic with useTheme hook
  • Easy to create custom hooks
  • Follows React hooks patterns

Utility Functions

  • Shared formatting helpers
  • Debouncing utilities
  • Common development tools

📚 Documentation

🛠️ CLI Commands

losta create <app-name> [js|ts]  # Create new project
losta dev                        # Start development server
losta build                      # Build for production
losta preview                    # Preview production build
losta help                       # Show help information

🎨 Example Components

Counter Component

class Counter extends Component {
  constructor(props) {
    super(props);
    this.state = { count: 0 };
  }
  
  increment = () => {
    this.setState({ count: this.state.count + 1 });
  }
  
  render() {
    return createElement('div', { className: 'counter' },
      createElement('h2', {}, 'Counter'),
      createElement('div', {}, this.state.count),
      createElement('button', { onClick: this.increment }, 'Increment')
    );
  }
}

Theme Hook

function useTheme() {
  const [theme, setTheme] = useState('light');
  
  const toggleTheme = () => {
    const newTheme = theme === 'light' ? 'dark' : 'light';
    setTheme(newTheme);
    localStorage.setItem('theme', newTheme);
  };
  
  return { theme, toggleTheme };
}

🔥 Hot Module Replacement

Losta Framework includes built-in HMR for instant development updates:

  • Instant Updates - Changes reflect immediately
  • State Preservation - Component state is maintained
  • Error Recovery - Automatic error handling
  • Fast Refresh - Optimized for React-like components

📱 Mobile-First Design

  • Responsive Layout - Works on all screen sizes
  • Touch-Friendly - Optimized for mobile interactions
  • Performance Optimized - Fast loading and smooth animations
  • Accessibility - Built with accessibility in mind

🎭 Advanced Animations

  • CSS Transitions - Smooth state changes
  • Keyframe Animations - Complex animation sequences
  • Performance Optimized - Hardware-accelerated animations
  • Theme-Aware - Animations adapt to theme changes

🚀 Production Ready

  • Optimized Builds - Minified and optimized output
  • Tree Shaking - Remove unused code
  • Code Splitting - Load only what's needed
  • Performance Monitoring - Built-in performance metrics

🤝 Contributing

We welcome contributions! Please see our contributing guidelines for more information.

📄 License

MIT License - see LICENSE file for details.


🎉 Start building amazing web applications with Losta Framework!