Is there any Node.js lib for SQL(esp. postgres) sharding?

Sharding is not an issue when using Mongo or something like this.

Are there any solutions for sharding classical SQL bases, especially PostgreSQL?

Without more detail of what you mean by "sharding" (and it does mean different things to different people), it's hard to give much of an answer beyond: Yes. That said, you might want to look at Greenplum and Postgres-XC.