Architecture Map
Start with the shape before touching code.
Top-Level Tree
./README.md ./Random_numbers ./backend/database.js ./backend/index.js ./backend/package-lock.json ./backend/package.json ./code ./package-lock.json ./package.json ./public/favicon.ico ./public/index.html ./public/logo192.png ./public/logo512.png ./public/manifest.json ./public/robots.txt ./src/App.css ./src/App.js ./src/App.test.js ./src/index.css ./src/index.js ./src/logo.svg ./src/reportWebVitals.js ./src/setupTests.js
Agent Reading Order
These files are the first tour stops.
src/index.js
Core execution surface likely to coordinate the main behavior.
17 linesbackend/index.js
Core execution surface likely to coordinate the main behavior.
127 linessrc/index.css
Core execution surface likely to coordinate the main behavior.
14 linesREADME.md
Human-facing overview. Read this before touching code.
14 linespackage.json
Node scripts, package metadata, and workflow clues.
41 linessrc/App.css
Implementation surface likely to contain core behavior.
139 linessrc/App.js
Implementation surface likely to contain core behavior.
220 linessrc/App.test.js
Verification surface. Useful for safe behavior changes.
13 linessrc/reportWebVitals.js
Implementation surface likely to contain core behavior.
14 linessrc/setupTests.js
Verification surface. Useful for safe behavior changes.
6 linesRunnable Commands
npm run startreact-scripts startnpm run buildreact-scripts buildnpm run testreact-scripts testnpm run ejectreact-scripts ejectGuardrails
Where an agent should slow down.
Risk Areas
No obvious high-risk paths found by deterministic scan.
Safe First Tasks
- Read README and agent instruction files before editing.
- Run the cheapest available verification command before and after changes.
- Start with docs, examples, or tests before touching core implementation.
- Run `npm test` after behavior changes.
- Run `npm run build` after structural or UI changes.
Exact Code, Plain English
Use real snippets as the trust anchor.
const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
<React.StrictMode>
<App />
</React.StrictMode>
);
// If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
reportWebVitals();
This snippet is a likely implementation anchor. Read it with nearby imports and callers before changing it.
const express = require('express')
const cors = require("cors");
const app = express()
const port = 3000
const mongoose = require('mongoose');
const UserManager = require('./database')
const bodyParser = require('body-parser');
app.use(cors());
app.use( bodyParser.json() );
This snippet is a likely implementation anchor. Read it with nearby imports and callers before changing it.
body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
code {
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
monospace;
This snippet is a likely implementation anchor. Read it with nearby imports and callers before changing it.
function App() {
const [messages, setMessages] = useState(() => {
const storedMessages = localStorage.getItem('chatMessages');
return storedMessages ? JSON.parse(storedMessages) : [];
});
useEffect(() => {
localStorage.setItem('chatMessages', JSON.stringify(messages));
}, [messages]);
const addNewMessage = async (newMessage) => {
try {
This snippet is a likely implementation anchor. Read it with nearby imports and callers before changing it.
const teamNameElement = screen.getByText(/Your Team Name/i);
expect(teamNameElement).toBeInTheDocument();
// Add more test cases for other Slack-like elements as needed
});
This shows how the project proves behavior. Copy this style for narrow regression tests.