A simple web interface to explore your local Weaviate collections and inspect the data they hold. Built with Next.js 14 and TypeScript, this tool provides an easy way to browse and view your Weaviate data collections.
- View all locally available Weaviate collections
- Explore collection data in a tabular format
- Dynamic table rendering based on collection schema
- Real-time data fetching from your Weaviate instance
- Advanced data management capabilities:
- Sort date columns in ascending/descending order
- Multi-object deletion with confirmation
- Interactive selection mode for object management
- Visual feedback for selection state
- Install dependencies:
pnpm install
- Configure Weaviate URL in
.env
:
WEAVIATE_URL=http://localhost:8080
- Start the development server:
pnpm dev
The application will be available at http://localhost:3000
-
Prerequisites:
- Docker and Docker Compose installed
- A running Weaviate instance in Docker
- A Docker network for Weaviate communication
-
Configure
docker-compose.yml
:- Update the network name to match your Weaviate network
- Adjust the Weaviate hostname if needed
- Modify port mapping if required (default: 3200:3000)
Example docker-compose.yml configuration:
services:
copertine-viewer:
build:
context: .
dockerfile: Dockerfile
ports:
- "3200:3000"
environment:
- NODE_ENV=production
- WEAVIATE_URL=http://weaviate:8080
- PORT=3000
networks:
- weaviate_net
networks:
weaviate_net:
external: true
- Build and run:
docker compose build
docker compose up -d
The application will be available at http://localhost:3200
The application needs to know where your Weaviate instance is running:
-
Local Development: Configure via
.env
fileWEAVIATE_URL=http://localhost:8080
-
Docker Deployment: Configure via
docker-compose.yml
environment: - WEAVIATE_URL=http://weaviate:8080
Note: When running in Docker, make sure to customize the hostname and network settings in docker-compose.yml to match your Weaviate setup.
Contributions are welcome through pull requests! This is a learning project for Next.js 14 with TypeScript, so suggestions for improvements and best practices are especially appreciated.
This is a learning project for Next.js 14 with TypeScript. While functional, the code may not follow all best practices for a Next.js 14 TypeScript project. Suggestions and improvements are welcome!
USE AT YOUR OWN RISK: While this tool is designed for viewing data, any interaction with your Weaviate collections carries inherent risks. There's always a possibility of unintended data modification or loss due to unknown bugs. Please ensure you have proper backups of your Weaviate data before using this tool.
- Built with Next.js 14
- Written in TypeScript
- Uses TanStack Table for data display
- Styled with Tailwind CSS
- Weaviate TypeScript client for data access
-
Date Column Sorting
- Click on date column headers to toggle sort order
- Visual indicators for sort direction (↑↓)
- Server-side sorting for optimal performance
- Maintains sort state during data updates
-
Multi-Object Deletion
- Select multiple objects for deletion
- Intuitive selection mode with checkboxes
- Visual feedback with button state changes
- Confirmation modal with type-to-confirm safety
- Automatic table refresh after deletion
-
Enhanced User Experience
- Clear visual indicators for interactive elements
- Automatic mode transitions based on user actions
- Keyboard support (Escape to cancel)
- Error handling with user-friendly messages
-
If you can't connect to Weaviate:
- Verify Weaviate is running
- Check network configuration
- Ensure correct hostname in configuration
-
For Docker deployments:
- Verify network connectivity:
docker network inspect weaviate_net
- Check logs:
docker compose logs -f
- Ensure Weaviate service is accessible from the container network
- Verify network connectivity:
MIT License
Copyright (c) 2024 rjalexa
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.