BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/stackfoundry/api-errors

API Errors

stackfoundry/api-errors
FreeBlock

Machine-readable API error shape, code catalog, and response helpers.

Install it

npx shadcn@latest add https://stackfoundry.dev/r/api-errors.json

Source

apps/web/src/lib/api-errors.tsstackfoundry.dev/r/api-errors.json
1export type ApiErrorsConfig = {
2 key: string;
3 enabled?: boolean;
4 metadata?: Record<string, unknown>;
5};
6
7export function createApiErrorsConfig(config: ApiErrorsConfig) {
8 return {
9 key: config.key,
10 enabled: config.enabled ?? true,
11 metadata: config.metadata ?? {},
12 };
13}
14
15export const apiErrorsProductionChecks = [
16 "Confirm access control",
17 "Record audit events for sensitive changes",
18 "Document rollback or recovery steps",
19] as const;

Files it writes

  • apps/web/src/lib/api-errors.ts
  • apps/web/src/app/(console)/developers/errors/page.tsx

Facts

Registry
stackfoundry
Type
registry:block
Access
Free
Files written
2
Licence
MIT
First indexed
2026-08-01
Last confirmed
2 days ago

Go to the source

stackfoundry.dev jesseoue/stackfoundry on GitHub Raw registry item This item as JSON

More from stackfoundry

All 157 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Account Deletionaccount-deletionstackfoundryBlocksFreeno deps · 3 files
Account Modesaccount-modesstackfoundryBlocksFreeno deps · 3 files
Account Settingsaccount-settingsstackfoundryBlocksFreeno deps · 2 files
Admin Consoleadmin-consolestackfoundryBlocksFreeno deps · 2 files
Agent-Ready Installsagent-ready-installsstackfoundryBlocksFreeno deps · 13 files
AI Chatai-chatstackfoundryBlocksFree3 deps · 4 files
AI Chatbot SDKai-chatbot-sdkstackfoundryBlocksFree3 deps · 2 files
AI Elementsai-elementsstackfoundryBlocksFreeno deps · 5 files
BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex