open-index/open-npm huggingface dataset:
npm package: @nexta-se/nexta-fm
Description: A sleek and modern file manager component for React
Latest version: 1.1.0

# Nexta FileManager

A modern, customizable file browser component kit for React applications.

## Features

- Responsive grid and list views
- File selection and multi-selection
- File preview capabilities
- Sorting and filtering
- Navigation breadcrumbs
- Folder navigation
- Custom file icons
- Upload modal

## What technologies are used for this project?

This project is built with:

- Vite
- TypeScript
- React
- shadcn-ui
- Tailwind CSS

## Installation

```bash
npm install @nexta-se/nexta-fm
```

## Usage

```tsx
import { NextaFM } from '@nexta-se/nexta-fm';

export default function FileManagerPage() {
  return <NextaFM />;
}
```

### File Manager Endpoints

The application uses a centralized configuration for all file manager endpoints:

| Endpoint | Purpose | Default Value |
|----------|---------|---------------|
| `base` | Core file operations | `/fm` |
| `upload` | File uploads | `/fm/upload` |
| `move` | Move operations | `/fm/move` |
| `copy` | Copy operations | `/fm/copy` |
| `imageThumbnail` | Image thumbnail generation | `/fm?path=` |

These endpoints can be customized in `src/lib/config.ts` if your API uses different paths.

### Customizing Endpoints

If your API uses different paths, you can override the defaults in your local config:

```ts
// src/lib/config.ts
export const fileManagerConfig = {
  base: '/api/files',
  upload: '/api/files/upload',
  move: '/api/files/move',
  copy: '/api/files/copy',
  imageThumbnail: '/api/files/thumbnail?path=',
};
```

## License

MIT License

Copyright (c) 2025 Nexta

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.