open-index/open-npm huggingface dataset:
npm package: @objectpartners/components
Description: React components to get a kickstart on your next, great OPi project
Latest version: 0.0.6

# components

React components for getting up and started with OPi-branded React applications.

## Install

```bash
yarn add @objectpartners/components
```

with peer-dependencies

```bash
yarn add @objectpartners/components react@^16.0.0 react-dom@^16.0.0 emotion react-emotion
```

## Usage

```jsx
import React from 'react';
import styled from 'react-emotion';

import { Header, Footer } from '@objectpartners/components';

const Container = styled.div({
  display: 'flex',
  flexDirection: 'column'
});

export default function App() {
  return (
    <Container>
      <Header />
      <p>This is some content</p>
      <Footer />
    </Container>
  );
}
```
npm package: @objectql/api
Description: This package provides REST API generation and Router creation for ObjectQL applications. It bridges Express.js with ObjectQL.
Latest version: 1.1.0

# @objectql/api

This package provides REST API generation and Router creation for ObjectQL applications. It bridges Express.js with ObjectQL.

## Features

- **Auto-generated REST API**: `/api/:objectName` endpoints.
- **Swagger/OpenAPI**: Automatic documentation generation.
- **Standard CRUD**: `GET`, `POST`, `PUT`, `DELETE` handlers.
- **Aggregation**: Support for pipeline aggregation via HTTP.

## Installation

```bash
npm install @objectql/api
```

## Usage

```typescript
import express from 'express';
import { ObjectQL } from '@objectql/core';
import { createObjectQLRouter } from '@objectql/api';

const app = express();
const objectql = new ObjectQL({ ... });

app.use('/api', createObjectQLRouter({
    objectql,
    swagger: {
        enabled: true,
        path: '/docs'
    },
    getContext: async (req, res) => {
        // Authenticate request and return context
        return objectql.createContext({ userId: '...' });
    }
}));

app.listen(3000);
```
npm package: @objectql/console
Description: Web-based admin console for ObjectQL database management
Latest version: 1.3.1

# @objectql/console

Web-based admin console for ObjectQL database management.

## Features

- **Object Browser**: View all registered objects/tables in your database
- **Data Grid**: Browse and search records with pagination
- **CRUD Operations**: Create, read, update, and delete records
- **Schema Inspector**: View object definitions and field metadata
- **Modern UI**: Clean, responsive design with intuitive navigation

## Usage

The console is typically served alongside your ObjectQL server:

```typescript
import express from 'express';
import { ObjectQL } from '@objectql/core';
import { createNodeHandler } from '@objectql/server';
import { serveConsole } from '@objectql/console/server';

const app = new ObjectQL({ /* ... */ });
const server = express();

// API endpoints
server.all('/api/objectql', createNodeHandler(app));

// Serve console UI
server.use('/console', serveConsole());

server.listen(3004);
```

Then visit `http://localhost:3004/console` in your browser.

## Development

```bash
pnpm install
pnpm run dev
```
npm package: @objectql/create
Description: Create ObjectQL apps with one command
Latest version: 4.2.2

# @objectql/create

The easiest way to get started with ObjectQL.

## Usage

```bash
npm create @objectql@latest
```

Follow the prompts to create your new ObjectQL application.

## Arguments

You can also pass arguments directly:

```bash
npm create @objectql@latest <project-name> --template <template-name>
```

- `<project-name>`: Name of the project directory.
- `--template`: Template to use (e.g. `hello-world` or `showcase`).

## Features

- **Embedded Templates**: No internet connection required to fetch templates.
- **Auto-Cleanup**: Automatically cleans up `package.json` configurations (strips `private: true`, resolves workspace versions).
- **Interactive**: Uses `enquirer` for a smooth interactive experience if no arguments are provided.
npm package: @objectql/driver-knex
Description: Knex.js based SQL driver for ObjectQL. Supports PostgreSQL, MySQL, SQLite, and simpler databases.
Latest version: 1.5.0

# @objectql/driver-knex

Knex.js based SQL driver for ObjectQL. Supports PostgreSQL, MySQL, SQLite, and simpler databases.

## Installation

```bash
npm install @objectql/driver-knex
```

## Usage

```typescript
import { KnexDriver } from '@objectql/driver-knex';

const driver = new KnexDriver({
    client: 'sqlite3',
    connection: {
        filename: './data.db'
    },
    useNullAsDefault: true
});

const objectql = new ObjectQL({
    datasources: {
        default: driver
    }
});
```