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

veko

v1.2.25

Published

Ultra-lightweight Node.js framework with ZERO dependencies - VSV components, Tailwind CSS, asset imports, SSR

Readme


Fonctionnalites

| Fonctionnalite | Description | |----------------|-------------| | Zero Dependances | Aucun package npm requis - Node.js pur | | VSV Components | Composants .jsv/.tsv avec JSX, SSR natif, hydratation selective | | Asset Imports | Import CSS, images, JS, fonts dans les composants (comme React) | | Tailwind CSS | Moteur Tailwind integre, zero config, genere uniquement le CSS utilise | | SSR Natif | Server-Side Rendering sans configuration | | Securite | Headers securises, rate limiting, protection XSS integres | | PHP Templates | Support de templates PHP-like pour le prototypage rapide | | Serveur HTTP Pur | Node.js http natif, pas d Express |

Installation

npm install veko

C est tout. Zero dependances a installer.

Prerequis : Node.js >= 18.0.0

Demarrage Rapide

API Simple

const { createApp } = require('veko');

const app = createApp({ port: 3000 });

app.get('/', (req, res) => {
  res.json({ message: 'Hello Veko!' });
});

app.post('/api/users', (req, res) => {
  res.status(201).json({ user: req.body });
});

app.listen();

Application VSV Avec Tailwind

const { createVSVApp } = require('veko');

async function main() {
  const app = await createVSVApp({
    port: 3000,
    tailwind: true
  });

  app.vsvRoute('/', 'Home', {
    title: 'Accueil',
    getProps: async (req) => ({
      message: 'Hello World!'
    })
  });

  app.listen();
}

main();

VSV Components

Composant .jsv

// components/Home.jsv
import './styles/home.css';
import logo from './images/logo.png';

export default function Home({ title, message }) {
  const [count, setCount] = $state(0);

  return (
    <div class="flex flex-col items-center p-8">
      <img src={logo} alt="Logo" class="w-32 mb-4" />
      <h1 class="text-3xl font-bold text-gray-900">{title}</h1>
      <p class="text-gray-500 mt-2">{message}</p>
      <button
        class="mt-4 px-6 py-2 bg-blue-500 text-white rounded-lg hover:bg-blue-600 transition"
        $click={() => setCount(c => c + 1)}
      >
        Clicks: {count()}
      </button>
    </div>
  );
}

Composant TypeScript .tsv

// components/Card.tsv
interface CardProps {
  title: string;
  description: string;
  image?: string;
}

export default function Card({ title, description, image }: CardProps) {
  return (
    <div class="max-w-sm rounded-xl shadow-lg overflow-hidden bg-white">
      {image && <img src={image} alt={title} class="w-full h-48 object-cover" />}
      <div class="p-6">
        <h2 class="text-xl font-bold mb-2">{title}</h2>
        <p class="text-gray-600">{description}</p>
      </div>
    </div>
  );
}

Directives Reactives

| Directive | Description | Exemple | |-----------|-------------|---------| | $state | Etat reactif | const [val, setVal] = $state(0) | | $computed | Valeur derivee | const double = $computed(() => val() * 2) | | $effect | Effets de bord | $effect(() => console.log(val())) | | $ref | Reference DOM | const el = $ref(null) | | $memo | Memoisation | const cached = $memo(() => heavy()) |

Asset Imports

Importez des fichiers directement dans vos composants comme dans React :

import './styles.css';           // CSS injecte automatiquement
import logo from './logo.png';   // Image -> URL servie
import './analytics.js';         // Script injecte

| Type | Extensions | |------|-----------| | CSS | .css, .scss, .sass, .less | | Images | .png, .jpg, .jpeg, .gif, .svg, .ico, .webp, .avif | | Fonts | .woff, .woff2, .ttf, .eot, .otf | | Scripts | .js, .mjs |

Tailwind CSS Integre

Activez Tailwind CSS sans aucune installation supplementaire :

const app = await createVSVApp({ tailwind: true });

Supporte : toutes les classes utilitaires, responsive (sm:, md:, lg:, xl:), dark mode (dark:), etats (hover:, focus:, active:), directive @apply.

Structure du Projet

mon-projet/
+-- app.js                 # Point d entree
+-- package.json
+-- components/            # Composants VSV
|   +-- Home.jsv
|   +-- Header.jsv
|   +-- styles/
|   |   +-- global.css
|   +-- images/
|       +-- logo.png
+-- pages/                 # Pages VSV
|   +-- Home.jsv
|   +-- About.jsv
+-- public/                # Fichiers statiques
|   +-- css/
|   +-- js/
|   +-- images/
+-- plugins/               # Plugins custom
+-- .veko/                 # Cache (auto)

Securite

Securite integree par defaut, sans dependances :

  • Headers securises automatiques (X-Content-Type-Options, X-Frame-Options, X-XSS-Protection)
  • Rate limiting integre
  • Body parsing securise avec erreurs 400
  • Protection path traversal sur les fichiers statiques
  • HTML escaping dans les pages d erreur

Documentation

| Document | Description | |----------|-------------| | Guide de Demarrage | Installation et premier projet | | VSV Components | Composants, assets, Tailwind | | API Reference | Reference complete de l API | | Securite | Bonnes pratiques securite | | Plugins | Creer et utiliser des plugins | | Authentification | JWT, sessions, auth patterns |

Contribution

git clone https://github.com/wiltark/veko.js.git
cd veko.js
npm test

Licence

MIT - Wiltark