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

@kodeme-io/next-core-ui

v0.8.4

Published

UI component library for Next.js + Odoo applications

Readme

@next-odoo/ui

UI component library for Next.js + Odoo applications with dark mode, i18n, and mobile-first design.

Features

  • ShadCN UI Components - 21 customizable Radix UI components
  • Dark Mode - Built-in theme support with next-themes
  • Internationalization - EN/ID translations with type-safe keys
  • Mobile Components - Touch-friendly bottom navigation and headers
  • Responsive Design - Mobile-first with Tailwind CSS
  • Type Safety - 100% TypeScript with full type definitions

Installation

pnpm add @next-odoo/ui

Peer Dependencies

pnpm add react react-dom next

Usage

UI Components

import { Button, Card, Dialog } from '@next-odoo/ui'

export function MyComponent() {
  return (
    <Card>
      <Button variant="default">Click me</Button>
    </Card>
  )
}

Dark Mode

import { ThemeProvider, ThemeToggle } from '@next-odoo/ui'

export function App() {
  return (
    <ThemeProvider attribute="class" defaultTheme="system">
      <ThemeToggle />
      {/* Your app */}
    </ThemeProvider>
  )
}

Internationalization

import { useTranslation, useLanguageStore } from '@next-odoo/ui'

export function MyComponent() {
  const { t, locale, setLocale } = useTranslation()

  return (
    <div>
      <p>{t('common.welcome')}</p>
      <button onClick={() => setLocale('id')}>Bahasa</button>
      <button onClick={() => setLocale('en')}>English</button>
    </div>
  )
}

Mobile Components

import { BottomNav, MobileHeader } from '@next-odoo/ui'

export function MobileLayout() {
  return (
    <>
      <MobileHeader title="Dashboard" />
      {/* Content */}
      <BottomNav />
    </>
  )
}

Import Styles

Add to your app/layout.tsx or _app.tsx:

import '@next-odoo/ui/styles'

Tailwind Configuration

Extend your tailwind.config.js:

module.exports = {
  content: [
    './src/**/*.{js,ts,jsx,tsx}',
    './node_modules/@next-odoo/ui/dist/**/*.{js,mjs}',
  ],
  theme: {
    extend: {
      // Copy theme configuration from @next-odoo/ui
    },
  },
  plugins: [require('tailwindcss-animate')],
}

Components

UI Components

  • Alert, AlertDialog
  • Badge, Button
  • Card, Checkbox
  • Dialog, DropdownMenu
  • Form, Input, Label
  • LoadingSpinner, NumberInput
  • Progress, RadioGroup
  • Select, Skeleton
  • Tabs, Textarea, Tooltip

Mobile Components

  • BottomNav - Bottom navigation bar
  • MobileHeader - Mobile page header

Theme Components

  • ThemeProvider - Theme context provider
  • ThemeToggle - Light/Dark/System mode toggle

Translation Keys

The i18n system provides type-safe translation keys:

// Type-safe keys with autocomplete
t('common.save')
t('customer.status.approved')
t('visit.objectives.canvas')

// With variable interpolation
t('visit.checkInAt', { location: 'Store A' })

Customization

All components use CSS variables for theming. Override in your globals.css:

:root {
  --primary: 222.2 47.4% 11.2%;
  --primary-foreground: 210 40% 98%;
  /* ... */
}

.dark {
  --primary: 210 40% 98%;
  --primary-foreground: 222.2 47.4% 11.2%;
  /* ... */
}

License

MIT