Feed aggregator

Show HN: Pokémon Blue remade in React (playable in browser)

Hacker News - Sun, 06/01/2025 - 4:37am

I rebuilt Pokémon Red/Blue from scratch in React and TypeScript as a side-project.

It works natively in browser, and even has a fun gameboy view on mobile. It's 100% a recreation, in that it doesn't use any of the original game code, other than the image assets and sounds. You can move around with the arrow keys, Spacebar is Start, and Enter is A.

It's MIT licensed, so feel free to fork it and do whatever you like

Contributions are very welcome, there's still lots of work to go until it's a full recreation of the game, so if anyone wants to help add content please feel free! Currently it supports up to Mt Moon.

Comments URL: https://news.ycombinator.com/item?id=44149470

Points: 1

# Comments: 0

Categories: Hacker News

Jokes from the Jar – Powered by AI

Hacker News - Sun, 06/01/2025 - 4:29am

Article URL: https://jokesfromthejar.com/

Comments URL: https://news.ycombinator.com/item?id=44149439

Points: 1

# Comments: 2

Categories: Hacker News

Ask HN: User-scoped AI tokens for safe client-side AI logic?

Hacker News - Sun, 06/01/2025 - 4:16am

Consider a service providing user-scoped AI tokens. The service would allow you to configure usage limits for each user's tokens, allowing you to safely move AI logic to the client-side, simplifying your code.

As an example flow, you would register a user's unique secret with the service. Then, the service's client-side library would redirect all of the OpenAI requests to itself, and would also pass the unique user secret. If the corresponding user has no funding for the AI request, it would deny it.

Any interest?

Comments URL: https://news.ycombinator.com/item?id=44149396

Points: 1

# Comments: 0

Categories: Hacker News

Show HN: Built FLUX.1 Kontext image editor – context-aware AI editing

Hacker News - Sun, 06/01/2025 - 4:15am

Hey HN,

I've been working on https://flux1kontext.io – an AI image editor that uses Black Forest Labs' FLUX.1 Kontext models for context-aware image editing.

*What it does:* Upload an image, describe what you want to change, and it modifies just that part while keeping everything else intact. Think "add sunglasses to this person" or "make the cat open its eyes" – it understands context instead of regenerating the whole image.

*Tech stack:* Next.js 19, TypeScript, Supabase, FAL.AI for model hosting, Stripe for payments, Cloudflare R2 for storage. Pretty standard SaaS setup.

*Why I built this:* Most AI image tools either generate from scratch or do crude inpainting. FLUX.1 Kontext actually understands what you're asking for and preserves the original image's composition, lighting, and style while making targeted edits.

*Current state:* - Two model tiers (Pro/Max) with different quality/speed tradeoffs - Credit-based pricing (8 credits for Pro, 16 for Max) - Works with common image formats, handles up to 10MB files - About 15-60 seconds processing time depending on complexity

*Challenges:* - Model costs are high (~$0.10-0.20 per generation), so had to implement careful credit management - FAL.AI API can be inconsistent during peak times - Balancing quality vs speed is tricky – users want both

The tech is genuinely impressive when it works. The model was trained by the same team that created Stable Diffusion, so the quality is solid. Still working on reliability and cost optimization.

Would love feedback from anyone who's worked with similar AI APIs or has thoughts on the UX. The demo works without signup if you want to try it.

Built this mostly as a learning project but it's getting decent usage (~2.5M images generated so far). Happy to answer questions about the implementation or business side.

Comments URL: https://news.ycombinator.com/item?id=44149393

Points: 1

# Comments: 0

Categories: Hacker News

Show HN: Ephe – A Minimalist Open-Source Markdown Paper for Today

Hacker News - Sun, 06/01/2025 - 4:11am

Hi HN,

I built Ephe, open-source markdown paper for daily todos and thoughts.

No sign-up, no ads, no subscriptions, no AI.

## Why I made this

We have plenty of Markdown editors. And too many overwhelming to-do apps. But few tools combine both in a way that’s lightweight and focused. I thought that all I need is a single page to organize today. So I built Ephe.

It uses CodeMirror v6, React(v19, React Compiler) and Vite with rolldown.

## What makes it different

“Ephe” comes from ephemeral. The main goal is to organize what you need to do today. It isn’t for teams. It’s a quiet space for your own priorities.

Give it a spin if that sounds useful to you.

Comments URL: https://news.ycombinator.com/item?id=44149385

Points: 2

# Comments: 0

Categories: Hacker News

VimGolf – Real Vim ninjas count every keystroke

Hacker News - Sun, 06/01/2025 - 4:06am

Article URL: https://www.vimgolf.com/

Comments URL: https://news.ycombinator.com/item?id=44149366

Points: 1

# Comments: 0

Categories: Hacker News

DevEco Studio: Essential Features for HarmonyOS Development

Hacker News - Sun, 06/01/2025 - 3:49am

# DevEco Studio: Essential Features for HarmonyOS Development

Note: This guide focuses on core features for daily development. For comprehensive documentation, please refer to the official resources.

**

## Core Development Concepts

HarmonyOS applications are structured around Pages (UI components) and Abilities (application modules). Pages define visual elements, while Abilities handle business logic. Key distinctions:

* Pages: Contain UI elements (with/without @Entry decorator). Only entry-enabled Pages support real-time preview.

* Abilities: Serve as reusable components. Preview requires runtime execution. Tip: Temporarily add @Entry to custom controls for preview, but remove it post-testing to avoid runtime errors.

**

## Code Editing Essentials

### Key Features

* Default Entry: index.ets within the pages directory

* Smart Code Completion: Context-aware suggestions (e.g., component properties, API parameters)

* Class Creation: Prefer ArkTS File over Empty Page to avoid boilerplate code

* Trigger Suggestions: Alt + Enter (Windows) / Option + Enter (macOS)

### Workflow Optimization

``` typescript ```

typescript

复制

``` // Example: Efficient component creation @Entry @Component struct MainPage { build() { Column.create() .child(Text.create("Hello HarmonyOS")) } } ```

**

## Preview System

### Dual Preview Modes

| Mode | Behavior | Use Case | | :---------- | :----------------------------------- | :--------------------------- | | Interactive | Real-time interaction simulation | Debugging gestures/animation | | Static | Fast rendering without interactivity | Layout validation |

Recommendation: Use Static Preview during rapid iteration, switch to Interactive for complex interactions.

**

## Emulator Configuration

1. Access via Device Manager (toolbar green arrow)

2. Create custom profiles:

* Select device template (Phone/Tablet/Car) * Configure resolution, memory, and sensors 3. Mirror real-world scenarios with multi-device synchronization

**

## Build & Execution

| Action | Shortcut | Description | | :--------------------- | :--------------- | :------------------------- | | Run Application | F5 / Green Arrow | Launch debug-enabled build | | Debug with Breakpoints | F9 | Step-through execution | | Release Build | Ctrl + F9 | Optimized production build |

**

## DevEco Profiler: Advanced Optimization

### Key Metrics Tracking

1. Memory Leak Detection

* Visualize object lifecycle * Track reference chains 2. Rendering Performance

* Identify overdraw patterns * Analyze layout hierarchy bottlenecks 3. Network Monitoring

* Track API latency (ms) * Measure success/error rates Pro Tip: Use the "Capture Heap Snapshot" feature to analyze memory allocation peaks.

**

## Pro Development Tips

* Keyboard Shortcuts: Master Ctrl + Alt + L (code formatting) and Ctrl + B (navigation to declaration)

* Component Tree: Navigate complex UIs via the Structure panel (Alt + 7)

* Version Control: Integrate Git directly within the IDE for seamless collaboration

For advanced configurations or troubleshooting, feel free to ask questions below. Happy coding with DevEco Studio!

Comments URL: https://news.ycombinator.com/item?id=44149300

Points: 1

# Comments: 0

Categories: Hacker News

Muscular Christianity

Hacker News - Sun, 06/01/2025 - 3:47am
Categories: Hacker News

The Workers Who Lost Their Jobs To AI

SlashDot - Sun, 06/01/2025 - 3:40am
Categories: SlashDot

Pages