rayfin / welcome-app-react-no-auth
AGENTS.md646 starsChanged 24 days agoMITView on GitHub
This project ships agent context: skills under .agents/skills/ and MCP servers in .mcp.json. Load them before writing code. This is an introductory React sample demonstrating basic Rayfin data operations without authentication or storage. It serves as a minimal starting point for understanding Rayfin's data layer with React. This sample uses React with Vite. The main application logic lives in src/App.tsx with React hooks for state management. Key components: React hooks used: Features demonstrated: Decorators (@microsoft/rayfin-core): Schema (rayfin/data/schema.ts): Client (@microsoft/rayfin-client): Data…
- Reads credentials
We split this AGENTS.md into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 77
Do not edit these paths; treat them as build or local-state outputs:
≈ “Common” is an estimate: at least 1 in 5 of the 36,368 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AGENTS.md
This project ships agent context: skills under .agents/skills/ and MCP servers in .mcp.json. Load them before writing code.
Project
This is an introductory React sample demonstrating basic Rayfin data operations without authentication or storage. It serves as a minimal starting point for understanding Rayfin's data layer with React.
Architecture
This sample uses React with Vite.
The main application logic lives in src/App.tsx with React hooks for state management.
Key components:
Appcomponent – Main React component managing timestamps state and UIRayfinClient<AppSchema>– Type-safe Rayfin client initialized viauseMemo
React hooks used:
useState– Manages timestamps, loading, error, and status stateuseCallback– MemoizesrefreshTimestampsandsendTimestampfunctionsuseMemo– Creates singleton RayfinClient instanceuseEffect– Triggers initial data fetch and status auto-dismiss
Features demonstrated:
- Data creation via
rayfinClient.data.Timestamp.create() - Data querying via
rayfinClient.data.Timestamp.select() - Ordering and pagination with
orderByandfirst
Rayfin Integration Points
Decorators (@microsoft/rayfin-core):
rayfin/data/Timestamp.ts– Timestamp entity with@entity(),@uuid(),@date(), and@role()decorators
Schema (rayfin/data/schema.ts):
AppSchematype maps entity names to model types for type-safe client usage
Client (@microsoft/rayfin-client):
RayfinClient<AppSchema>initialized insrc/App.tsxwith baseUrl and publishableKey
Data API (@microsoft/rayfin-data):
- Direct data operations through
rayfinClient.data.Timestamp - CRUD operations are type-safe and DAB-compliant
Rayfin Configuration
rayfin/rayfin.yml enables:
- Data: Enabled
- Auth: Disabled (uses
@role('anonymous', '*')for open access) - Storage: Disabled
Environment
Source of truth: rayfin/.env (RAYFIN_PUBLIC_* prefix). rayfin dev generates .env.local with Vite-compatible names before frontend startup.
Vite frontend variables (in .env.local):
VITE_RAYFIN_API_URL– Rayfin backend URL (defaulthttp://localhost:5168); sourced fromRAYFIN_PUBLIC_API_URLVITE_RAYFIN_PUBLISHABLE_KEY– Rayfin publishable key; sourced fromRAYFIN_PUBLIC_PUBLISHABLE_KEY
Config files:
.env– defaults for all environments.env.local– generated byrayfin dev(git-ignored)rayfin/.env– runtime and deployment values (git-ignored, managed by Rayfin CLI)
Generated and Do-Not-Edit Files
Do not edit these paths; treat them as build or local-state outputs:
rayfin/.temp/– Rayfin/DAB config generation outputdist/– Vite build output.env.local– local environment overrides (git-ignored)
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 28,693 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository76 other files it gives its agents.
- common/config/typedoc/AGENTS.mdAGENTS.md
- docs/site/AGENTS.mdAGENTS.md
- .github/skills/react-best-practices/AGENTS.mdAGENTS.md
- packages/docgen/AGENTS.mdAGENTS.md
- packages/guide/AGENTS.mdAGENTS.md
- packages/host-docs/AGENTS.mdAGENTS.md
- packages/tools/AGENTS.mdAGENTS.md
- packages/tools/cli/AGENTS.mdAGENTS.md
- packages/tools/cli/assets/agent-files/AGENTS.mdAGENTS.md
- packages/tools/common/AGENTS.mdAGENTS.md
- packages/tools/docs-lib/AGENTS.mdAGENTS.md
- packages/tools/mcp/AGENTS.mdAGENTS.md
- packages/tools/vscode/AGENTS.mdAGENTS.md
- packages/typescript-sdk/AGENTS.mdAGENTS.md
- packages/typescript-sdk/auth/AGENTS.mdAGENTS.md
- packages/typescript-sdk/core/AGENTS.mdAGENTS.md
- packages/typescript-sdk/data/AGENTS.mdAGENTS.md
- packages/typescript-sdk/storage/AGENTS.mdAGENTS.md
- packages/udf/udf-worker-extension/AGENTS.mdAGENTS.md
- samples/data-app/AGENTS.mdAGENTS.md
- samples/getting-started-auth/AGENTS.mdAGENTS.md
- samples/notes-app/AGENTS.mdAGENTS.md
- samples/todo-app/AGENTS.mdAGENTS.md
- samples/universal-app/template/AGENTS.mdAGENTS.md
- samples/welcome-app-react-auth/AGENTS.mdAGENTS.md
- samples/welcome-app-typescript/AGENTS.mdAGENTS.md
- hotfix-releaseSkill
- launch-vscode-extensionSkill
- openspec-apply-changeSkill
- openspec-archive-changeSkill
- openspec-bulk-archive-changeSkill
- openspec-continue-changeSkill
- openspec-exploreSkill
- openspec-ff-changeSkill
- openspec-new-changeSkill
- openspec-onboardSkill
- openspec-sync-specsSkill
- openspec-verify-changeSkill
- privacy-dfdSkill
- rayfin-cli-uxSkill
- vercel-react-best-practicesSkill
- react-clean-architectureSkill
- run-cli-e2e-locallySkill
- vscode-react-webview-architectureSkill
- vscode-webview-trpc-messagingSkill
- rayfin-connectorsSkill
- rayfin-functionsSkill
- rayfinSkill
- rayfin-storageSkill
- rayfin-getting-startedSkill
- app-designSkill
- app-validationSkill
- dax-authoringSkill
- fabric-cliSkill
- fabric-sdkSkill
- playwright-cliSkill
- query-designSkill
- schema-discoverySkill
- visualsSkill
- analyticsSkill
- The first 60 shown.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

