Grants on offer to community groups and libraries