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 🙏

© 2025 – Pkg Stats / Ryan Hefner

laibhari

v1.0.7

Published

A lightweight Node.js framework in Marathi language

Downloads

15

Readme

Laibhari

Laibhari is a minimalist JavaScript framework for building HTTP servers. It is designed with Marathi method names and error messages for an immersive Marathi programming experience. This framework allows you to define middlewares, routes, and handle requests and errors in Marathi.

Features

  • Middleware Support: Define and use middlewares to process requests.
  • Route Handling: Define GET and POST routes for your server.
  • Custom Error Handling: Customize error responses.
  • Charset Support: Automatically sets charset to UTF-8 for all responses.
  • Custom Logging: Use the पहा function for logging messages.

Installation

To install the package, use npm:

npm install laibhari

# Usage
# Here is a basic example of how to use Laibhari:


const Laibhari = require('laibhari');
const app = new Laibhari();

app.वापरा((req, res, next) => {
  पाहा(`${req.method} ${req.url}`);
  next();
});

app.मिळवा('/', (req, res) => {
  res.end('नमस्कार, हे माझं API आहे');
});

app.मिळवा('/about', (req, res) => {
  res.end('हा API बद्दल पृष्ठ आहे');
});

app.मिळवा('/users', (req, res) => {
  const users = [
    { id: 1, name: 'अमोल' },
    { id: 2, name: 'प्रणव' },
  ];
  res.setHeader('Content-Type', 'application/json; charset=utf-8');
  res.end(JSON.stringify(users));
});

app.सर्वर_बनवा(3000, () => {
  पाहा('सर्व्हर 3000 वर चालू आहे');
});

API Methods

  • वापरा(middleware): Adds a middleware function to the application.
  • मिळवा(path, handler): Defines a GET route.
  • पोस्ट(path, handler): Defines a POST route.
  • विनंती_हाताळा(req, res): Handles incoming requests (internal use).
  • चुक_हाताळा(err, req, res): Handles errors (internal use).
  • सर्वर_बनवा(port, callback): Starts the server on the specified port.
  • पहा(message): Logs messages to the console.

License This project is licensed under the MIT License - see the LICENSE file for details.

Contributing Contributions are welcome! Please feel free to open an issue or submit a pull request.

Contact

INSTRUCTIONS.md

# Laibhari Instructions

## Overview

**Laibhari** is a Marathi-based JavaScript framework for building HTTP servers. It includes methods and functionalities with Marathi terminology. Follow the instructions below to get started with using **Laibhari**.

## Setting Up

1. **Install the Package**

   Install the `laibhari` package using npm:

   ```bash
   npm install laibhari



const http = require('http');

/*
  Laibhari is a Marathi-based JavaScript framework for building HTTP servers. It includes methods and functionalities with Marathi terminology for a localized programming experience.
*/

/*
  ## Setting Up

  1. **Install the Package**

     Install the `laibhari` package using npm:

     ```bash
     npm install laibhari
     ```

  2. **Create Your Application**

     Create a new JavaScript file (e.g., `app.js`) and require the `laibhari` package:

     ```javascript
     const Laibhari = require('laibhari');
     ```

  3. **Initialize the App**

     Create a new instance of `Laibhari`:

     ```javascript
     const app = new Laibhari();
     ```

  ## Using the Framework

  1. **Add Middleware**

     Use the `वापरा` method to add middleware functions:

     ```javascript
     app.वापरा((req, res, next) => {
       पाहा(`${req.method} ${req.url}`);
       next();
     });
     ```

  2. **Define Routes**

     Define GET and POST routes using `मिळवा` and `पोस्ट` methods:

     ```javascript
     app.मिळवा('/', (req, res) => {
       res.end('नमस्कार, हे माझं API आहे');
     });

     app.पोस्ट('/submit', (req, res) => {
       res.end('डेटा सबमिट झाला');
     });
     ```

  3. **Start the Server**

     Use `सर्वर_बनवा` to start the server:

     ```javascript
     app.सर्वर_बनवा(3000, () => {
       पाहा('सर्व्हर 3000 वर चालू आहे');
     });
     ```

  ## Error Handling

  The framework automatically handles errors using the `चुक_हाताळा` method. Customize error messages and handling in your routes and middleware.

  ## Logging

  Use the global `पहा` function for logging messages to the console:

  ```javascript
  पाहा('सर्व्हर प्रारंभ झाला');

License The package is licensed under the MIT License. Refer to the LICENSE file for details.