Back to .md Directory

Coda Doc Scraper Development Guide

Defines build commands, code style rules, and a column-centric data structure for a Coda document scraper project.

May 2, 2026
0 downloads
0 views
ai rag
View source

What this file does

Defines build commands, code style rules, and a column-centric data structure for a Coda document scraper project.

When to use it

  • Building a React app that scrapes Coda docs
  • Standardising code style across a team working on this project
  • Understanding the expected data shape for Coda API responses

Assumes this stack

ReactTailwind CSSnpm

Coda Doc Scraper Development Guide

Build and Test Commands

  • Install dependencies: npm install
  • Start development server: npm start
  • Build for production: npm run build
  • Run tests: npm test
  • Run a single test: npm test -- -t "test name"

Code Style Guidelines

Formatting

  • React functional components with arrow function syntax
  • 2-space indentation
  • Tailwind CSS for styling with utility classes

Imports

  • Group imports by: React, third-party libraries, components, utilities
  • Use absolute imports for project modules

Error Handling

  • Wrap API calls in try/catch blocks
  • Set error state and display with ErrorDisplay component
  • Log errors to console with descriptive messages

Component Structure

  • Component folders should contain related components
  • Separate presentational and container components
  • Use props destructuring in function parameters

State Management

  • Use React hooks (useState, useEffect)
  • Prefer local state with prop drilling to manage data flow
  • Use localStorage for persistent configuration

Naming Conventions

  • CamelCase for variables, functions, and components
  • PascalCase for component files and React components
  • Descriptive function names (handle* for event handlers)

Data Structure

  • Column-centric data organization with row values nested under each column
  • Transformation of column IDs to human-readable names in row values
  • Simplification of nested objects to show only their names
  • Complete example:
{
  "TableName": {
    "ColumnName": {
      "name": "ColumnName",
      "display": true,
      "format": {...},
      "rows": [
        {
          "name": "RowName",
          "createdAt": "2025-03-24T12:34:56.789Z",
          "value": "Cell value"
        }
      ]
    }
  }
}

What's inside

5 command sections, 6 code style categories, 1 data structure example

Change this for your project

  • Replace Coda Doc Scraper in the title with your project name
  • Replace jondallasjr/coda-doc-scraper with your repository path
  • Replace Coda references with your actual data source name

Where it goes

Save as CLAUDE.md in your repository root. Claude Code reads it automatically at the start of every session.

Related Documents