Skip to content

Commit 322cea8

Browse files
committed
docs: update README
1 parent 1dc6649 commit 322cea8

1 file changed

Lines changed: 50 additions & 63 deletions

File tree

‎README.md‎

Lines changed: 50 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,20 @@
1-
# bits&bytes™ Official Website
1+
# bits&bytes™
22

3-
Official public platform for bits&bytes™, a fully student-led builder network based in Lucknow and serving ambitious teen builders across India.
3+
official platform for bits&bytes™ — a fully student-led builder network based in Lucknow, serving ambitious teen builders across India.
44

5-
The site includes the public brand pages, event archives, join/contact flows, and an AI assistant powered by page context plus a Supabase-backed RAG index.
5+
the platform handles public brand pages, event archives, membership applications, and an on-page AI assistant backed by a Supabase vector RAG index.
6+
7+
---
68

79
## Stack
810

9-
- Next.js 16, React 19, TypeScript 5
10-
- Tailwind CSS 4, Radix UI, Framer Motion
11-
- Supabase for forms, chat persistence, and vector search
12-
- Hack Club proxy for chat, embeddings, and image generation
13-
- Vercel deployment
14-
- Package manager: pnpm
11+
- **Framework**: Next.js 16 (App Router), React 19, TypeScript 5
12+
- **Styling & Motion**: Tailwind CSS 4, Radix UI primitives, Framer Motion
13+
- **Database & RAG**: Supabase (PostgreSQL, vector search `site_embeddings`), Hack Club AI proxy
14+
- **Package Manager**: `pnpm` (mandatory)
15+
- **Deployment**: Vercel
16+
17+
---
1518

1619
## Local Setup
1720

@@ -20,9 +23,9 @@ pnpm install
2023
pnpm dev
2124
```
2225

23-
The app runs at `http://localhost:3000`.
26+
open `http://localhost:3000`.
2427

25-
Copy `.env.example` to `.env.local` and provide:
28+
copy `.env.example` to `.env.local`:
2629

2730
```env
2831
NEXT_PUBLIC_SUPABASE_URL=...
@@ -31,83 +34,67 @@ HACKCLUB_PROXY_API_KEY=...
3134
GOOGLE_SITE_VERIFICATION=...
3235
```
3336

34-
Optional:
35-
36-
```env
37-
NVIDIA_KEY=...
38-
```
37+
---
3938

4039
## Scripts
4140

4241
```bash
43-
pnpm dev
44-
pnpm build
45-
pnpm start
46-
pnpm lint
42+
pnpm dev # local dev server
43+
pnpm build # production build
44+
pnpm start # start production build
45+
pnpm lint # type & lint check
4746
```
4847

49-
Use pnpm for all project work.
48+
always use `pnpm` for script execution and dependency changes.
49+
50+
---
5051

5152
## Project Structure
5253

5354
```text
5455
app/ Next.js routes and API handlers
5556
components/ Shared UI, navigation, hero, assistant, sections
5657
components/ui/ Reusable interface primitives and visual systems
57-
lib/ RAG, Supabase, rate limit, team/event data, utilities
58-
public/ Static images, logo, video, llms.txt, sitemap
59-
scripts/embed-site.ts RAG embedding refresh script
60-
types/ Type declarations
58+
lib/ RAG pipeline, Supabase client, rate limiter, event data
59+
public/ Static images, logo SVG, video assets, llms.txt, sitemap
60+
scripts/embed-site.ts RAG embedding generator script
61+
types/ TypeScript interfaces and schema declarations
6162
```
6263

63-
## Key Routes
64-
65-
- `/` homepage with hero, stats, partners, and story sections
66-
- `/about` team and mission
67-
- `/events` archived hackathons, workshops, and partner events
68-
- `/impact` community statistics and outcomes
69-
- `/join` membership application
70-
- `/fork` Fork network map
71-
- `/qna` full-page AI assistant
72-
- `/press` brand assets and media context
64+
---
7365

74-
## Events Context
75-
76-
Hack4Good v0 is now an archived event. Shared event state lives in `lib/events-data.ts`, and the homepage hero pulls its event carousel from that file.
77-
78-
The homepage movie CTA opens `public/movie/bnb-movie.mp4` in an in-page video frame.
79-
80-
## Brand Notes
81-
82-
The public name is **bits&bytes™**. Use **bitsnbytes** only where the ampersand is impractical, such as domains, handles, repository names, packages, or file paths. Use **GOBITSNBYTES FOUNDATION** only for legal, regulatory, contract, invoice, and official correspondence contexts.
83-
84-
`public/logo.svg` is the white logo mark. Keep it on dark, burgundy, or orange surfaces unless a monochrome/dark variant is intentionally provided.
85-
86-
See `brand-guideline.md`, `DESIGN.md`, and `public/llms.txt` for the current brand kit.
87-
88-
## AI Assistant And RAG
66+
## Key Routes
8967

90-
The assistant answers using:
68+
- `/` — main hero, community metrics, active partner roster, and event carousel
69+
- `/about` — team roles, origin story, and section 8 governance framework
70+
- `/events` — archived hackathons (Hack4Good v0, Execron 1.0, Copilot Dev Days)
71+
- `/impact` — builder throughput and evaluation metrics
72+
- `/join` — membership application flow
73+
- `/fork` — network map for local student chapters
74+
- `/qna` — full-page AI assistant interface
75+
- `/press` — vector logo marks and brand kit guidelines
9176

92-
- live route/page context from the client
93-
- semantic search over `site_embeddings` in Supabase
77+
---
9478

95-
The RAG refresh script currently indexes:
79+
## RAG & AI Assistant
9680

97-
- `public/llms.txt`
98-
- `AGENTS.md`
81+
the on-page AI assistant pulls context from two sources:
82+
1. active client route state (`pathname` + page snippet)
83+
2. `site_embeddings` table in Supabase generated via `openai/text-embedding-3-small`
9984

100-
Refresh after content changes:
85+
to refresh vector embeddings after updating `public/llms.txt` or `AGENTS.md`:
10186

10287
```bash
10388
pnpm tsx scripts/embed-site.ts
10489
```
10590

106-
The Husky pre-push hook also runs the embedding step when tracked source paths change.
91+
a husky `pre-push` hook automatically triggers embedding re-indexing when source files change.
92+
93+
---
10794

108-
## Production Notes
95+
## Brand Rules
10996

110-
- Vercel config lives in `vercel.json`.
111-
- `next.config.mjs` injects git metadata at build time.
112-
- `typescript.ignoreBuildErrors` is currently enabled, so run lint/type checks before production-sensitive changes.
113-
- In-memory rate limiting is suitable for simple deployments; use a shared store if the API runs across multiple instances.
97+
- public brand name: **bits&bytes™**
98+
- use **bitsnbytes** only in environments where `&` is restricted (domains, repository paths, package names, file directories).
99+
- **GOBITSNBYTES FOUNDATION** is reserved exclusively for legal, regulatory, banking, and contract contexts.
100+
- logo mark: `public/logo.svg` (white mark, sits on dark, burgundy `#97192C`, or orange `#FC920D` surfaces).

0 commit comments

Comments
 (0)