HNEWS OFFLINE

Read Hacker News anywhere. No internet required.

Move mouse to paint • Keys 1-6 change colors

FEATURES.txt ─ □ ×

CORE FEATURES

📰

Browse Top Stories

Access the latest top stories from Hacker News with smart pagination.

💾

Automatic Caching

Articles and comments are automatically cached for offline reading with 24-hour expiration.

🚀

Smart Preloading

Articles are preloaded into memory before you open them for instant access.

💬

Threaded Comments

Full comment threads with inline previews and recursive nested comment trees.

📱

Cross-Platform

Works seamlessly on both iOS and Android devices.

🌐

Progressive Loading

Loads 20 stories initially with "Load more" pagination for smooth browsing.

TECHSTACK.sys ─ □ ×

TECHNOLOGY STACK

⚛️ CORE FRAMEWORK

  • React Native 0.81.4 Mobile framework
  • React 19.1.0 UI library
  • Expo ~54.0.7 Development platform
  • TypeScript ~5.9.2 Type safety

🔌 KEY LIBRARIES

  • AsyncStorage 2.2.0 Comment caching
  • react-native-webview 13.16.0 Article display
  • react-native-render-html 6.3.4 Comment rendering

🔥 HACKER NEWS API

Integrated with the official Hacker News Firebase API for real-time story and comment fetching.

https://hacker-news.firebaseio.com/v0/topstories.json https://hacker-news.firebaseio.com/v0/item/{id}.json
ARCHITECTURE.dat ─ □ ×

THREE-LAYER CACHING

01

WebView Preloading

WebViewPreloadProvider.tsx

Preemptively fetches article HTML into memory before user opens. Provider wraps App.tsx and exposes context methods. Stories automatically preload the next article.

02

Comment Storage

commentStorage.ts

AsyncStorage with 24-hour expiration. Individual comments stored as hn_comment_{id}. Full story threads stored as hn_story_comments_{storyId}.

03

Comment Fetching

commentUtils.ts

Cache-first API calls to Hacker News API. Recursively fetches nested comment trees. Filters out deleted/dead comments automatically.

APP SCREENSHOTS

HNews Offline Story List
HNews Offline Article View
HNews Offline Comments
INSTALL.exe ─ □ ×

GETTING STARTED

CONTACT.exe ─ □ ×

REPORT ISSUES

✉️ EMAIL stu@16pixels.com.au