Specifically for the violin we have:
-Six solos (3 Sonatas and 3 Partitas)
-Six sonatas for violin and harpsichord
-Seven works (Sonatas and suites) for violin and basso continuo
-Two concertos for violin, strings and continuo
-One concerto for two violins, strings and continuo
There are other chamber or orchestral works where violins have a shared soloist role.
This list includes spurious or doubtful works which may be not by Bach.