- Project Description
- Tech Stack
- Getting Started Locally
- Available Scripts
- Project Scope
- Project Status
ZANT is an intelligent system designed to support workplace accident claims and decision-making for the Polish Social Insurance Institution (ZUS), specifically for self-employed individuals.
The project transforms the current complex and stressful accident reporting process into an intuitive digital experience β "From chaos to clarity". The system operates on two parallel tracks:
A guided wizard that helps injured self-employed individuals report workplace accidents step-by-step, translating official legal jargon into understandable language.
Automates document analysis, verifies statement consistency, and generates draft decisions (Legal Opinions and Accident Cards) for ZUS officials.
Key Benefits:
- π Reduces formal errors in accident reports
- β±οΈ Shortens case processing time
- π€ AI-powered assistance with document analysis and legal classification
- π Automatic inconsistency detection between testimonies
This product is developed as a response to the HackNation 2025 challenge.
| Technology | Version | Description |
|---|---|---|
| Java | 21 | Programming language |
| Spring Boot | 3.5.8 | Application framework |
| Maven | - | Build automation tool |
| Technology | Description |
|---|---|
| Spring Data JPA | Data access abstraction |
| H2 Database | In-memory database for development |
| Spring JDBC | Database connectivity |
| Technology | Description |
|---|---|
| Spring Web | RESTful web services |
| Spring HATEOAS | Hypermedia-driven REST APIs |
| SpringDoc OpenAPI | API documentation (Swagger UI) |
| Technology | Description |
|---|---|
| Apache PDFBox | PDF generation and manipulation |
| docx4j | DOCX document processing |
| Technology | Description |
|---|---|
| Lombok | Boilerplate code reduction |
| MapStruct | Object mapping |
| Spring DevTools | Development productivity |
| Technology | Version | Description |
|---|---|---|
| React | 19.2 | UI library for building user interfaces |
| TypeScript | 5.9 | Type-safe JavaScript |
| Vite | 7.2 | Next-generation frontend build tool |
| Technology | Description |
|---|---|
| Tailwind CSS v4 | Utility-first CSS framework |
| Shadcn/ui | Re-usable component library |
| Lucide React | Beautiful & consistent icon library |
| tw-animate-css | Animation utilities |
| Technology | Description |
|---|---|
| React Hook Form | Performant form management |
| Zod | TypeScript-first schema validation |
| @hookform/resolvers | Validation resolvers |
| Technology | Description |
|---|---|
| clsx / tailwind-merge | Conditional class utilities |
| class-variance-authority | Component variant management |
| date-fns | Date manipulation library |
| react-router-dom | Client-side routing |
| react-pdf | PDF rendering |
| Technology | Description |
|---|---|
| @openrouter/sdk | OpenRouter API integration for LLM capabilities |
| Technology | Description |
|---|---|
| ESLint 9 | Code linting |
| Prettier | Code formatting |
| Husky | Git hooks |
| Vitest | Unit testing framework |
- Java >= 21
- Maven >= 3.9
- Node.js >= 18.0.0
- npm >= 9.0.0 (or yarn/pnpm)
- Clone the repository
git clone https://github.com/your-username/hacknation-task.git cd hacknation-task
-
Navigate to the backend directory
cd backend -
Run the Spring Boot application
./mvnw spring-boot:run
The API will be available at
http://localhost:8080Swagger UI:
http://localhost:8080/swagger-ui.html
-
Navigate to the frontend directory (in a new terminal)
cd frontend -
Install dependencies
npm install
-
Start the development server
npm run dev
-
Open your browser
Navigate to
http://localhost:5173to view the application.
| Command | Description |
|---|---|
./mvnw spring-boot:run |
Starts the Spring Boot server |
./mvnw clean install |
Builds the project and runs tests |
./mvnw test |
Runs unit tests |
./mvnw package |
Creates executable JAR file |
| Command | Description |
|---|---|
npm run dev |
Starts the development server with hot reload |
npm run build |
Compiles TypeScript and builds for production |
npm run preview |
Previews the production build locally |
npm run lint |
Runs ESLint to check for code issues |
npm run prepare |
Sets up Husky git hooks |
- β Report type selection (Notification, Injured Statement, or both)
- β Business data retrieval simulation (NIP/REGON mockup with CEIDG)
- β AI-powered intelligent interview (max 3 clarifying questions)
- β Soft validation with educational warnings
- β PDF document generation with JSON data export
- β OCR document digitalization (PDF/JPG/PNG, including handwriting)
- β Split-screen view (scan on left, extracted text on right)
- β Traffic Light Widget for 4 accident criteria assessment
- β Discrepancy Dashboard for testimony comparison
- β Draft Decision Generator (Legal Opinion + Accident Card)
- β Medical referral recommendations (flagging only)
- β Real integration with government systems (PUE ZUS, CEIDG, PESEL Registry)
- β Full GDPR encryption and security (demo uses anonymized/test data)
- β Mobile application
- β Legally binding AI decisions (AI serves advisory role only)
π§ Status: In Development (MVP Phase)
This project is currently being developed as part of the HackNation 2025 hackathon. The focus is on delivering a functional prototype demonstrating the "Happy Path" user journeys.
| Metric | Target |
|---|---|
| Time to completion | Full demo path < 3 minutes |
| OCR accuracy | Key fields correct in 4/5 test scenarios |
| Legal classification | Correct recommendation in 5 test cases |
Made with β€οΈ for HackNation 2025