angular-db
Skill by TanStack
angular-db gives Angular components live TanStack DB queries through the injectLiveQuery function. It returns Angular signals and supports reactive params for dynamic queries. It is for Angular developers using TanStack DB.
Install angular-db
Built from the published package, never by AI.
git clone --depth 1 https://github.com/TanStack/db /tmp/db && mkdir -p ~/.claude/skills && cp -r /tmp/db/packages/angular-db/skills/angular-db ~/.claude/skills/angular-dbRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/TanStack/db /tmp/db && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/db/packages/angular-db/skills/angular-db ~/.gemini/antigravity-cli/skills/angular-dbAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
angular-db is an Angular binding for TanStack DB. Its injectLiveQuery inject function returns Angular Signal values such as data, status, isLoading and isReady, which templates read by calling them with parentheses. The package re-exports everything from @tanstack/db, so one import covers the library.
Dynamic queries use a reactive params pattern. A params function reads signals, and the query function receives those params and returns a query builder. When params change, the previous collection is disposed and a new query is created. A query can return undefined to disable itself, and include() exposes child collections for hierarchical data. The calls must run in an injection context, such as a field initializer or constructor. The skill is for Angular developers and builds on the db-core skill.
Written from the project's SKILL.md and checked against it.
What it can do
- injectLiveQueryCreates a live query whose return values are Angular signals.
- Reactive paramsRe-creates the query when signal values read in the params function change.
- Conditional queriesReturns undefined or null from the query function to disable the query.
- include() for hierarchical dataExposes each child field as a live Collection that a child component can subscribe to.
- toArray() for nested resultsReturns child results as plain arrays that update when child data changes.
- Signal inputs and legacy @InputWorks with Angular 17+ signal inputs and with Angular 16 @Input decorators.
What you need
- Angular 17 or later for control flow and signal inputs
- The @tanstack/angular-db package
- The db-core skill for collection and query builder basics
Try asking
- Use injectLiveQuery to list todos that are not completed, sorted by date
- Add a reactive params filter to my Angular todo query based on a signal
- Show projects with their issues using include() in an Angular component
Good to know
- injectLiveQuery must be called in an injection context, not in lifecycle hooks
- The plain query function does not track Angular signal reads; use the params pattern instead
- Changing params disposes the previous collection and creates a new query
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: packages/angular-db/skills/angular-db/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md9 KB
Alternatives to angular-db
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
angular-db: common questions
Does angular-db work with signals?
Yes. injectLiveQuery returns Angular Signal values for data, status and other properties, so templates call them with parentheses.
How do I make a TanStack DB query react to signal changes in Angular?
Use the params pattern, where the params function reads signals and the query function receives those params. The plain query function does not track signal reads.
Where do I call injectLiveQuery in an Angular component?
Call it during construction, in a field initializer or the constructor. Calling it in ngOnInit or other lifecycle hooks is listed as a critical mistake in the source.
How do I install angular-db?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is angular-db free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is angular-db safe to use?
It scores 83 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to angular-db?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
