What it is
HR Tech is a web dashboard for an HR team. It lists job candidates from parsed resumes, shows performance and cost figures for current employees, and drafts offer, rejection, layoff, and pay-change emails with the Llama API. A team of three built it in 24 hours at HackX 2.0.
The problem
The team framed the problem as scattered HR work. Recruiters read resumes one at a time and write replies by hand. Performance and expense data sit in separate places. HR Tech puts these tasks in one interface.
How it works
HR Tech is a SvelteKit app with three areas. The app has no database. Resumes come from files, and employee records come from a TypeScript module.
Hiring (/, src/routes/+layout.server.ts). On each load, the server reads every PDF in static/resumes and extracts text with pdf-parse. It then derives these fields:
- The name and job title, taken from the first two non-empty lines.
- Skills, matched against a fixed list of seven technology names.
- Years of experience, summed from date ranges such as "Jan 2021 – Mar 2023" found with a regular expression.
- The first email address in the text.
The page lets HR search by name and filter by skills. A candidate must have every selected skill to stay in the list.
Manage (/manage-employees). Employee records live in src/lib/data.ts. The list sorts by issues closed or commits. Each employee page shows:
- A line chart of the hours each issue took to close.
- Counts of solved issues and commits.
- An "attrition percentage", which is the share of closed issues that took more than 12 hours.
- A one-line verdict from that figure: below 25% suggests a raise, below 75% is appropriate, and anything higher is poor performance.
- An expense breakdown (CTC, taxes, training, certification, in-hand pay) with a pie chart.
Take action (/take-action). HR picks an action and a recipient. The page sends a one-line prompt to the Llama API and puts the reply in an editable text area. A button then opens a mailto: link, so a person reviews the text before it goes out.
The data is sample data. GitHub figures come from issue and commit responses saved from the MyFit repository, and the "Avg time spent" card shows a random number.
What I built
I built the resume parsing, the hiring, search and skill-filter interface, and the email-action page and API. I also built the dashboard controls. Sundaram built the GitHub-based employee scoring and data, the employee detail pages, the salary and expense graphs, and the first Llama API integration.
Design decisions
Parse PDFs with text rules, not a model. Resume fields come from pdf-parse, a keyword list, and regular expressions. This approach is fast, free, and deterministic. It also depends on resume layout and on a short skill list.
Use saved GitHub responses. The Octokit calls in src/routes/manage-employees are commented out, and the code reads stored responses instead. A commit titled "temporarily cached responses" shows the same idea. The trade-off is that the pages show demo data, not live activity.
Keep a person in the email loop. The Llama reply lands in a text area that HR can edit, and sending goes through the user's own mail client. The app never sends mail itself.
Svelte for the frontend. We chose Svelte for its reactivity model and fast rendering. That mattered because UI polish had to happen quickly during the hackathon.
Llama API for drafting. Using the Llama API was a deliberate choice to avoid depending on paid OpenAI API credits during the competition. The GitHub integration also needed careful handling of rate limits, and caching responses kept a live demo from using up the allowance.
What I learned
Hackathons force prioritization in a way that normal development doesn't. With 24 hours on the clock, you quickly learn which features demonstrate the value and which are scope creep. We cut several planned features to make sure the core resume filtering and auto-response flow worked reliably. That was the right call in retrospect.
The Llama API also taught me the practical limits of language models. They are capable enough to draft professional emails, but they need careful prompt engineering to keep the output format consistent enough to be usable.
Run it locally
You need Node.js and npm.
-
Clone the repository and install dependencies.
git clone https://github.com/WhyAsh5114/hr-tech.git cd hr-tech npm install -
In
src/routes/take-action/+page.svelte, replace the Llama API token with your own. -
Start the dev server and open
http://localhost:5173.npm run dev
Reference
| Area | Choice |
|---|---|
| Framework | SvelteKit 2, Svelte 4, TypeScript |
| UI | Tailwind CSS, shadcn-svelte components (bits-ui), mode-watcher for dark mode |
| Resume parsing | pdf-parse |
| Charts | Chart.js through svelte-chartjs |
| GitHub data | @octokit/core (calls disabled, sample responses in use) |
| Text generation | llamaai client for the Llama API |
Outcome
The team built HR Tech at HackX 2.0, a 24-hour hackathon at NMIMS Navi Mumbai on 2024-03-16. The hackathon page records no placement. The repository has 81 commits from two contributors. All but one fall between 2024-03-16 and 2024-03-17. The last commit, on 2024-10-20, updates packages and adds a test PDF.