IdeaCredIdeaCred

miiidev/LAWCATOR

32

a lightweight static web application for discovering lawyers and law firms in Malaysia.

What's novel

a lightweight static web application for discovering lawyers and law firms in Malaysia.

Code Analysis

15 files read · 4 rounds

A static web directory for discovering Malaysian lawyers and law firms with client-side fuzzy search (Fuse.js), an ECharts choropleth map of Malaysia states, and Google Maps integration for location-based browsing with route drawing.

Strengths

The map scripts use a clean IIFE module pattern (State/View/Markers/Route) with proper separation, theme-aware styling via CSS custom properties, route request ID invalidation to prevent stale async responses, and place details caching. The typeahead component is genuinely reusable with full keyboard navigation, ARIA compliance, and animated placeholder cycling.

Weaknesses

Significant code duplication across files (escapeHtml, highlightLabel, fillSelect, syncCityOptionsForState appear in 3-4 files), a duplicate function definition in find.js, no automated tests whatsoever, and lawyer-details.js is a 16KB monolith mixing data fetching, DOM rendering, map logic, and card building. The project hardcodes ~65 legal categories rather than deriving them from data, and uses inconsistent search initialization (shared FuseSearch wrapper vs. inline Fuse instances).

Score Breakdown

Innovation
2 (25%)
Craft
22 (35%)
Traction
5 (15%)
Scope
40 (25%)

Signal breakdown

Innovation

Not Fork+1
Code Novelty+1
Concept Novelty+0

Craft

Ci-1
Tests-2
Polish+0
Releases+0
Has License+5
Code Quality+15
Readme Quality+15
Recent Activity+2
Structure Quality+4
Commit Consistency+4
Has Dependency Mgmt+0

Traction

Forks+0
Stars+6
Hn Points+0
Watchers+0
Early Traction+0
Devto Reactions+0
Community Contribs+5

Scope

Commits+8
Languages+5
Subsystems+5
Bloat Penalty+0
Completeness+6
Contributors+8
Authored Files+15
Readme Code Match+3
Architecture Depth+7
Implementation Depth+8

Evidence

Commits

186

Contributors

6

Files

150

Active weeks

6

TestsCI/CDREADMELicenseContributing

Repository

Language

CSS

Stars

1

Forks

0

License

MIT