๐งฐ Notion Page Tools โ Bulk Editing for Notion Pages
Notion Page Tools
- 15 technologies
- Live
I built Notion Page Tools, an Arabic-first web app with ten tools that edit a Notion page in bulk through the official Notion API: color headings, code and bold text, nest sections inside toggle headings, add dividers, fix Arabic text direction, find and replace, number headings and IEEE 830 requirements, and convert pages to and from Markdown.
๐ก๏ธ Every tool starts with a dry run that shows exactly what would change, then streams a live log and result counters while it edits the real page.
Key Features & My Role
Page Colors
Colors heading text, inline code and bold text according to the block that contains it (headings, lists, paragraphs), plus text inside round or square brackets, with a clear priority order: code โ heading โ bold.
Nest Sections & Dividers
Moves each section's content inside its heading and makes the heading toggleable, and inserts dividers between headings of the same level or any level. Re-runs are safe: existing dividers are skipped.
Fix Arabic Text Direction
Arabic paragraphs that start with an English word render in the wrong order, because Unicode takes the direction from the first strong character. The tool inserts an invisible direction mark at the start of each block or sentence, and has an undo mode.
Find & Replace with Arabic Normalization
Replaces plain text or a regular expression in every block, tables and captions included, while keeping the formatting. Options for whole word, case, ignoring diacritics, removing tatweel, Arabic punctuation and Arabic-Indic / Latin digits.
Heading & IEEE 830 Numbering
Numbers headings by level (1-, 1-1-, 1-1-1-) and keeps an SRS numbered the IEEE 830 way: section numbers like 3.2.1 and unique, ordered requirement IDs like FR-XXX-001. Fix repairs the page; Create adds new numbered requirements.
Markdown Export & Import
Exports the page as clean Markdown (callouts, toggles, GFM tables, nested lists) to copy or download, and imports pasted Markdown or a .md file back as real Notion blocks. A file exported by the app imports back as it was, and an import can be undone.
Block Type Converter
Changes the type of every matching block (paragraphs, headings, lists, to-dos, toggles, quotes, callouts) while keeping its text, formatting, color and children.
Safe Runs: Dry Run, Live Log & Backups
- Dry run by default: scans the page and prints the full plan without writing anything.
- Destructive tools need an explicit confirmation and download a JSON backup.
- Live progress with scanned / changed counters, speed, elapsed time and a copyable log.
- Optional block ID to limit a run to one block and its children.
Arabic-First, Bilingual & Themed
Arabic is the default locale with full RTL layout, English is available under /en, and the UI supports light, dark and system themes.
Tech Stack & Architecture
- Next.js 16 (App Router) + React 19 + TypeScript, with the React Compiler enabled.
- Server route handlers (one per tool under api/notion) call the Notion API and stream run progress back to the page; the integration token and page ID stay in the browser and are sent only to these routes.
- shadcn/ui on Base UI + Tailwind CSS 4 for the interface, and Plate.js for rich text editing.
- TanStack Query for server state, Zustand for client state and nuqs for URL search-param state.
- React Hook Form + Zod for forms and validation, and next-safe-action for type-safe Server Actions.
- next-intl for Arabic / English routing with RTL support.
- Feature-based structure (one feature per tool) with import boundaries enforced by ESLint, plus Prettier, Husky, lint-staged and Commitlint.
Skills Demonstrated
- ๐ API Integration โ Worked deeply with the Notion block API: recursive traversal, rich text spans, rate limits and the lack of a native โmoveโ operation.
- ๐ง Problem Solving for Real Workflows โ Turned repetitive manual editing of long Arabic documents and SRS files into one-click tools.
- ๐ Arabic & RTL Expertise โ Handled bidirectional text, diacritics, tatweel and Arabic-Indic digits correctly.
- ๐ Business Analysis Tooling โ Automated IEEE 830 section and requirement numbering for software requirement specifications.
- ๐ก๏ธ Safe UX for Destructive Operations โ Dry runs, explicit confirmations, backups, undo modes and clear warnings.
- ๐๏ธ Architecture & Code Quality โ Feature-based modules, type-safe server actions and lint-enforced boundaries.
Conclusion
Notion Page Tools started as a fix for my own documentation work and grew into a complete toolkit that saves hours of manual editing on long Notion pages.
It shows how I combine analysis and engineering: understanding a real workflow, then building a safe, bilingual and well-structured tool around it. ๐
